Bytes
rocket

Your Success, Our Mission!

6000+ Careers Transformed.

Firewall Rules & Network Security

Last Updated: 10th September, 2026

Imagine your cloud system is like a house

  • You have doors
  • Windows
  • Valuables inside

Now if you leave everything open…
Anyone can enter

So what do you do?

  • Install locks
  • Allow only trusted people
  • Block unknown visitors

In cloud, this protection is handled by Firewall Rules

saasu (1).png

What are Firewall Rules?

Firewall Rules control:
Incoming (Ingress) and Outgoing (Egress) network traffic

They decide:

  • Who can connect
  • Which ports are open
  • What traffic is allowed or blocked

Key Components of Firewall Rules

1. Direction

  • Ingress → Incoming traffic
  • Egress → Outgoing traffic

2. Action

  • Allow
  • Deny

3. Protocol & Ports

  • HTTP (80)
  • HTTPS (443)
  • SSH (22)

4. Source / Destination

  • IP ranges
  • Specific networks

Example Firewall Rule

Setting

Value

DirectionIngress
ActionAllow
ProtocolTCP
Port22 (SSH)
SourceYour IP

Allows SSH access only from your system

Technical Example

Create firewall rule:

gcloud compute firewall-rules create allow-ssh \
  --allow=tcp:22 \
  --source-ranges=YOUR_IP \
  --target-tags=vm-tag

Secure SSH access

How Firewall Works

  1. Request comes to server
  2. Firewall checks rules
  3. If allowed → Access granted
  4. If denied → Blocked

Real-Life Examples

1. Website Hosting

  • Allow HTTP/HTTPS
  • Block other ports

2. Secure Admin Access

  • Allow SSH only from trusted IP

3. Database Security

  • Restrict access to internal network

4. Corporate Systems

  • Control employee access
Module 4: Security & IAMFirewall Rules & Network Security

Top Tutorials

Logo
Data Science

Python

Python is a popular and versatile programming language used for a wide variety of tasks, including web development, data analysis, artificial intelligence, and more.

8 Modules37 Lessons112803 Learners
Start Learning
Logo
Data Science

SQL

The SQL for Beginners Tutorial is a concise and easy-to-follow guide designed for individuals new to Structured Query Language (SQL). It covers the fundamentals of SQL, a powerful programming language used for managing relational databases. The tutorial introduces key concepts such as creating, retrieving, updating, and deleting data in a database using SQL queries.

9 Modules40 Lessons16154 Learners
Start Learning
Logo
Data Science

Data Science

Learn Data Science for free with our data science tutorial. Explore essential skills, tools, and techniques to master Data Science and kickstart your career

8 Modules31 Lessons9701 Learners
Start Learning
  • Official Address
  • 4th floor, 133/2, Janardhan Towers, Residency Road, Bengaluru, Karnataka, 560025
  • Communication Address
  • Follow Us
  • facebook
    instagram
    linkedin
    twitter
    youtube
    telegram

© 2026 AlmaBetter