Centos下防火墙的操作


首先查看防火墙的状态:


输入指令:service iptables status

如果是开启状态的话如图所示:

\



如果关闭的状态是:<喎?http://www.Bkjia.com/kf/ware/vc/" target="_blank" class="keylink">vc3Ryb25nPjwvcD4KPHA+PHN0cm9uZz48YnI+Cjwvc3Ryb25nPjwvcD4KPHA+PHN0cm9uZz48aW1nIHNyYz0="http://www.2cto.com/uploadfile/Collfiles/20150428/201504281013112.jpg" alt="\">


那么对于正在运行的状态进行操作:



停止防火墙:
service iptables stop

启动防火墙:
service iptables start

重启防火墙:
service iptables restart

永久关闭防火墙:
chkconfig iptables off

永久关闭后启用:
chkconfig iptables on


如图是关闭的过程:




相关内容