OS:RHEL3
情况说明:为在防火墙上打开50000端口,执行了以下操作。但是在执行如下操作后,端口是打开了.(即通过客户端访问了),但是原有的防火墙规则都消失了(即iptab.les -L什么也看不到了),.不知道是哪块遗漏了(即使在reboot后也是一样的)。望哪位.指点一下。.
[root@mydb r.oot]# .iptables -L 美容
Cha.in .INPUT (policy ACCEPT)[成人用品]
target prot opt source . . destination电影
RH-Firewall-.1-INPUT all -- any.where anywhere 汽车
C.hain. FORWARD (policy ACCEPT) 婚庆
target prot opt source . desti.nation( 游戏 )
RH-Fir.ewall-1-INPUT all -- anywhere any.where 鲜花
C.hain OU.TPUT (policy ACCEPT)健康
target .prot opt source . destination.
Cha.in RH-Firewall-1-INPUT. (2 references)--- 印刷
target. prot opt source. destination.
ACCEPT all. . -- anywhere anywhere(广告)
ACCEPT icmp -- anywhere anywhere . icmp. any学习
ACCE.PT . ipv6-crypt-- anywhere anywhere 健康
ACCEPT ipv.6-auth-- anywhere .anywhere学习
ACCEPT all -- anywhere . anywhere state RELAT.ED,ESTAB.L服务器
ISHED
ACCEPT tcp -- anywhe.re .anywhere sta.te NEW tcp dpt:te.
lnet
ACCEPT . tcp .-- anywhere . anywhere state NEW tcp dpt:ft.
p
REJECT a.ll -- anywhere anywhere. . reject-with icmp-hos--- 印刷
t-prohibited
[root@mydb root]# /etc/rc..d./init.d/iptables save( 游戏 )
Savi.ng firewall rules to /etc/sysconfig/i.ptables: 确定 ].
[root@mydb root]# iptables -A INPUT -p tcp -.-dport 50000 -j .ACCEPT教育
[root@mydb .root]# /etc/rc.d/init.d/iptab.les save.
Saving firewall rul.es to /etc/sysconfig/iptables: . 确定 ] 汽车
[root@mydb root]# ipta.ble.s -L电脑
Chai..n INPUT (policy ACCEPT) 婚庆
target . prot opt source . destination.
RH-.Firewall-1-INPUT all -- an.ywhere anywhere 杀毒
ACCEPT tcp --. any.where anywhere tcp dpt:50000--- 印刷
Chain F.ORWARD (policy AC.CEPT).
target. prot opt source dest.ination.
RH-Firewall-1-INPUT all. -- . anywhere anywhere.
Chain OUTPUT (po.licy ACCEP.T) 美容
target prot opt source. . destination 健康
C.hain RH-Firewall-1-IN.PUT (2 references) 外汇
targe.t . prot opt source destination 乙肝
ACCEPT. all -- anywhere. anywhere教育
ACCEPT icmp -- anywhere an..ywhere icmp any[成人用品]
A.CCEPT ipv6-crypt-- .anywhere anywhere.
ACCEPT ipv6-auth-- any.wh.ere anywhere.
AC.C.EPT all -- anywhere anywhere stat.e RELATED,ESTABL虚拟主机
ISHED
ACCEPT tc.p -- any.whe.re anywhere state NEW tcp dpt:te.
lnet
ACCEPT tcp -- anywhere . anywhere . . state NEW tcp dpt:ft外贸
p
REJECT all -- anywhere anywhere . rej..ect-with icmp-hos.
t-prohibited
[root@mydb roo.t]# /etc/rc.d/init.d/iptables sa.ve 乙肝
Saving firewall rules to /etc/sysconfig/iptables: 确定.. ]外贸
[root@mydb root]# iptables -A INPUT -p .tcp --dpor.t 50000 -j ACCEPT.
[root@mydb ro.ot]# /etc/rc..d/init.d/iptables save
Saving firewall rules to /etc/sysconfi.g/iptables: 确定 ].<性病>
[root@mydb root]# serv.i.ce iptables restart 杀毒
Fl.ushing firewall rule.s: 确定 ] 健康
Setting chains to policy ACCEPT: filter . 确.定 ].
Unloading iptables m.odules: 确定. ].
Applying iptables firewall ru.l.es: Bad argument `any'.
Error occured at line:. 12 健康
Try `iptables-restore -h' or 'iptabl.es-res.tore --help' for more infor.mation.(广告)
失败]
[root.@mydb root]# ipt.ables -L(广告)
Chain INPUT .(policy ACCEP.T)<性病>
target . prot opt source dest.ination.
C.hain FORWARD (.policy ACCEPT)电脑
target prot opt source . destinatio.n( 游戏 )
Chain O.UTPUT (policy. ACCEPT)健康
ta.rget prot opt sour.ce destination 美容
[
root@m.ydb root]# 女人
[ 本帖最后由 .wxx_126 于 2009-3-5 10:09 编辑 .](广告)