How to install APF firewall

Go to the below path

cd /usr/local/src

Download the tar file using the below link:

wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz

Untar the file using the below command.

tar -zxf apf-current.tar.gz

Go to APF folder now.

cd apf

Fire the below command to install APF firewall.

./install.sh

Now edit config file with your favorite editor.

pico /etc/apf/conf.apf

It will automatically take the running services but please check the port are enabled before exiting development mode.

Save the file and restart apf with following command :-

apf -r

If everything goes fine then re edit the conf.apf file and set dev mode off. It should look like following :-

DEVEL_MODE=”0?

Reload apf once again with below command.

apf -r