#列出所有端口状态
iptables -L -n
#修改IP限制规则
vim /etc/sysconfig/iptables
#重启防火墙使配置生效
systemctl restart iptables.service
#设置防火墙开机启动
systemctl enable iptables.service
标签:iptables,CentOS,service,防火墙,vim,systemctl
From: https://www.cnblogs.com/kewenpu/p/16825110.html