Results 1 to 2 of 2
09-07-2004, 12:51 AM #1
- Join Date
- Dec 2003
Installing APF (Advanced Policy Firewall)
APF is a policy based iptables firewall system designed for ease of use and configuration. It employs a subset of features to satisfy the veteran
Linux user and the novice alike. Packaged in tar.gz and RPM formats, APF is ideal for deployment in any linux server environment.
This guide will show you how to install and configure APF firewall on your server.
1. Type cd /usr/local/src
2. wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz
3. tar -xvzf apf-current.tar.gz
4. cd apf-x.x/ (the x.x stands for the apf version)
The message below will appear once APF is installed.
.: APF installed
Install path: /etc/apf
Config path: /etc/apf/conf.apf
Executable path: /usr/local/sbin/apf
6. pico /etc/apf/conf.apf
Note: The settings below are recommend for cPanel servers.
Common ingress (inbound) ports
IG_TCP_CPORTS="21,22,25,53,80,110,143,443,2082,2083, 2086,2087, 2095, 2096,30000_35000"
Common ingress (inbound) UDP ports
Common egress (outbound) TCP ports
Common egress (outbound) UDP ports
7. Simply press Crtl + X then Y to save & quit.
8. Starting the firewall
9. If everything is fine after the firewall is being started, key in
Change DEVM="1" to DEVM="0"
10. Again, press Ctrl+X then Y
11. To restart the firewall, type /usr/local/sbin/apf -r
Thank You Michael Foo from kkhost.net
09-10-2004, 10:18 AM #2
- Join Date
- Feb 2004
Very nice article!The Web Hosting Show - The Voice of the Web Hosting World
Think of it as talk radio mixed with Web hosting discussion for both Web hosts and Web hosting clients! New episode every Monday!