CentOS linux关闭iptables防火墙

源:http://www.2cto.com/os/201205/132884.html
评:
linux服务器下防火墙为iptables组件,在安装一些软件的时候,iptables防火墙会阻止我们一些必要的连接,所以,我代购的美国服务器,荷兰服务器等海外服务器iptables初始状态为关闭。如果有一些服务器没有关闭iptables,并且你还特别想关闭它,哪么以下命令,你可以能用的上。

查看iptables状态:
service iptables status

查看iptables状态

查看iptables状态
(从图中可以看到,我的服务iptables是已经关闭的,如果你的是开启状态,你可以通过一下命令关闭)  www.2cto.com 
iptables开机自动启动:
开启: chkconfig iptables on
关闭: chkconfig iptables off
iptables关闭服务:
开启: service iptables start
关闭: service iptables stop

猜你喜欢

转载自mauersu.iteye.com/blog/2036994