HOWTO: APF Firewall
For more info on the firewall please visit http://www.r-fx.net/apf.phpSSH to your box.
wget http://www.r-fx.net/downloads/apf-current.rpm
rpm -Uvh apf-current.rpm
Then Edit it
pico /etc/apf/conf.apf
DEVM="0" - make sure it works
TCP_CPORTS=" 20,21,22,25,37,53,80,110,143,443,465,873,993,995,2
080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2
090,2091,2092,2093,2094,2095,2096,2097,2098,2099,3
306,10000,20000" (MAKE SURE ITS ALL IN ONE LINE)
UDP_CPORTS="37,53,873"
After that
commands:
/etc/rc.d/init.d/apf stop
/etc/rc.d/init.d/apf start
/etc/rc.d/init.d/apf restart
To autostart apf on reboot, run this:
chkconfig --level 2345 apf on
To remove it from autostart, run this:
chkconfig --del apf
Pipson.
