SSH Connections Lost After 1 minute idle
Yupp that was the problem.
I disabled the Linksys firewall and the connections are no longer dropping.
Sorry to have wasted anyone's time and thanks for everyone's feedback.
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
The other thing I should mention is the WAN interface is connected to a Linksys Router - so that could also be the culprit...as I did find this thread (however I'm not using VPN it sounds similair):
http://www.dslreports.com/forum/remark,10634772~mode=flat
Quoted 107 lines · --- Nick Taylor
I'm sorry, I haven't followed the entirety of this thread, but my thoughts
are as follows:Sometimes (on a nat box), the connection tracking can't tell the
difference between an "orphaned" connection (say the server crashed) and
an idle connection, so after a certian period, it drops the connection out
of its table, and of course, another packet that comes in later will get a
connection reset, because it has forgotten. It can also be that you
overfill your connection table, and least used entries are removed (this
should be a very large number though, so unless you have LOTS going
through your firewall, this is not a big problem).So, I would run the following:
tcpdump -n -i $client_ether host $client_host and \( port ssh or icmp\)
just to see where and when a connection is actually getting broken, and
which host it is that's doing it, and wether it's a connection reset, or
an ICMP, or what...Quoted 4 lines · Real Cucumber
Date: Tue, 13 Jul 2004 15:25:09 -0700 (PDT)
From: Real Cucumber <[email protected]>
To: [email protected]
Subject: Re: SSH Connections Lost After 1 minuteidle
Quoted 2 lines
Basically I've created a port forwarding firewall
with
Quoted 2 lines
two network interfaces, that's sole purpose is to forward incoming SSH packets on one interface
(WAN)
Quoted 4 lines
through the other interface (LAN) to a local SSH server.
I've done this using IPtables and the mangle
table.
Quoted 2 lines
It works great, except for the fact that
connections
Quoted 4 lines
are dropped if left idle for 1 minute.
I have tried allowing all ICMP for INPUT,OUTPUT,FORWARD as well as creating static
ARP
Quoted 6 lines
entries on the firewall, and nothing has helped.
If anyone knows what else may cause 1 minute idle connection timeouts , please let me know.
This connection timeout issue does not occur for
LAN
Quoted 1 line
clients connecting to the SSH server. They can
remain
Quoted 6 lines
idle for an indefinate period of time.
--- "Dick St.Peters" <[email protected]>
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 1 line · Antony Stone
On Tuesday 13 July 2004 9:57 pm, Real Cucumber
Quoted 2 lines · wrote:
Quoted 2 lines
Why should ICMP not be completely blocked?
The
Quoted 5 lines
Quoted 5 lines
machine
Quoted 1 line
Quoted 1 line
is used strictly as a port forwarding
firewall/router.
Quoted 2 lines
Because blocking all ICMP will break
networking.
Quoted 2 lines
Quoted 2 lines
Look up the RFCs explaining
Quoted 1 line
what ICMP is for if you do not understand
this.
Quoted 2 lines
Quoted 2 lines
I would like to second this vigorously, although
I
Quoted 2 lines
Quoted 2 lines
would phrase it
differently: blocking ICMP makes networksfragile.
Quoted 12 lines
Quoted 8 lines
Fragile networks
break easily when anything out of the ordinary
happens.--
Dick St.Peters, [email protected]
Quoted 7 lines
Quoted 3 lines
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than otherproviders!
Quoted 2 lines
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail