1)查看防火墙状态:/etc/init.d/iptablesstatus暂时关闭防火墙:/etc/init.d/iptablesstop禁止防火墙在系统启动时启动/sbin/chkconfig--level2345iptablesoff重启iptables:/etc/init.d/iptablesrestart重启后生效开启:chkconfigiptableson关闭:chkconfigiptablesoff或者/sbin/chkconfig--level2345iptablesoff2)即时生效,重启后失效service方式开启:serviceiptablesstart关闭:serviceiptablesstopiptables方式查看防火墙状态:/etc/init.d/iptablesstatus暂时关闭防火墙:/etc/init.d/iptablesstop重启iptables:/etc/init.d/iptablesrestart
(以上内容不代表本站观点。) --------------------------------- |