关于iptables自启动的问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
lldonger
帖子: 101
注册时间: 2010-10-15 15:42

关于iptables自启动的问题

#1

帖子 lldonger » 2011-01-07 10:19

环境:centos5.4
终端里运行setup,在firewall configuration里:iptables的状态是 Disabled

在System services里iptables设置的是启动的。而且
[root@localhost ~]# chkconfig --list |grep iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:off 6:off

那么为什么系统启动后我查看iptables的状态时停止的呢(系统运行在级别3上)

[root@localhost ~]# service iptables status
Firewall is stopped.
[root@localhost ~]#
附件
s.jpg
未命名.jpg
头像
nkadun
帖子: 444
注册时间: 2008-06-10 12:40

Re: 关于iptables自启动的问题

#2

帖子 nkadun » 2011-01-09 0:51

#service iptables start
试一下是不是配置错误
Macbook Pro 15 with Debian
又剁了一只手
baby
帖子: 641
注册时间: 2005-11-10 19:12

Re: 关于iptables自启动的问题

#3

帖子 baby » 2011-01-12 18:00

实在不行就写在/etc/rc.local里面
回复