LinuxSir.cn,穿越时空的Linuxsir!

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

这个句子怎么写啊?

[复制链接]
发表于 2008-11-14 16:14:20 | 显示全部楼层 |阅读模式
[root@rhel5 ~]# 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     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere            icmp any
ACCEPT     esp  --  anywhere             anywhere
ACCEPT     ah   --  anywhere             anywhere
ACCEPT     udp  --  anywhere             224.0.0.251         udp dpt:mdns
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ipp
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ipp
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTAB
LISHED
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:s
sh
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:t
elnet
REJECT     all  --  anywhere             anywhere            reject-with icmp-ho
st-prohibited
[root@rhel5 ~]#
 楼主| 发表于 2008-11-14 16:17:22 | 显示全部楼层
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:telnet
就是其中的这条,
[root@rhel5 ~]# iptables -A RH-Firewall-1-INPUT --state NEW -p tcp --dport 23 -
j ACCEPT
iptables v1.3.5: Unknown arg `--state'
Try `iptables -h' or 'iptables --help' for more information.
[root@rhel5 ~]#
回复 支持 反对

使用道具 举报

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

本版积分规则

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