Installation, Security

How to install APF firewall

How to install APF firewall

Go to the below path

cd /usr/local/src

Download the tar file using the below link:


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.


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 :-


Reload apf once again with below command.

apf -r