|
|
刚到处晃悠发现的,求加分
1) Download the script to your server. We provide pre-configured variants of the script to just work "out of the box" on your VPS. Choose the appropriate script and run the following command as root.
# no panel ports
wget -O /etc/init.d/firewall http://vpsinfo.nixhost.net/firewall.vps
# cpanel specific ports opened
wget -O /etc/init.d/firewall http://vpsinfo.nixhost.net/firewall.cpanel.vps
# DirectAdmin specific ports opened
wget -O /etc/init.d/firewall http://vpsinfo.nixhost.net/firewall.directadmin.vps
# Plesk specific ports opened
wget -O /etc/init.d/firewall http://vpsinfo.nixhost.net/firewall.psa.vps
This is where the security concious will not take our word for anything and thoroughly read the script first. Go ahead, we'll wait. 
2) Make it executable
chmod +x /etc/init.d/firewall
3) Configure it to start at boot
/sbin/chkconfig firewall on
4) Start it.
/sbin/service firewall start
or
/etc/init.d/firewall start
5) See the rules
/sbin/service firewall status
[ 本帖最后由 winder 于 2011-5-3 17:46 编辑 ] |
|