w6 Firewalls
w6 Firewalls
w6 Firewalls
Outline of Presentation
• The Nature of Today’s Attacker
• Firewall Definition and History
• What Firewalls Do and Cannot Do
• Types of Firewalls
• Firewall Architecture
• Do You Need a Firewall
• Selecting Firewall
• Implementations
• Conclusion
The Nature of Today’s Attackers
Who are these “hackers” who are trying to break into your computer?
Today, worms and viruses initiate the vast majority of attacks. Worms and
viruses generally find their targets randomly.
The first firewalls were developed by the Digital Equipment Corporation (DEC) back in
the late 1980s.
First generation - packet filters
Packet Filtering mechanisms work in the network layer of the OSI model. In packet
filtering, each packet passing through a firewall is compared to a set of rules before it
is allowed to pass through. For example, if a certain destination IP address is found in
a packet, it could be dropped or if the packet confirms to a certain protocol (eg. http),
it could be dropped for companies which do not allow internet access to their
employees. This system was published in 1988 by Jeff Mogul from Digital Equipment
Corporatin (DEC)
User authentication.
Firewalls can be configured to require user authentication. This allows network
administrators to control ,track specific user activity.
Anti-Spoofing - Detecting when the source of the network traffic is being "spoofed",
i.e., when an individual attempting to access a blocked service alters the source
address in the message so that the traffic is allowed.
VPNs are communications sessions traversing public networks that have been made
virtually private through the use of encryption technology. VPN sessions are defined
by creating a firewall rule that requires encryption for any session that meets specific
criteria.
What Firewalls Do (Negative Effects)
Negative Effects
Although firewall solutions provide many benefits, negative effects may also be
experienced.
– Traffic bottlenecks. By forcing all network traffic to pass through the firewall,
there is a greater chance that the network will become congested.
– Single point of failure. In most configurations where firewalls are the only link
between networks, if they are not configured correctly or are unavailable, no
traffic will be allowed through.
What Firewalls Do (Negative Effects)
A firewall cannot and does not guarantee that your network is 100% secure.
Firewalls cannot offer any protection against inside attacks. A high percentage of
security incidents today come from inside the trusted network.
Packet Filtering
Stateful Packet Inspection
Application Gateways/Proxies
Adaptive Proxies
Circuit Level Gateway
Packet Filtering Firewall
A packet filtering firewall does exactly what its name implies -- it filters packets.
For example, you could create a filter that would drop all ping requests. You can
also configure filters with more complex exceptions to a rule.
Packet filtering rules or filters can be configured to allow or deny traffic based on one
or more of the following variables:
– Source IP address
– Destination IP address
– Protocol type (TCP/UDP)
– Source port
– Destination port
Example Packet Filtering Firewall
Packet Filtering
Strengths :
Packet filtering is typically faster than other packet screening methods. Because packet
filtering is done at the lower levels of the OSI model, the time it takes to process a
packet is much quicker.
Packet filtering firewalls are typically less expensive. Many hardware devices and
software packages have packet filtering features included as part of their standard
package.
Packet Filtering
Weaknesses
Packet filtering firewalls allow a direct connection to be made between the two
endpoints. Although this type of packet screening is configured to allow or deny traffic
between two networks, the client/server model is never broken.
Packet filtering firewalls are fast and typically have no impact on network
performance, but it's usually an all-or-nothing approach. If ports are open, they are
open to all traffic passing through that port, which in effect leaves a security hole in
your network.
Defining rules and filters on a packet filtering firewall can be a complex task.
Packet Filtering (Weaknesses)
Packet filtering firewalls are prone to certain types of attacks. Since packet inspection
goes no deeper than the packet header information, There are three common exploits
to which packet filtering firewalls are susceptible.
The data in the state table is then used to evaluate subsequent packets to verify
that they are part of the same connection.
This method can make decisions based on one or more of the following:
Source IP address
Destination IP address
Protocol type (TCP/UDP)
Source port
Destination port
Connection state
Stateful Packet Inspection Firewall
Trusted Untrusted
Network Network
Like packet filtering firewalls, have very little impact on network performance.
More secure than basic packet filtering firewalls. Because stateful packet inspection
digs deeper into the packet header information to determine the connection state
between endpoints.
Usually it have some logging capabilities. Logging can help identify and track the
different types of traffic that pass though the firewall.
Stateful Packet Inspection
Weaknesses
Like packet filtering, stateful packet inspection does not break the client/server model
and therefore allows a direct connection to be made between the two endpoints
Rules and filters in this packet screening method can become complex, hard to
manage, prone to error and difficult to test.
Application Gateways/Proxies
The gateways/proxies are carefully designed to be reliable and secure because they
are the only connection point between the two networks.
Application Gateways/Proxies
Application Gateways/Proxies Firewall
When a client issues a request from the untrusted network, a connection is
established with the application gateway/proxy. The proxy determines if the request is
valid (by comparing it to any rules or filters) and then sends a new request on behalf
of the client to the destination. By using this method, a direct connection is never
made from the trusted network to the untrusted network and the request appears to
have originated from the application gateway/proxy.
Application
Gateway (Proxy
service) Untrusted
Network
Work Station
Application Gateways/Proxies Firewall
The response is sent back to the application gateway/proxy, which determines if it is
valid and then sends it on to the client.
By breaking the client/server model, this type of firewall can effectively hide the
trusted network from the untrusted network.
Typically have the best content filtering capabilities. Since they have the ability to
examine the payload of the packet, they are capable of making decisions based on
content.
Allow the network administrator to have more control over traffic passing through the
firewall. They can permit or deny specific applications or specific features of an
application.
Application Gateways/Proxies
Weaknesses
The most significant weakness is the impact they can have on performance.
it requires more processing power and has the potential to become a
bottleneck for the network.
Typically require additional client configuration. Clients on the network may require
specialized software or configuration changes to be able to connect to the application
gateway/proxy.
Adaptive Proxies / Hybrid Proxy
Known as dynamic proxies
2. With regard to the scope of filtered communications the done between a single
node and the network, or between two or more networks there exist :
3. Finally, Types depending on whether the firewalls keeps track of the state of
network connections or treats each packet in isolation, two additional categories of
firewalls exist:
– Stateful firewall
– Stateless firewall
Types of Firewalls
Stateful firewall
Treats each network frame (Packet) in isolation. Such a firewall has no way of
knowing if any given packet is part of an existing connection, is trying to
establish a new connection, or is just a rogue packet.
The classic example is the File Transfer Protocol, because by design it opens
new connections to random ports.
Firewall Architecture
Since firewall solutions can be configured using a single system or multiple
systems, the architecture used to implement the solution can be simple or
complex.
Trusted Untrusted
Network Network
Filtering Router
Screened Host (Bastion Host)
• Firewall consist of two system:
• Packet filtering router
• A bastian host
• Router provides packet filters for
some basic services
• Bastion host proxies more risky
services
• Not suitable for exporting
services
Bastian Host
• A system indentified by the firewall administrator as a critical strong poin in the
network’s security
• Hardware with its own secured version of OS
• Only allowable services are installed
• May require additional authentication from users for accessing services
• The bastion host serves as a platform for an application-level or circuit-level
gateway
• A bastion host has the following characteristics:
• Traffic from the Internet can only reach the bastion host; they cannot reach
the internal network.
• Traffic having the IP address of the bastion host can only go to the Internet.
No traffic from the internal network can go to the Internet.
Dual-homed Gateway
• A dual-homed gateway firewall
consists of a highly secured host
system running proxy software
• It has two network interfaces, one on
each side of the firewall .
• Only gateways or proxies for the
services that are considered essential
are installed on the system.
• In this case, even if, the router got
compromised, the internal network
will remain unaffected since it is in
the separate network zone.
Screened Subnet or Demilitarized Zone (DMZ)
• Created between two packet filtering
routers.
• The exterior router is the only
connection between the enterprise
network and the outside world
• The interior router does the bulk of
the access control work. It filters
packets
• The bastion host is a secure server. It
provides an interconnection point
between the enterprise network and
the outside world for the restricted
services
• The perimeter network connects the
servers together and connects the
exterior router to the interior router
Do you need a firewall?
The decision to implement a firewall solution should not be made without doing some
research and analysis.
Administrative Issues
– User access - Which users will be allowed access to and from the network?
– Access to services - Which services will be allowed in and out of the network?
– Access to resources - Which resources will be available to users?
– User authentication - Will the organization require user authentication?
– Logging and auditing - Will the organization want to keep log and audit files.
– Policy violation consequences - What will be the consequences of policy violation?
– Responsibilities - Who will oversee and administer the security policy? Who has final authority on
decisions?
Security Policy
Technical Issues
– Remote access - Will the organization allow remote access to the network?
– Physical security - How will physical security of machines, one of the most
obvious security elements that is often overlooked, be achieve?
Hardware
– Cisco Firepower NGFW & ASA
– DataPower
– SofaWare Technologies
Source gartner.com
Conclusion
Don’t make the mistake of thinking that no one will attack your network, because with
the rise in automated attack tools, your network is as much at risk as every other
network on the Internet.
The need for firewalls has led to their ubiquity. Nearly every organization connected to
the Internet has installed some sort of firewall.
When choosing and implementing a firewall solution, make a decision based on the
organization's needs, security policy, technical analysis, and financial resources.
Solutions available today utilize different types of equipment, network configurations,
and software.
HAPPY LEARNING!!