您的位置:首页 > 运维架构 > Linux

Centos6.5 关闭防火墙 iptables

2014-03-27 13:46 429 查看
遇到一个有趣的问题

centos6.5  在命令行下面使用 chkconfig --level 35 iptables off后,重启服务器发现iptables还是开启状态

进入/etc/rc3.d /etc/rc5.d/ 里面看 都没有以s开头的iptables



用命令看iptables状态,其实都是放开状态了!

[root@centos-001 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpt:bootps
ACCEPT tcp -- anywhere anywhere tcp dpt:bootps

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere 192.168.122.0/24 state RELATED,ESTABLISHED
ACCEPT all -- 192.168.122.0/24 anywhere
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos