一、Centos 6版本解决办法:
1.任意运行一条iptables防火墙规则配置命令:
- 1
2.对iptables服务进行保存:
- 1
3.重启iptables服务:
- 1
二、Centos 7版本解决办法:
1、停止并屏蔽firewalld服务
- 1
- 2
2、安装iptables-services软件包
- 1
3、在引导时启用iptables服务
- 1
4、启动iptables服务
- 1
5、保存防火墙规则
- 1
- 2
- 3
- 4
另外:管理iptables服务
1.任意运行一条iptables防火墙规则配置命令:
2.对iptables服务进行保存:
3.重启iptables服务:
1、停止并屏蔽firewalld服务
2、安装iptables-services软件包
3、在引导时启用iptables服务
4、启动iptables服务
5、保存防火墙规则
另外:管理iptables服务