firewalld
默认安装在CentOS7系统上。您需要禁用它并安装iptables
。这些步骤应该这样做:
systemctl mask firewalld
systemctl stop firewalld
yum install iptables-services
systemctl enable iptables
systemctl start iptables
(可选)如果您还想处理IPv6:
systemctl enable ip6tables
systemctl start ip6tables