iptables 如何打开telnet???

由 xiweihua 在 04-11-2003 11:36 发表:

iptables 如何打开telnet???

我昨天回去在机器上试了一下,我的设置如下:

iptables -P INPUT -j DROP

iptables -P OUTPUT -j DROP

iptables -P FORWARD -j DROP

我默认的都是全啊丢弃的,

然后我想打开自己的TELNET 。所以加了一句

iptables -A OUTPUT -0 eth0 -p tcp -s 192.168.0.2 --sport 1024:65535 -d any/0 --dport 23 -j ACCEPT

iptables -A INPUT -i eth0 -p tcp ! --syn -s any/0 --sport 23 -d 192.168.0.2 --dport 1024:65535 -j ACCEPT

但我用TELNET还是登不上去。这是为什么叫呢


由 xiweihua 在 04-11-2003 13:02 发表:


怎么每有人回


由 大熊宝宝 在 04-12-2003 18:36 发表:


iptables -A INPUT -i ppp0 -p tcp -dport 23 -j ACC

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus