APF FireWall Installation

ที่มา http://www.webhostingtalk.com/showthread.php?t=227090
รอท่านอื่นๆมา comment เรื่องการปรับแต่ง

  1. Install:
    wget http://www.rfxnetworks.com/downloads/apf-current.rpm
    rpm -Uvh apf-current.rpm

  2. Edit:
    /etc/apf/conf.apf

DEVM=“0” - set to 0 only if you are sure that firewall works good

(Common Cpanel Ports, please re-configure for your use)
TCP_CPORTS=" 21,22,25,53,80,110,143,443,465,993,995,2082,2083,2086,2087,2095,2096,3306,7786" (in one line!)

UDP_CPORTS=“37,53,873”

Many other options in which you can enable inside the config. Please take time to configure.

  1. Restart APF

To Enable Pings:

pico -w /etc/apf/icmp.rules
Uncomment:

Uncomment to enable pings

$IPT -t filter -A INPUT -p icmp --icmp-type 8 -m limit --limit $ICMP_LIM/s -j ACCEPT

Then restart APF


commands:
/etc/rc.d/init.d/apf stop
/etc/rc.d/init.d/apf start
/etc/rc.d/init.d/apf restart

ข้อมูลเพิ่มเติม http://www.webhostgear.com/61.html