在centos 7下启用iptables
systemctl stop firewalld.service
systemctl disable firewalld.service yum install iptables-services -y
systemctl enable iptables
systemctl start iptables

编辑ipatbles的规则

vim /etc/sysconfig/iptables

重启iptables服务

 
service iptables restart
 
 
 
05-11 22:05