How does a firewall work?

There are two access denial methodologies used by firewalls. A firewall may allow all traffic through unless it meets certain criteria, or it may deny all traffic unless it meets certain criteria (Figure – 3). The type of criteria used to determine whether traffic should be allowed through varies from one type of firewall to another. Firewalls may be concerned with the type of traffic, or with source or destination addresses and ports. They may also use complex rule bases that analyses the application data to determine if the traffic should be allowed through. How a firewall determines what traffic to let through depends on which network layer it operates at.

 


 

Figure -3: Basic Firewall Operation