APF with AntiDOS Installation :-
==================================

Login to your server through SSH as root user.

Before installation by the following steps,
please check whether it is already installed, and if so, please skip this
installation.

1. cd /usr/src or another temporary folder where you store your files.

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

3. tar -xvzf apf-current.tar.gz

4. cd apf-0.9.6-1/ or whatever the latest version is.

5. Run the install file: ./install.sh
You will receive a message saying it has been installed

APF CONFIGURATION
==============
1) Change USE_DS=”0″ to USE_DS=”1″

2) Change the Value of IG_TCP_CPORTS to
IG_TCP_CPORTS=”21,22,25,26,53,80,110,143,465,953,993,995,2082,2083,2086,2087,2095,2096,3306,5666,3000_3500″

3) Change the Value of IG_UDP_CPORTS to
IG_UDP_CPORTS=”53″

4) The value of EGF should be EGF=”1″

5) Change the value of EG_TCP_CPORTS to
EG_TCP_CPORTS=”21,25,37,53,80,110,113,443,43,873,953,2089,3306″

6) Change the Value of EG_UDP_CPORTS to
EG_UDP_CPORTS=”20,21,53,873,953,6277″

7) Change the value of USE_AD to
USE_AD=”1″

8) Please note that the comment mark (#) that is present just before each
variable has been removed.

9) Change the Value of DEVEL_MODE to
DEVEL_MODE=”1″

10) Save and quit.

11) From the shell, run
chkconfig –del apf
apf -s

12) Run tail -f /var/log/apf_log for about ten minutes.

13) If there are no issues and the firewall gets flushed every five minutes,
You can get into the conf file and edit the value of DEVEL_MODE to 0, that is,
change it to DEVEL_MODE=”0″

BFD Installation
================

Before installation by the following steps,
please check whether it is already installed, and if so, please skip this
installation.

cd /usr/src
wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz
tar -xvzf bfd-current.tar.gz
cd bfd-0.9/
../install.sh
/usr/local/sbin/bfd -q
tail -f /var/log/bfd_log