CentOS 7.0默认使用的是firewall作为防火墙。

时间:2022-03-27 02:12:27
systemctl start firewalld.service#启动firewall
systemctl stop firewalld.service#停止firewall
systemctl disable firewalld.service#禁止firewall开机启动
systemctl start iptables.service#启动iptables
systemctl stop iptables.service#停止iptables
systemctl disable iptables.service#禁止iptables开机启动