CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
CSE 543 - Computer Security
Lecture 20 - Firewalls November 8, 2007
URL: http://www.cse.psu.edu/~tjaeger/cse543-f07
1
CSE 543 - Computer Security Lecture 20 - Firewalls November 8, 2007 - - PowerPoint PPT Presentation
CSE 543 - Computer Security Lecture 20 - Firewalls November 8, 2007 URL: http://www.cse.psu.edu/~tjaeger/cse543-f07 CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger 1 Midterm Grades (High is 83) 77-94 -- A (4)
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
1
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
2
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
and TOCTTOU in Janus)
3
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
4
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
5
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
confidentiality, and availability of the resources is maintained.
6
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
7
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
8
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
9
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
10
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
11
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
12
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
13
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
14
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
15
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
16
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
17
CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger
18
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– But systems and requirements are complex
– All the protocols and services – Stateless vs. stateful firewalls – Network function: NAT, forwarding, etc.
– http://www.netfilter.org/documentation/HOWTO/packet- filtering-HOWTO.html – http://linux.web.cern.ch/linux/scientific3/docs/rhel-rg-en-3/ ch-iptables.html
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
Preroute Input Forward Postroute Routing Output
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– All the firewall rules
– List of rules associated with the chain identifier – E.g., hook name
– When all a rule’s field match the packet (protocol-specific)
– Operation to execute on a packet given a match
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– Append rule to end or specific location in chain – Delete a specific rule in a chain – Flush a chain – List a chain – Create a new user-specified chain – Replace a rule
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– ping -c 1 127.0.0.1
– iptables -A INPUT -s 127.0.0.1 -p icmp -j DROP
– iptables -D INPUT 1 – iptables -D INPUT -s 127.0.0.1 -p icmp -j DROP – iptables -F INPUT
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– IP address 127.0.0.1
– submit ping requests to 127.0.0.1 as above
– submit requests to 127.0.0.1 at specific port – server
– client
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– IP address range and netmask
– ICMP, TCP, etc
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– Specific to protocol
– Source/destination ports – SYN – TCP flags
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page
– Only a few supported on your Playpen (lucky you)
– iptables -A INPUT -p tcp -m string --algo bm --string ‘exe’
– iptables -A INPUT -p tcp -m length --length 10:100
CSE497b Introduction to Computer (and Network) Security - Spring 2007 - Professor Jaeger Page