无法启动iptables.service:'没有这样的文件'

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
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注