linux中的firewall防火墙换成iptables防火墙

503 阅读1分钟

怎样把linux中的firewall防火墙换成iptables防火墙?我亲身试验了把,完美换成了iptables防火墙,不需很繁琐的命令,不需改什么配置文件,只需几条命令就能解决,你没听错只需几条命令就能完美解决

1、安装iptables的安装包

yum install iptables-service -y

2、禁用firewalld

systemctl mask firewalld.service

3、iptables设置成开机自启

systemctl enable iptables.service

4、停止firewall

systemctl stop firewalld.service

5、启动iptables

systemctl start iptables.service

这是截图步骤加效果(ip6tables我就没写出来,各位看官自己可以按着步骤来)