|
发表于 2004-4-11 13:22:33
|
显示全部楼层
安装APF防火墙 (Advanced Policy Firewall)
这是个ipchain firewall.
cd /usr/src
wget http://rfxnetworks.com/downloads/apf-current.tar.gz
tar -xvzf apf-current.tar.gz
rm -f apf-current.tar.gz
cd apf-0.9*
sh ./install.sh (以上为安装过程)
pico -w conf.apf (pico打开设置文件)
press "Ctrl+W" search "TCP Ports" (找TCP ports"
# Common TCP Ports (设置你要打开的port)
TCP_CPORTS="21,22,25,53,80,110,143, 443, 19638"
# Common UDP Ports (设置你要打开的port)
UDP_CPORTS="53"
CTRL-x, y to save enter to confirm (退出pico)
service apf start (运行APF)
pico -w conf.apf (pico打开设置文件)
DEVM="0" (找到DEVM, 设成0,预设的是1,代表5分钟后Firewall会被重设)
CTRL-x, y to save enter to confirm (退出pico)
service apf restart |
|