centos防火墙

2017-02-04  本文已影响0人  tommyhxh

CentOS 6:

1) 永久性生效,重启后不会复原
开启:

chkconfig iptables on

关闭:

 chkconfig iptables off

2) 即时生效,重启后复原
开启:

service iptables start

关闭:

service iptables stop

CentOS 7:

systemctl start firewalld.service#启动firewall
systemctl stop firewalld.service#停止firewall
systemctl disable firewalld.service#禁止firewall开机启动
上一篇 下一篇

猜你喜欢

热点阅读