1.关闭firewall
systemctl stop firewalld
systemctl disable firewalld
2.安装iptables
yum -y install iptables-services
3.编辑配置
vi /etc/sysconfig/iptables
4.重启服务
service iptables start #开启
systemctl enable iptables.service #设置防火墙开机启动
1.关闭firewall
systemctl stop firewalld
systemctl disable firewalld
2.安装iptables
yum -y install iptables-services
3.编辑配置
vi /etc/sysconfig/iptables
4.重启服务
service iptables start #开启
systemctl enable iptables.service #设置防火墙开机启动