LinuxSir.cn,穿越时空的Linuxsir!

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

GentOS3.8的iptables问题

[复制链接]
发表于 2006-9-12 09:26:38 | 显示全部楼层 |阅读模式
用下面的方法在CentOS3.8中设置后amule2.1.3还是低ID,请各位帮忙解决。
/sbin/iptables -I RH-Firewall-1-INPUT  -p tcp --dport 4662 -j ACCEPT
/sbin/iptables -I RH-Firewall-1-INPUT  -p udp --dport 4665 -j ACCEPT
/sbin/iptables -I RH-Firewall-1-INPUT  -p udp --dport 4672 -j ACCEPT

[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Firewall-1-INPUT (2 references)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere           udp dpt:4672
ACCEPT     udp  --  anywhere             anywhere           udp dpt:4665
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:4662
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere           icmp any
ACCEPT     ipv6-crypt--  anywhere             anywhere
ACCEPT     ipv6-auth--  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABL ISHED
REJECT     all  --  anywhere             anywhere           reject-with icmp-hos t-prohibited
[root@localhost root]#
 楼主| 发表于 2006-9-15 09:25:57 | 显示全部楼层
我把Firewall Configuration的Security Level设置为Disable后amule还是低ID,好像设置为Disable后iptables还在起作用。
[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
DROP       tcp  --  anywhere             anywhere           tcp dpts:0:1023
DROP       udp  --  anywhere             anywhere           udp dpts:0:1023
DROP       tcp  --  anywhere             anywhere           tcp flags:SYN,RST,ACK/SYN
DROP       icmp --  anywhere             anywhere           icmp echo-request

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@localhost root]#
回复 支持 反对

使用道具 举报

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

本版积分规则

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