centos 初始化防火墙

$ sudo iptables -F
$ sudo service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
$ sudo service  iptables restart
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]

iptables: Applying firewall rules:                         [  OK  ]


你可能感兴趣的:(centos 初始化防火墙)