Linux修改防火墙配置

1.查看防火墙状态:

service iptables status

2.永久性生效,重启后不会复原,设置后需重启(reboot)

开启:

chkconfig iptables on

关闭:

chkconfig iptables off

3.即时生效,重启后复原

开启:

service iptables start

关闭:

service iptables stop

posted @ 2017-02-28 20:02  wbinbin  阅读(108)  评论(0)    收藏  举报