卡饭网 > centos > 正文

CentOS 配置防火墙操作实例

来源:本站整理 作者:梦在深巷 时间:2016-07-27 09:21:35

查询防火墙状态:

[root@localhost ~]# service iptables status<回车>

停止防火墙:

[root@localhost ~]# service iptables stop <回车>

启动防火墙:

[root@localhost ~]# service iptables start <回车>

重启防火墙:

[root@localhost ~]# service iptables restart <回车>

永久关闭防火墙:

[root@localhost ~]# chkconfig iptables off<回车>

永久关闭后启用:

[root@localhost ~]# chkconfig iptables on<回车>

查看防火墙状态

[root@localhost ~]# service iptables status<回车>

相关推荐