centos防火墙centos
CentOS 7.0默认使用的是firewall做为防火墙,这里改成iptables防火墙。
firewall:
systemctl start firewalld.service #启动firewall
systemctl stop firewalld.service #中止firewall
systemctl disable firewalld.service #禁止firewall开机启动ide
查看运行状态ip
firewall-cmd --statecmd