Firewall Configuration
Firewall Configuration
Firewall Configuration
Firewall Configuration
zz
Firewall Principles
Firewall Principles
z
z
Firewall Characteristics
Firewall Characteristics
z
z
Types of Firewalls
Types of Firewalls
z
z
Firewall Deployments
Firewall Deployments
Firewall Principles
Firewall Principles
zz
Internet connectivity is a common
Internet connectivity is a common
component of today
component of today
’
’
s networks
s networks
¾
¾
Benefits:
Benefits:
Access to wide variety of resourcesAccess to wide variety of resources
Exposure for company on InternetExposure for company on Internet
¾
¾
Risks:
Risks:
Outside world could gain access Outside world could gain access internal resources
internal resources
If poorly configured, can result in network If poorly configured, can result in network security breach
security breach
Solution
Solution
zz
Implement a Firewall
Implement a Firewall
¾¾
Boundary between the Internet and
Boundary between the Internet and
the internal network
the internal network
Firewall
Internal Network Internal Network Internet
Firewall Characteristics
Firewall Characteristics
zz
All traffic that navigates between the
All traffic that navigates between the
internal network and the external
internal network and the external
network must pass through the firewall
network must pass through the firewall
z
z
Only authorized traffic should be
Only authorized traffic should be
allowed to pass
allowed to pass
z
z
The firewall must be immune
The firewall must be immune
to penetration
to penetration
Features To Have
Features To Have
On A Firewall
On A Firewall
zz
Direction Control
Direction Control
z
z
Service Control
Service Control
z
z
User Control
User Control
z
z
Behavior Control
Behavior Control
z
z
Auditing
Auditing
z
z
Network Address Translation (NAT)
Network Address Translation (NAT)
z
z
Port Mapping
Port Mapping
Features To Have
Features To Have
On A Firewall
On A Firewall
z
z
Direction Control
Direction Control
¾¾ Different rules can be defined for incoming Different rules can be defined for incoming or outgoing traffic
or outgoing traffic
z
z
Service control
Service control
¾¾ Define what protocols can be used. Based on an Define what protocols can be used. Based on an IP address, Port Address or protocol ID level IP address, Port Address or protocol ID level
Incoming Rules Incoming Rules Web Server:443 Web Server:443 Any.* Any.* Web Server:80 Web Server:80 Any:* Any:* Destination Destination Source Source Outgoing Rules Outgoing Rules Any:* Any:* Web Server:443 Web Server:443 Any:* Any:* Web Server:80 Web Server:80 Destination Destination Source Source
Features To Have
Features To Have
On A Firewall
On A Firewall
zz
User Control
User Control
¾¾ Only allows authorized users to pass Only allows authorized users to pass
traffic through firewall or to access resource traffic through firewall or to access resource on internal network
on internal network
z
z
Behavior control
Behavior control
¾¾ Sets how applications can be usedSets how applications can be used ¾
¾ Mail filter for viruses or specific forms Mail filter for viruses or specific forms of attachments
of attachments
z
z
Auditing
Auditing
¾Internet Internet Firewall 192.168.10.1 192.168.10.1 192.168.10.2 131.107.2.200 131.107.2.200
Network Address Translation Network Address Translation 200.200.20.1 200.200.20.1 192.168.10.1 192.168.10.1 131.107.2.200 131.107.2.200 Destination Destination Source Source
Features To Have
Features To Have
On A Firewall
On A Firewall
zz
Network Address
Network Address
Translation (NAT)
Translation (NAT)
Internal Network Internal Network Firewall 131.107.2.200 131.107.2.200 Internal Network Internal Network 192.168.10.1 192.168.10.2 192.168.10.3Features To Have
Features To Have
On A Firewall
On A Firewall
zz
Port Mapping
Port Mapping
Port Mapping Port Mapping 80 80 80 80 Port Port 200.200.20.1 200.200.20.1 192.168.10.3 192.168.10.3 131.107.2.200 131.107.2.200 Destination Destination Source Source 200.200.20.1 200.200.20.1 Internet Internet
Firewall Limitations
Firewall Limitations
zz
Cannot protect against attacks that
Cannot protect against attacks that
bypass the firewall
bypass the firewall
¾¾ Remote Access Services on Internal NetworkRemote Access Services on Internal Network
Firewall Firewall Internet Internet Modem Modem
Types Of Firewalls
Types Of Firewalls
zz
Packet
Packet
-
-
Filter Firewall
Filter Firewall
z
z
Circuit
Circuit
-
-
Level Firewalls
Level Firewalls
z
z
Application
Application
-
-
Level with Proxy
Level with Proxy
Service
Service
z
z
Dynamic Packet Filter Firewalls
Dynamic Packet Filter Firewalls
z
Packet
Packet
-
-
Filter Firewall
Filter Firewall
z
z
Analyze traffic at the transport layer
Analyze traffic at the transport layer
of the OSI model
of the OSI model
z
z
Compare each packet to a series
Compare each packet to a series
of rules for the interface
of rules for the interface
z
z
Apply both incoming and
Apply both incoming and
outgoing rules
outgoing rules
Circuit
Circuit
-
-
Level Firewalls
Level Firewalls
z
z
Each packet that passes through a firewall is
Each packet that passes through a firewall is
¾¾ A connection requestA connection request ¾
¾ Data being transported across an existing Data being transported across an existing connection
connection
z
z
Works as a referee to ensure that a proper
Works as a referee to ensure that a proper
3
3
-
-
way handshake takes place, if not, then
way handshake takes place, if not, then
drops connection
drops connection
z
z
A table of valid connections is maintained.
A table of valid connections is maintained.
¾¾ Current session stateCurrent session state ¾
¾ Sequence info for both client and serverSequence info for both client and server
Circuit
Circuit
-
-
Level Firewalls
Level Firewalls
z
z
Firewall does not permit an end
Firewall does not permit an end
-
-
to
to
-
-
end
end
connection
connection
z
z
Establishes two separate connections
Establishes two separate connections
¾¾ One between an inner host and the firewallOne between an inner host and the firewall ¾
¾ One between an outer host and the firewallOne between an outer host and the firewall
Outer Connection
Inner Connection
Application
Application
-
-
Level With
Level With
Proxy Service
Proxy Service
z
z
Evaluates data at the application level before
Evaluates data at the application level before
allowing connection to take place
allowing connection to take place
z
z
Requires configuration of client hosts
Requires configuration of client hosts
¾¾ Internal client sends request to a proxy serverInternal client sends request to a proxy server ¾
¾ Transparent to userTransparent to user ¾
¾ More precise rules can be developed based More precise rules can be developed based on actual protocol
on actual protocol
z
z
Achieves performance gains
Achieves performance gains
¾¾ Cache information to reduce external Cache information to reduce external bandwidth usage
bandwidth usage ¾
Dynamic Packet Filter
Dynamic Packet Filter
Firewalls
Firewalls
z
z
Combines services of application and packet
Combines services of application and packet
filter firewalls
filter firewalls
z
z
Allows security rules to be created on the fly
Allows security rules to be created on the fly
z
z
Provides UDP transport support
Provides UDP transport support
¾¾ Firewall records info on all UDP packets that cross Firewall records info on all UDP packets that cross (source port destination port)
(source port destination port) ¾
¾ Response must be returned to original requestorResponse must be returned to original requestor ¾
¾ If this does not occur, drop packets!If this does not occur, drop packets! ¾
¾ If not returned in a timely fashion, If not returned in a timely fashion, drop packets!
drop packets!
Kernel Proxy Firewalls
Kernel Proxy Firewalls
z
z
Rules are implemented at kernel level
Rules are implemented at kernel level
z
z
Information is discarded without being
Information is discarded without being
passed up the network stack
passed up the network stack
z
z
For each new session, a new TCP/IP stack
For each new session, a new TCP/IP stack
is generated on the fly with the following
is generated on the fly with the following
properties:
properties:
¾¾ Contains protocol proxies required only Contains protocol proxies required only for that session
for that session ¾
¾ Can be customized to implement investigation Can be customized to implement investigation of the data transmission
of the data transmission ¾
¾ Network packet can be reNetwork packet can be re--inspected at each levelinspected at each level ¾
¾ A packet to be discarded before it reaches A packet to be discarded before it reaches the application level
the application level
Firewall Configurations
Firewall Configurations
zz
Bastion Host
Bastion Host
z
z
De
De
-
-
Militarized Zones
Militarized Zones
¾
¾
Three
Three
-
-
Pronged DMZ
Pronged DMZ
¾
¾
Mid
Mid
-
-
Ground DMZ
Ground DMZ
Bastion Host
Bastion Host
zz
Used for smaller networks
Used for smaller networks
z
z
Only purpose is to protect internal
Only purpose is to protect internal
network from external network
network from external network
De
De
-
-
Militarized Zone (DMZ)
Militarized Zone (DMZ)
z
z
Places all Internet accessible resources
Places all Internet accessible resources
in separate segment of network
in separate segment of network
z
z
All traffic (inbound and outbound) is
All traffic (inbound and outbound) is
screened by administrator
screened by administrator
-
-
defined
defined
rules
rules
z
z
Rules are defined for interaction
Rules are defined for interaction
between all network segments
between all network segments
Three
Three-
-Pronged DMZ
Pronged DMZ
z
z
Only one firewall required
Only one firewall required
Firewall Firewall Internet Internet DMZDMZ Private Network Private Network
Mid
Mid-
-Ground DMZ
Ground DMZ
z
z Might be implemented with two different firewall Might be implemented with two different firewall products
products z
z More cost, but can be more secure!More cost, but can be more secure!
Private Network Private Network External Firewall Internal Firewall Internet Internet DMZ DMZ
Final Thoughts
Final Thoughts
zz
Careful design is required for
Careful design is required for
a firewall solution
a firewall solution
z
z
Be sure to test all configurations
Be sure to test all configurations
z
z
Use a
Use a
“
“
Deny All Except Those Listed
Deny All Except Those Listed
”
”
methodology
methodology
¾Final Thoughts
Final Thoughts
zz