Installing APF

Posted: 0p in Linux

APF is a firewall and for installing it on your server you need to have root ssh access to your server. Installation of APF is quite simple just follow the steps as given below:
Login to your server as root via ssh.
Create the folder from which you would like to install APF in my case it is /usr/APF you can create it using the mkdir command:
mkdir /usr/APF
and then change to that directory with:
cd /usr/APF
Next download APF, you can do this by providing the following command from your shell:
wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
Now to extract the contents you can use:
tar -xvzf apf-current.tar.gz
Now get into the APF directory:
cd apf-0.9.5-1/ or whatever the latest version is
and run the install file:
./install.sh
You will receive a message saying APF has been installed.
Now we need to configure our firewall: pico /etc/apf/conf.apf
We like to use DShield.org’s “block” list of top networks that have exhibited suspicious activity.
FIND: USE_DS=”0″
CHANGE TO: USE_DS=”1″
FIND the following and check whether they are same as bellow, if not add them
IG_TCP_CPORTS=”21,22,25,53,80,110,143,443,2082,2083,2086,2087,2095,2096,3000_3500″
IG_UDP_CPORTS=”53″
EGF=”1″
EG_TCP_CPORTS=”21,25,80,443,43,2089″
EG_UDP_CPORTS=”20,21,53″
================================================

Advertisements
Comments
  1. HCG diet says:

    I’ve found myself here several times before while looking various things. I appreciate the detailed articles you write, and in some cases this is the ONLY place I can even find them. Cheers

  2. Thad Coach says:

    I’m glad I discovered your article. Your writing is so thought-provoking. I’m sure I will think about this content for a while. Really good content.

  3. Fantastic goods from you, man. Installing APF Linux System Administration I’ve understand your stuff previous to and you are just too fantastic. I actually like what you have acquired here, really like what you are saying and the way in which you say it. You make it enjoyable and you still take care of to keep it sensible. I cant wait to read far more from you. This is actually a terrific Installing APF Linux System Administration informations.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s