How to Install APF Firewall In Linux Servers
APF(Advanced Policy Firewall) is a policy based Iptables firewall system designed for ease of use and configuration. The configuration of APF is quite simple and easy. Below are the steps to install APF firewall:
1. Change to tmp folder to download apf.
cd /tmp
2. Download the apf tar file using wget.
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
3. Extract the downloaded file:
tar xvzf apf-current.tar.gz
4. Now, cd to apf folder:
cd apf-*
5. Install APF using following:
./install.sh
6. Disable development mode by modify the /etc/apf/conf.apf. To do this, edit the following line as shown:
DEVEL_MODE="0"
7. Save the changes and exit the file, and then restart the firewall.
apf -r
Firewall is now active. Enjoy.