LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 580|回复: 6

iptables启动出现问题

[复制链接]
发表于 2009-5-4 13:54:26 | 显示全部楼层 |阅读模式
[root@qrpengx ~]# service iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules: iptables-restore: line 44 failed
                                                           [FAILED]
请问应该如何解决?
发表于 2009-5-4 14:02:57 | 显示全部楼层
有没改过 iptables ?会不会是改错了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-4 14:08:02 | 显示全部楼层
Post by pingz;1983093
有没改过 iptables ?会不会是改错了?


之前配置过iredmail但是iptables没有改过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-4 14:12:46 | 显示全部楼层
这是/etc/sysconfig/iptables文件
#
# Sample iptables rules. It should be localted at:
#   /etc/sysconfig/iptables
#
# Shipped within iRedMail project:
#   * http://iRedMail.googlecode.com/
#

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]

# Keep state.
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# http/https, smtp/smtps, pop3/pop3s, imap/imaps, ssh
-A INPUT -p tcp -m multiport --dport 80,443,25,465,110,995,143,993,587,465,22 -j ACCEPT

# Loop device.
-A INPUT -i lo -j ACCEPT

# http/https
#-A INPUT -p tcp -m multiport --dport 80,443 -j ACCEPT

# smtp/smtps
#-A INPUT -p tcp -m multiport --dport 25,465 -j ACCEPT

# pop3/pop3s
#-A INPUT -p tcp -m multiport --dport 110,995 -j ACCEPT

# imap/imaps
#-A INPUT -p tcp -m multiport --dport 143,993 -j ACCEPT

# ldap/ldaps
#-A INPUT -p tcp -m multiport --dport 389,636 -j ACCEPT

# ftp.
#-A INPUT -p tcp -m multiport --dport 21,20 -j ACCEPT

# ssh
#-A INPUT -p tcp --dport 22 -j ACCEPT

COMMIT
                                                              44,1          Bot
回复 支持 反对

使用道具 举报

发表于 2009-5-4 15:17:32 | 显示全部楼层
不会又是自己动过内核吧 -_-
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-4 15:21:12 | 显示全部楼层
Post by 狱卒;1983135
不会又是自己动过内核吧 -_-


没有改内核啊
回复 支持 反对

使用道具 举报

发表于 2009-5-4 20:52:52 | 显示全部楼层
把这服务关掉,自己些脚步定制iptables规则吧!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表