You have a Fedora Core 2 system that is to function as a Web proxy server. Client machines are on the 192.168.1/24 network. The Internet connection is via a router on the 172.20.5/24 network. Your proxy server has two network interfaces: eth0 is 192.168.1.100 and eth1 is 172.20.5.17 . Both interfaces use a subnet mask of 255.255.255.0 (24-bits). Assume that the network routes and proxy services ( squid and named ) are correctly configured.
Design firewall rules (using iptables ) to implement the following requirements.
No incoming connections are allowed on the 172.20.5.17 interface.
The only permitted outgoing connections on the 172.20.5.17 interface are for DNS, FTP, HTTP, and HTTPS traffic from the proxy server.
Two machines (IP addresses 192.168.1.201 and 192.168.1.155 ) are to be allowed to connect using SSH.
All other machines in the 192.168.1/24 network are allowed to connect on port 3128 only (the port that the Squid Web proxy server is listening on) and port 53 (for DNS queries).
Allow ICMP traffic.
All other connections (incoming or outgoing) must be blocked.
Log attempts by machines on the 192.168.1/24 network to use Telnet or FTP to access the proxy server.
Make sure your rules will be applied each time the system boots.
After your proxy server has been running for a while, a new requirement is identified. Machines on the 192.168.1/24 network need to be able to make PPTP connections to an external VPN server with an IP address of 10.1.3.97 . Update the iptables rules to satisfy this requirement. (Assume that IP forwarding is enabled on your proxy server).