2. Chapter 20 – Firewalls
The function of a strong position is to make
the forces holding it practically
unassailable
—On War, Carl Von Clausewitz
3. Introduction
seen evolution of information systems
now everyone want to be on the Internet
and to interconnect networks
has persistent security concerns
can’t easily secure every system in org
typically use a Firewall
to provide perimeter defence
as part of comprehensive security strategy
4. What is a Firewall?
a choke point of control and monitoring
interconnects networks with differing trust
imposes restrictions on network services
only authorized traffic is allowed
auditing and controlling access
can implement alarms for abnormal behavior
provide NAT & usage monitoring
implement VPNs using IPSec
must be immune to penetration
5. What is firewall ?
Firewall
Firewall is a single point of defense between two networks.
Firewall is hardware / software
- firewalls protect the resources of a private network from users from other
networks.
-The firewall enforces access control between two networks.
-The firewall allows or denies the traffic to/from the network.
- firewalls are essential for the integrity and confidentiality of the
information present in the internal network.
Organization , universities , companies use firewall systems
Firewall can act as gateway
Firewall can act as proxy
Firewall filter Incoming & Outgoing information
LAN INTERNET
5
6. Main purpose of using
firewalls
Packet filtering
Analyzing packets
Proxy service
Provide access to other networks e.g INTERNET
LAN
INTERNET
6
8. Firewall Limitations
cannot protect from attacks bypassing it
eg sneaker net, utility modems, trusted
organisations, trusted services (eg SSL/SSH)
cannot protect against internal threats
eg disgruntled or colluding employees
cannot protect against access via WLAN
if improperly secured against external use
cannot protect against malware imported
via laptop, PDA, storage infected outside
9. Types of Firewalls
Firewalls can be categorized based on
the OSI model level at which they operate,
there are 3 basic types of firewalls:
Network level (Packet filters)
Application level (Proxy server)
Circuit level (Proxy server)
9
10. Firewalls – Packet Filters
simplest, fastest firewall component
foundation of any firewall system
examine each IP packet (no context) and
permit or deny according to rules
hence restrict access to services (ports)
possible default policies
that not expressly permitted is prohibited
that not expressly prohibited is permitted
11. Network level firewalls operate on the
network level of the OSI model.
It filters each incoming packet to
determine whether to pass it through the
network.
Network level firewalls employ one of two
different filtering approaches:
Static packet filtering.
Dynamic packet filtering/Stateful inspection.
11
Firewalls – Packet Filters
12. Static Packet Filtering
A static packet filter is one of the foremost firewall
technologies (first generation) that analyze network
traffic.
A static packet filtering firewall filters incoming and
outgoing packets to deny or authorize access based on
some rules defined by the administrator.
The filtering rules are non-dynamic (they do not
change/static).
Static packet filters do not understand the application
layer protocols used in the communication packets.
12
13. The following factors allow or deny the data flow
through the packet filters:
1. The physical network interface that the packet
arrives on.
2. the address the data is coming from.
3. The address the data is going to.
4. The type of transport layer protocol, TCP or UDP.
5. The transport layer source port.
6. The transport layer destination port.
13
Static Packet Filtering
15. 15
Filtering Rules - Examples
Policy Firewall Setting
No outside Web access. Drop all outgoing packets to
any IP address, port 80
External connections to
public Web server only.
Drop all incoming TCP SYN
packets to any IP except
222.22.44.203, port 80
Prevent IPTV from eating
up the available
bandwidth.
Drop all incoming UDP packets
- except DNS and router
broadcasts.
Prevent your network
from being used for a
Smurf DoS attack.
Drop all ICMP packets going
to a “broadcast” address (eg
222.22.255.255).
Prevent your network
from being tracerouted
Drop all outgoing ICMP
18. Static Packet Filtering
Applications
Presentation
Sessions
Transport
DataLink
Physical
DataLink
Physical
Applications
Presentation
Sessions
Transport
DataLink
Physical
Network Network
Network
Presentation
Sessions
Transport
Applications
• Advantages
• Generally faster than other firewalls because they perform fewer evaluations.
• Less complicated, in the sense that a single rule controls deny or allow of
packets.
• Can provide NAT -- Network Address Translation
• Least Expensive.
• They do not require client computers to be configured specially.
• Disadvantages
• Limited capabilities -- typically only Source & Destination
• Cannot address protocol subsets other than IP -- most TCP
• Cannot perform checks on higher-level protocols.
18
19. Attacks on Packet Filters
IP address spoofing
fake source address to be trusted
add filters on router to block
source routing attacks
attacker sets a route other than default
block source routed packets
tiny fragment attacks
split header info over several tiny packets
either discard or reassemble before check
20. Firewalls – Stateful Packet
traditional packet filters do not examine
higher layer context
ie matching return packets with outgoing flow
stateful packet filters address this need
they examine each IP packet in context
keep track of client-server sessions
check each packet validly belongs to one
hence are better able to detect bogus
packets out of context
may even inspect limited application data
21. Dynamic packet filters are the fourth
generation firewalls.
In this type of firewalls, the packet filtering
rules can be modified (the rules are
dynamic). For ex: a stateful inspection
firewall remembers outgoing packets and
permits any corresponding incoming
packet response to pass through.
21
Firewalls – Stateful Packet
23. Circuit level firewalls are second generation firewalls.
Circuit level firewalls are similar in operation to packet-
filtering firewalls. The biggest difference is that a circuit-
level firewall validates TCP and UDP sessions before
opening a connection (or circuit) through the firewall.
When a session is established, the firewall maintains a
table of valid connections and lets data pass through
when session information matches any entry in the table.
The table entry is removed and the circuit is closed when
the session is terminated.
23
Firewalls - Circuit Level Gateway
24. Firewalls - Circuit Level Gateway
relays two TCP connections
imposes security by limiting which such
connections are allowed
once created usually relays traffic without
examining contents
typically used when trust internal users by
allowing general outbound connections
SOCKS is commonly used
26. When a connection is set up, the circuit level firewall stores
the following:
1. A unique session identifier for the connection.
2. The state of the connection (handshake, established,
closing).
3. The sequencing information.
4. The source IP address.
5. The destination IP address.
6. The physical network interface through which the data
arrives.
7. The physical network interface through which the data
goes out.
26
Firewalls - Circuit Level Gateway
27. Advantages:
1. They are faster than application layer firewalls.
2. They are more secured than packet filter firewalls.
3. They protect against spoofing of packets.
4. They shield internal IP addresses from external networks
by NAT (network address translation).
Disadvantages:
1. They can not restrict access to protocol subsets other than
TCP.
2. They can not perform security checks on higher level
protocols.
27
Firewalls - Circuit Level Gateway
28. Firewalls - Application Level
Gateway (or Proxy)
have application specific gateway / proxy
has full access to protocol
user requests service from proxy
proxy validates request as legal
then actions request and returns result to user
can log / audit traffic at application level
29. 3- Application Level Firewalls
An application level firewalls is third generation firewall
technology that evaluates network packets for valid data at
the application layer before allowing a connection.
It maintains a complete list of connection states and
sequencing information.
Application level firewalls validates the security items that
appear only in the application layer protocols, such as user
passwords and service requests.
It uses special purpose programs to act as a proxy to
manage data transfer through the firewall for specific
services such as ftp and http.
29
30. 3- Application Level Firewalls
Advantages:
1. They understand high level protocols, like http and
ftp.
2. They can be used to deny access to certain network
services, while allowing others.
3. They do not allow direct communication between
external servers and internal systems, thus they
shield internal IP addresses from external networks.
4. They provide features like HTTP caching, URL
filtering, and user authentication.
30
31. 3- Application Level Firewalls
Disadvantages:
1. They require replacing the native network stack on the
firewall server.
2. They are slow.
3. Proxy services require modifications to client
procedures.
4. They rely on operating system support and thus are
vulnerable to bugs in the system.
31
32. Proxy Based Firewall
Application level and Circuit level firewalls are two
different implementations of a proxy server.
A proxy server sit transparently between the client
and a server during a connection and inspects
every communication between them. The client and
the server are forced to address their packets to the
proxy.
There is no direct connection a client on an internal
network and a server on an untrusted network.
Applications
Presentation
Sessions
Transport
DataLink
Physical
Applications
Presentation
Sessions
Transport
DataLink
Physical
Network Network
PROXY
32
33. Proxy Based Firewall
A proxy service has two components:
1. Proxy server.
2. Proxy client.
When a client wants to communicate with an external
server:
o The request is directed to the proxy server.
o The proxy server evaluates the request and decides
to deny or allow it depending on a set of rules.
Proxy servers can perform user authentication and
caching, these services are not performed by the
packet filters or the circuit level firewalls. 33
34. Proxy Based Firewall
Once the packet from the real client is allowed, it is
forwarded to the proxy client who contacts the actual
server providing the service.
The proxy client relays back the information sent by
the actual server to the proxy server who decides
whether to send the information to the actual client.
Thus, the proxy service is transparent to a user who
believes that he is communicating directly with the
service in the internet.
PROXY
SERVER
PROXY
CLIENT
PROXY
34
35. Proxy Based Firewall
Advantages
– More control than a Packet Filter.
– Client has no way to learn the server IP address.
– They allows administrators to monitor threats to
the firewall.
Disadvantages
– Requires client modifications
– No anti-spoofing
35
37. Bastion Host
highly secure host system
runs circuit / application level gateways
or provides externally accessible services
potentially exposed to "hostile" elements
hence is secured to withstand this
hardened O/S, essential services, extra auth
proxies small, secure, independent, non-privileged
may support 2 or more net connections
may be trusted to enforce policy of trusted
separation between these net connections
38. Host-Based Firewalls
s/w module used to secure individual host
available in many operating systems
or can be provided as an add-on package
often used on servers
advantages:
can tailor filtering rules to host environment
protection is provided independent of topology
provides an additional layer of protection
39. Personal Firewalls
controls traffic between PC/workstation
and Internet or enterprise network
a software module on personal computer
or in home/office DSL/cable/ISP router
typically much less complex than other
firewall types
primary role to deny unauthorized remote
access to the computer
and monitor outgoing activity for malware
46. Summary of Firewall
Locations and Topologies
host-resident firewall
screening router
single bastion inline
single bastion T
double bastion inline
double bastion T
distributed firewall configuration
47. Main purpose of using
proxies
Improve Performance
Act as Cache server
Bandwidth control
Filter Requests
Prevent access to some web sites!!!
Prevent access to some protocols
Surfing Anonymously
Browsing the WWW without any identification!!!
47
48. Improve Performance
Caching
Reduce Network Traffic
Caching can greatly speed up Internet access. If one or
more Internet sites are frequently requested, they are
kept in the proxy's cache, so that when a user requests
them, they are delivered directly from the proxy's cache
instead of from the original Internet site.
Caches diminish the need for network bandwidth,
typically by 35% or more, by reducing the traffic from
browsers to content servers.
Bandwidth control
– Policy-based Bandwidth Limits
– Deny by content type
INTERNET
64 Kbps
128 Kbps
512 Kbps
1 Mbps
48
49. Filter Requests
Prevent access to some web sites!!!
Categories web sites
• Advertisements & Pop-Ups
• Chat
• Gambling
• Games
• Hacking
• Peer-to-Peer
• ……
Check by content type
• .Exe / .Com
• .Mid / .MP3 / .Wav
• .Avi / .Mpeg / .Rm
49
50. Summary
have considered:
firewalls
types of firewalls
• packet-filter, stateful inspection, application proxy,
circuit-level
basing
• bastion, host, personal
location and configurations
• DMZ, VPN, distributed, topologies
Editor's Notes
#1:Lecture slides by Lawrie Brown for “Cryptography and Network Security”, 5/e, by William Stallings, Chapter 22 – “Firewalls”.
#3:Information systems in corporations,government agencies,and other organizations have undergone a steady evolution from mainframes to LANs. Internet connectivity is no longer optional, with information and services essential to the organization. Moreover, individual users want and need Internet access. However, while Internet access provides benefits, it enables the outside world to reach and interact with local network assets, creating a threat to the organization. While it is possible to equip each workstation and server on the premises network with strong security features, this is not a practical approach in general. Firewalls can be an effective means of protecting a local system or network of systems from network-based security threats while at the same time affording access to the outside world via wide area networks and the Internet. However they need to be part of a wider security strategy including host security.
#4:A firewall is inserted between the premises network and the Internet to establish a controlled link and to erect an outer security wall or perimeter, forming a single choke point where security and audit can be imposed. A firewall:
defines a single choke point that keeps unauthorized users out of the protected network, prohibits potentially vulnerable services from entering or leaving the network, and provides protection from various kinds of IP spoofing and routing attacks.
2. provides a location for monitoring security-related events
3. is a convenient platform for several Internet functions that are not security related, such as NAT and Internet usage audits or logs
4. A firewall can serve as the platform for IPSec to implement virtual private networks.
The firewall itself must be immune to penetration, since it will be a target of attack.
#7:Stallings Figure 22.1a illustrates the general model of firewall use on the security perimeter, as a choke point for traffic between between the external less-trusted Internet and the internal more trusted private network.
#8:Firewalls have their limitations, including that they:
1. cannot protect against attacks that bypass the firewall, eg PCs with dial-out capability to an ISP, or dial-in modem pool use
2. do not protect against internal threats, eg disgruntled employee or one who cooperates with an attacker
3. An improperly secured wireless LAN may be accessed from outside the organization. An internal firewall that separates portions of an enterprise network cannot guard against wireless communications between local systems on different sides of the internal firewall.
4. A laptop, PDA, or portable storage device may be used and infected outside the corporate network, and then attached and used internally.
#10:Have three common types of firewalls: packet filters, application-level gateways, & circuit-level gateways.
A packet-filtering router applies a set of rules to each incoming and outgoing IP packet to forward or discard the packet. Filtering rules are based on information contained in a network packet such as src & dest IP addresses, ports, transport protocol & interface. Some advantages are simplicity, transparency & speed.
If there is no match to any rule, then one of two default policies are applied:
• that which is not expressly permitted is prohibited (default action is discard packet), conservative policy
• that which is not expressly prohibited is permitted (default action is forward packet), permissive policy
#14:Stallings Figure 22.1b (along with 4/e Figure 20.1a) illustrates the packet filter firewall role as utilising information from the transport, network & data link layers to make decisions on allowable traffic flows, and its placement in the border router between the external less-trusted Internet and the internal more trusted private network.
#17:Stallings Table 22.1 gives some examples of packet-filtering rule sets. In each set, the rules are applied top to bottom.
A. Inbound mail is allowed to a gateway host only (port 25 is for SMTP incoming
B. explicit statement of the default policy
C. tries to specify that any inside host can send mail to the outside, but has problem that an outside machine could be configured to have some other application linked to port 25
D. properly implements mail sending rule, by checking ACK flag of a TCP segment is set
E. this rule set is one approach to handling FTP connections
#19:Some of the attacks that can be made on packet-filtering routers & countermeasures are:
• IP address spoofing: where intruder transmits packets from the outside with internal host source IP addr, need to filter & discard such packets
• Source routing attacks: where source specifies the route that a packet should take to bypass security measures, should discard all source routed packets
• Tiny fragment attacks: intruder uses the IP fragmentation option to create extremely small fragments and force the TCP header information into a separate fragments to circumvent filtering rules needing full header info, can enforce minimum fragment size to include full header.
#20:A traditional packet filter makes filtering decisions on an individual packet basis and does not take into consideration any higher layer context. In general, when an application that uses TCP creates a session with a remote host, it creates a TCP connection in which the TCP port number for the remote (server) application is a number less than 1024 and the TCP port number for the local (client) application is a number between 1024 and 65535. A simple packet filtering firewall must permit inbound network traffic on all these high- numbered ports for TCP-based traffic to occur. This creates a vulnerability that can be exploited by unauthorized users. A stateful inspection packet filter tightens up the rules for TCP traffic by creating a directory of outbound TCP connections, and will allow incoming traffic to high-numbered ports only for those packets that fit the profile of one of the entries in this directory. Hence they are better able to detect bogus packets sent out of context. A stateful packet inspection firewall reviews the same packet information as a packet filtering firewall, but also records information about TCP connections. Some stateful firewalls also keep track of TCP sequence numbers to prevent attacks that depend on the sequence number, such as session hijacking. Some even inspect limited amounts of application data for some well-known protocols like FTP, IM and SIPS commands, in order to identify and track related connections.
#24:A fourth type of firewall is the circuit-level gateway or circuit-level proxy. This can be a stand-alone system or it can be a specialized function performed by an application-level gateway for certain applications. A circuit-level gateway relays two TCP connections, one between itself and an inside TCP user, and the other between itself and a TCP user on an outside host. Once the two connections are established, it relays TCP data from one connection to the other without examining its contents. The security function consists of determining which connections will be allowed. It is typically used when internal users are trusted to decide what external services to access.
One of the most common circuit-level gateways is SOCKS, defined in RFC 1928. It consists of a SOCKS server on the firewall, and a SOCKS library & SOCKS-aware applications on internal clients. When a TCP-based client wishes to establish a connection to an object that is reachable only via a firewall (such determination is left up to the implementation), it must open a TCP connection to the appropriate SOCKS port on the SOCKS server system. If the connection request succeeds, the client enters a negotiation for the authentication method to be used, authenticates with the chosen method, and then sends a relay request. The SOCKS server evaluates the request and either establishes the appropriate connection or denies it. UDP exchanges are handled in a similar fashion.
#25:Stallings Figure 22.1e (along with 4/e Figure 20.1c) illustrates a circuit-level gateway, showing how it relays between 2 TCP connections. Note that it can be implemented in a stand-alone system or can be a specialized function in an application-level gateway for certain applications. Note also that relaying UDP packets is more problematical, because of the lack of connection context, and require a parallel TCP connection to provide these details.
#28:An application-level gateway (or proxy server), acts as a relay of application-level traffic. A user contacts the gateway to access some service, provides details of the service, remote host & authentication details, contacts the application on the remote host and relays all data between the two endpoints. If the gateway does not implement the proxy code for a specific application, then it is not supported and cannot be used. Note that some services naturally support proxying, whilst others are more problematic. Application-level gateways tend to be more secure than packet filters, &can log and audit traffic at application level.
#36:Stallings Figure 22.1d (along with 4/e Figure 20.1b) illustrates an application-level gateway (or proxy server), emphasizing that it only supports a specific list of application services.
#37:It is common to base a firewall on a stand-alone machine running a common operating system, such as UNIX or Linux. Firewall functionality can also be implemented as a software module in a router or LAN switch.
A bastion host is a critical strong point in the network’s security, serving as a platform for an application-level or circuit-level gateway, or for external services. It is thus potentially exposed to "hostile" elements and must be secured to withstand this. Common characteristics of a bastion host include that it:
• executes a secure version of its O/S, making it a trusted system
• has only essential services installed on the bastion host
• may require additional authentication before a user may access to proxy services
• configured to use only subset of standard commands, access only specific hosts
• maintains detailed audit information by logging all traffic
• each proxy module a very small software package designed for network security
• has each proxy independent of other proxies on the bastion host
• have a proxy performs no disk access other than read its initial configuration file
• have each proxy run as a non-privileged user in a private and secured directory
A bastion host may have two or more network interfaces (or ports), and must be trusted to enforce trusted separation between these network connections, relaying traffic only according to policy.
#38:A host-based firewall is a software module used to secure an individual host. Such modules are available in many operating systems or can be provided as an add-on package. Like conventional stand-alone firewalls, host-resident firewalls filter and restrict the flow of packets. A common location for such firewalls is a server. There are several advantages to the use of a server-based or workstation-based firewall:
• Filtering rules can be tailored to the host environment. Specific corporate security policies for servers can be implemented, with different filters for servers used for different application.
• Protection is provided independent of topology. Thus both internal and external attacks must pass through the firewall.
• Used in conjunction with stand-alone firewalls, the host-based firewall provides an additional layer of protection. A new type of server can be added to the network, with its own firewall, without the necessity of altering the network firewall configuration.
#39:A personal firewall controls the traffic between a personal computer or workstation on one side and the Internet or enterprise network on the other side. Personal firewall functionality can be used in the home environment and on corporate intranets. Typically, the personal firewall is a software module on the personal computer. In a home environment with multiple computers connected to the Internet, firewall functionality can also be housed in a router that connects all of the home computers to a DSL, cable modem, or other Internet interface.
Personal firewalls are typically much less complex than either server-based firewalls or stand-alone firewalls. The primary role of the personal firewall is to deny unauthorized remote access to the computer. The firewall can also monitor outgoing activity in an attempt to detect and block worms and other malware.
#40:As Figure 22.1a indicates, a firewall is positioned to provide a protective barrier between an external, potentially untrusted source of traffic and an internal network. With that general principle in mind, a security administrator must decide on the location and on the number of firewalls needed.
In addition to the use of a simple configuration consisting of a single system, more complex configurations are possible and indeed more common. Stallings 4/e Figure 20.2 illustrates three common firewall configurations.
4/e Figure 20.2a shows the “screened host firewall, single-homed bastion configuration”, where the firewall consists of two systems:
a packet-filtering router - allows Internet packets to/from bastion only
a bastion host - performs authentication and proxy functions
This configuration has greater security, as it implements both packet-level & application-level filtering, forces an intruder to generally penetrate two separate systems to compromise internal security, & also affords flexibility in providing direct Internet access to specific internal servers (eg web) if desired.
#41:Stallings 4/e Figure 20.2b illustrates the “screened host firewall, dual-homed bastion configuration” which physically separates the external and internal networks, ensuring two systems must be compromised to breach security. The advantages of dual layers of security are also present here. Again, an information server or other hosts can be allowed direct communication with the router if this is in accord with the security policy, but are now separated from the internal network.
#42:Stallings 4/e Figure 20.2c shows the “screened subnet firewall configuration”, being the most secure shown. It has two packet-filtering routers, one between the bastion host and the Internet and the other between the bastion host and the internal network, creating an isolated subnetwork. This may consist of simply the bastion host but may also include one or more information servers and modems for dial-in capability. Typically, both the Internet and the internal network have access to hosts on the screened subnet, but traffic across the screened subnet is blocked.
This configuration offers several advantages:
• There are now three levels of defense to thwart intruders
• The outside router advertises only the existence of the screened subnet to the Internet; therefore the internal network is invisible to the Internet
• Similarly, the inside router advertises only the existence of the screened subnet to the internal network; hence systems on the inside network cannot construct direct routes to the Internet
#43:Stallings Figure 22.3 further illustrates the use of a “screened subnet”, also known as a demilitarized zone (DMZ), located between an internal and an external firewall. An external firewall is placed at the edge of a local or enterprise network, just inside the boundary router that connects to the Internet or some wide area network (WAN). One or more internal firewalls protect the bulk of the enterprise network. Systems that are externally accessible but need some protections are usually located on DMZ networks. Typically, the systems in the DMZ require or foster external connectivity, such as a corporate Web site, an e-mail server, or a DNS (domain name system) server. The external firewall provides a measure of access control and protection for the DMZ systems consistent with their need for external connectivity. The external firewall also provides a basic level of protection for the remainder of the enterprise network. In this type of configuration, internal firewalls serve three purposes:
The internal firewall adds more stringent filtering capability, vs the external firewall, to protect enterprise servers and workstations from external attack.
The internal firewall provides two-way protection with respect to the DMZ, as it protects the remainder of the network from attacks launched from DMZ systems, and protects DMZ systems from attack by internal hosts.
Multiple internal firewalls can be used to protect portions of the internal network from each other.
A common practice is to place the DMZ on a different network interface on the external firewall from that used to access the internal networks.
#44:In today's distributed computing environment, the virtual private network (VPN) offers an attractive solution to network managers. The VPN consists of a set of computers that interconnect by means of a relatively unsecure network and that make use of encryption and special protocols to provide security. At each corporate site, workstations, servers, and databases are linked by one or more local area networks (LANs). The Internet or some other public network can be used to interconnect sites, providing a cost savings over the use of a private network and offloading the wide area network management task to the public network provider. That same public network provides an access path for telecommuters and other mobile employees to log on to corporate systems from remote sites.
A logical means of implementing an IPSec is in a firewall, as shown in Stallings Figure 22.4, which essentially repeats Figure 19.1. If IPSec is implemented in a separate box behind (internal to) the firewall, then VPN traffic passing through the firewall in both directions is encrypted. In this case, the firewall is unable to perform its filtering function or other security functions, such as access control, logging, or scanning for viruses. IPSec could be implemented in the boundary router, outside the firewall. However, this device is likely to be less secure than the firewall and thus less desirable as an IPSec platform.
#45:A distributed firewall configuration involves stand-alone firewall devices plus host-based firewalls working together under a central administrative control. Stallings Figure 22.5 suggests a distributed firewall configuration. Administrators can configure host-resident firewalls on hundreds of servers and workstation as well as configure personal firewalls on local and remote user systems. Tools let the network administrator set policies and monitor security across the entire network. These firewalls protect against internal attacks and provide protection tailored to specific machines and applications. Stand-alone firewalls provide global protection, including internal firewalls and an external firewall, as discussed previously. With distributed firewalls, it may make sense to establish both an internal and an external DMZ. Web servers that need less protection because they have less critical information on them could be placed in an external DMZ, outside the external firewall. What protection is needed is provided by host-based firewalls on these servers. An important aspect of a distributed firewall configuration is security monitoring. Such monitoring typically includes log aggregation and analysis, firewall statistics, and fine-grained remote monitoring of individual hosts if needed.
#46:The following alternatives can be identified:
• Host-resident firewall: incl. personal firewall software and firewall software on servers, used alone or as part of an in-depth firewall deployment.
• Screening router: A single router between internal and external networks with stateless or full packet filtering. Typical for small office/home office (SOHO) use.
• Single bastion inline: A single firewall device between an internal and external router. The firewall may implement stateful filters and/or application proxies. This is the typical firewall appliance configuration for small to medium-sized organizations.
• Single bastion T: Similar to single bastion inline but has a third network interface on bastion to a DMZ where externally visible servers are placed. Again, this is a common appliance configuration for medium to large organizations.
• Double bastion inline: Figure 22.3 illustrates this configuration, where the DMZ is sandwiched between bastion firewalls. This configuration is common for large businesses and government organizations.
• Double bastion T: The DMZ is on a separate network interface on the bastion firewall. This configuration is also common for large businesses and government organizations and may be required. For example, this configuration is required for Australian government use.
• Distributed firewall configuration: Illustrated in Figure 22.5. This configuration is used by some large businesses and government organizations.