PDA

View Full Version : How to install APF (Advanced Policy Firewall) - Dedicated Server Guide


SharkSpace_Amanda
12-26-2006, 08:30 PM
1) Login to shell via root.

2) Download APF

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

3) Extract compressed file

tar -xvzf apf-current.tar.gz

4) Move to apf folder

cd apf-put-the-version-you-downloaded-here

5) Install APF

./install.sh

6) Installation overview

Install path: /etc/apf/
Config path: /etc/apf/conf.apf
Executable path: /usr/local/sbin/apf
AntiDos install path: /etc/apf/ad/
AntiDos config path: /etc/apf/ad/conf.antidos
DShield Client Parser: /etc/apf/extras/dshield/

7 ) Edit APF configuration.

nano -w /etc/apf/conf.apf

8) Modify ports to fit your needs.

If you changed your shell port make sure to add it to: Common ingress (inbound) TCP ports The new version of APF should have all the standard ports configured for you.

9) Save and start APF

Ctrl+X then Y

then

apf -r

10) Verify everything is working then turn off dev mode.

nano -w /etc/apf/conf.apf

then

Ctrl+X then Y

then

apf -r


Process complete.


APF important commands.


apf -d IPAddress (replace IP address with an IP address to block it)
apf -f (flush the firewall or stop it)
apf -s (start APF)
apf -r (restart APF)
apf -a IPAddress ( replace IP address with an IP address to allow access)