Solution to configure the firewall using the iptables command to restart failure

  1.  This command lists current firewall configuration iptables-save
  2. Save arrangement
  • centos system

# Save the configuration file to the service iptables save

# Boot automatically enabled chkconfig iptables on

  • If the system is centos

#保存   iptables-save > /etc/sysconfig/iptables

#恢复   iptables-restore < /etc/sysconfig/iptables

 

service iptables restart  to restart the service is still valid.

Published 35 original articles · won praise 17 · Views 150,000 +

Guess you like

Origin blog.csdn.net/shaopengf/article/details/104796326