
Linuxeden 开源社区 --
导读 | 本文主要讲解一下在 Centos 系统中配置防火墙,希望对大家有帮助。 |
防火墙的基本操作命令
1. 查询防火墙状态:
[root@localhost ~]# service iptables status
2. 开启防火墙:
[root@localhost ~]# service iptables start
2. 开启防火墙:
[root@localhost ~]# service iptables start
3. 关闭防火墙:
[root@localhost ~]# service iptables stop
4. 重启防火墙:
[root@localhost ~]# service iptables restart
5. 永久关闭防火墙:
[root@localhost ~]# chkconfig iptables off
6. 永久关闭后开启防火墙:
[root@localhost ~]# chkconfig iptables off
补充
编辑/etc/sysconfig/iptables 文件,可以配置不同端口的对外提供服务。
原文地址: http://ift.tt/2rUfTdw编辑:王毅,审核员:逄增宝
The post CentOS 如何配置防火墙? appeared first on Linuxeden开源社区.
http://ift.tt/2qVYmo8
没有评论:
发表评论