Name:
- What command will clear all firewall rules and allow traffic to your machine?
- (5 points) Write a script to make iptables rules so that only ports 22, 25, 53, 80 and 443 are open. DO NOT BLOCK the loopback address, and ensure that your system can still access the internet after your script runs. Get Instructor sign-off.
- (4 points) Set up iptables so that it logs all probes
- What is the difference between the INPUT and OUTPUT chain?
- What is the difference between the FORWARD and OUTPUT chain?
- Why might it be a good idea to have multiple NICs in a firewall?
- What is the difference between using the -I and the -A flags when configuring iptables rules?
- What text file lists of the ports on which services typically listen?
- In which file do iptables log messages get put?
- (4 points) What would a port scan look like, in terms of the iptables logfile?
- What command will clear all iptable rules from a chain?
- What are the 3 default chains used by iptables?
- When is a chain's policy followed?
- What command will set the default policy of the OUTPUT chain to DROP?
- Why should all traffic on the loopback interface be allowed?