APF with AntiDOS Installation
=======
Login to your server through SSH as root user.
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,443,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"
Cool Please note that there is no COMMENT SYMBOL (#) to the left of each CONSTANT
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"








