LinuxSir.cn,穿越时空的Linuxsir!

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

使用iptables之后从服务器端用ssh总提示超时

[复制链接]
发表于 2008-2-28 16:16:29 | 显示全部楼层 |阅读模式
我的配置如下:

turtlejob:/backup# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:www
ACCEPT     0    --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy DROP)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:ssh
ACCEPT     tcp  --  anywhere             anywhere            tcp spt:www
ACCEPT     0    --  anywhere             anywhere
发表于 2008-2-29 09:09:03 | 显示全部楼层
超时不是 iptables 的问题...
你把iptables 限制都去掉呢?
/etc/ssh/sshd_config
#TCPKeepAlive yes
这个开了么?
回复 支持 反对

使用道具 举报

发表于 2008-2-29 15:56:40 | 显示全部楼层
似乎没有那个 ESTABLISHED 的那个东西呢?。。就是其他有关连接就放行的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-29 17:35:25 | 显示全部楼层
如果把iptables 清空就可以了.
回复 支持 反对

使用道具 举报

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

本版积分规则

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