CentOS 7/Fedora 出现Unit iptables.service failed to load的解决办法

CentOS7下把iptables改成传统方式来使用的办法!

systemctl stop firewalld
systemctl mask firewalld
 
安装iptables-services:
yum install iptablesservices
 
设置开机启动:
systemctl enable iptables
systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]
 
service iptables save
#or
/usr/libexec/iptables/iptables.init save

发表回复

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