220 likes | 531 Views
-Mike Sconzo. Introduction to Firewalls. Oh, so they have internet on computers now! --Homer Simpson.
E N D
-Mike Sconzo Introduction to Firewalls
usually fire-wall /'fIr-"wol/ : a computer or computer software that prevents unauthorized access to private data (as on a company's local area network or intranet) by outside computer users (as of the Internet) - Merriam-Webster What is a firewall?
Why firewall? • Audit purposes • Limit exposure to attacks • Mitigate types of attack • ...
Types • Stateful • Keeps connection information • Packet-filter • 'Dumb' firewall, no notion of state • Routing • Performs magic on layer 3 • NAT-ing • Maps IPs and blockes packets • Bridging • Layer 2 magic • Proxy • Does work on behalf of a client
Stateful • Has some idea of a connection, and its state • Some even have an idea of UDP state • Mostly TCP • Can track connections and even dynamically open ports • Example: FTP • Can filter based on connection state • Example: new,established,related, etc...
Packet Filter • A 'simple'/'dumb' firewall • No notion of state • Simply drop/accept packets • Can usually do this based on • Src/dst port/host • How does it work? • Usually drops all SYN packets for a port • Maybe drop other packets as well
Routing • Can be either stateful or not • Has a notion of layer 3 layout • Can and does route traffic • Example: • ACLs on a router
NAT-ing • Can be stateful or not • Maybe a notion of layer 3 routes • Can map IP-IP • public/private, 1-1, 1-many etc... • Example: • Linksys cable/dsl 'router'
Bridging • Sits at layer 2 • Can be addressable for network access • 'Harder' to detect • Wont touch TTL, etc... • Similar to the rest
Proxy • It requests services on the 'outside' based on user requests • Has knowledge of layer 4 • Web proxies, FTP proxies, telnet etc ... • Higher up the stack, so usually harder to defeat • 'Easy' to get out, hard to get in
Other • Filter based on • Layer 2 information • Process information • UID/GID • Different IP field/properties • Lenght, TTL, etc ...
How to 'filter' • Reject • Drop • Mangle • Change options, etc... • Queue to userspace • Redirect