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
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 6.5系统中如何关闭seLinux和iptables防火墙
- centos 6.5关闭 防火墙
- 分享:centos关闭iptables防火墙的方法
- CentOS 7.0 关闭firewalld防火墙指令 及更换Iptables防火墙
- centos中iptables和firewall防火墙开启、关闭、查看状态、基本设置等
- centOS 6.5关闭防火墙步骤
- CentOS 7.0关闭默认防火墙启用iptables防火墙
- CentOS防火墙开放和关闭端口(iptables)
- CentOS 6.5开启、关闭防火墙及开放指定端口
- centOS 6.5关闭防火墙步骤
- centos6.5关闭selinux、iptables、ipv6
- Centos7防火墙关闭和启用iptables操作
- centos6.5和ubuntu关闭防火墙方法
- CentOS 6.5配置iptables防火墙策略
- centOS 6.5关闭防火墙步骤
- CentOS 6.5系统中iptables防火墙开放端口80 3306 22端口
- CentOS 7 关闭防火墙(firewall)并安装iptables防火墙
- (转)CentOS 7.0关闭默认防火墙启用iptables防火墙
- CentOS 7.0关闭默认防火墙启用iptables防火墙
- CENTOS7防火墙关闭以及启用默认iptables防火墙