netnr / iptables
2019-07-25 14:59
iptables防火墙的启动、停止
  iptables shell
# 查看状态
systemctl status iptables
# 停止
systemctl stop iptables
# 启动
systemctl start iptables
# 重启
systemctl restart iptables
# 永久关闭
systemctl disable iptables.service
# 永久关闭后启用
systemctl enable iptables.service

# 配置文件路径
vi /etc/sysconfig/iptables
ˆ