Here’s how to install APF

$ cd /root/downloads

or any temporary folder where you store your files

$ wget http://www.r-fx.ca/downloads/apf-current.tar.gz

$ tar -xvzf apf-current.tar.gz

$ cd apf*

$ ./install.sh

You will receive a message saying it has been installed

edit /etc/apf/conf.apf

Check out http://www.webhostgear.com/61.html for tips on how to configure APF.

Note that for VPS you must edit the line MONOKERN=”0″ to MONOKERN=”1″ in /etc/apf/conf.apf

start the firewall by

$ /usr/local/sbin/apf -s

APF will be disabled after 5 minutes

If operating as desired, set devel=0 in /etc/apf/conf.apf

and then restart APF

To autostart APF on reboot, run this:

$ chkconfig –level 2345 apf on