CentOS防火墙配置

Posted itbsl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS防火墙配置相关的知识,希望对你有一定的参考价值。

1.查询防火墙状态

service iptables status

2.开启防火墙

service iptables start

3.关闭防火墙

service iptables stop

4.重启防火墙

service iptables restart

5.永久关闭防火墙

chkconfig iptables off

6.开启永久关闭的防火墙

chkconfig iptables on

补充:编辑/etc/sysconfig/iptables文件,可以配置不同端口的对外提供服务。

以上是关于CentOS防火墙配置的主要内容,如果未能解决你的问题,请参考以下文章