查看状态
/etc/init.d/iptables status
关闭
/etc/init.d/iptables stop
永久关闭:
chkconfig --level 35 iptables off
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart
/etc/init.d/iptables status
关闭
/etc/init.d/iptables stop
永久关闭:
chkconfig --level 35 iptables off
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart