A simple secure iptables firewall for Centos / Debian / Ubuntu with config file
Download files and place them in your /etc/ folder. Make /etc/init.d/firewall executable: chmod +x /etc/init.d/firewall
To automaticly start firewall on boot:
CENTOS/FEDORA: chkconfig firewall on UBUNTU/DEBIAN: update-rc.d firewall defaults