CentOS关闭iptables

技术

 

CENTOS7及其更高版本:

查看状态

systemctl status firewalld.service

打开防火墙

systemctl start firewalld.service

关闭防火墙

systemctl stop firewalld.service

开启防火墙

systemctl enable firewalld.service

禁用防火墙

systemctl disable firewalld.service

 


 

旧版本

 

/etc/init.d/iptables stop

/etc/init.d/iptables status