Linux下(Cento6.10和Centos7)防火墙配置

Centos6.10

(1)查看防火墙状态:

[root@boy ~]# service iptables status

(2)开启防火墙:

[root@boy ~]# service iptables start

(3)关闭防火墙(临时关闭下次开启虚拟机还需要关闭):

[root@boy ~]# service iptables stop

(4) 永久关闭防火墙:

chkconfig iptables off 

Linux下(Cento6.10和Centos7)防火墙配置_第1张图片

Centos7

(1)临时关闭

systemctl stop firewalld

(2)禁止开机启动

systemctl disable firewalld

版权声明:本文为博主原创文章,转载请附上博文链接!

author:阳光蓝孩

你可能感兴趣的:(【linux】)