Implementing a Linux Firewall
All operations described below require that you have the root password in order to su to root. Iptables is the basic program for implementing a Linux firewall. The iptables program essentially implements a list of complex and powerful rules that will accept or deny network traffic to and/or from any source that you specify.