All of lore.kernel.org
 help / color / mirror / Atom feed
* SSH Connections Lost After 1 minute idle
@ 2004-07-13 16:51 Real Cucumber
  2004-07-13 18:01 ` Antony Stone
  2004-07-14 11:42 ` Sheldon Hearn
  0 siblings, 2 replies; 18+ messages in thread
From: Real Cucumber @ 2004-07-13 16:51 UTC (permalink / raw)
  To: netfilter

I have a fedora firewall/router using iptables to
forward incoming SSH packets to an internal server and
it works great....however, only if the user does not
remain idle for 1 minute.  If they idle for 1 minute,
the connection "freezes" in the sense that it drops
the connection but its not a proper "connectoin
closed" from the server as if it is a timelimit, but
rather just a connectoin loss like you've unplugged
your cable in the middle of a connection.

If the user is connecting from within the network,
they can remain idle for an unlimited amount of time
without being disconnected.  It is only ones
connecting from outside hte network going through the
iptables firewall that have this idle problem.

I am only allowing TCP and UDP for SSH to be
forwarded.

Do I need any ICMP or any other special connection
timeout rules on the iptables side to fix this
problem?

Any help appreciated!




	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: SSH Connections Lost After 1 minute idle
@ 2004-07-13 22:28 Hudson Delbert J Contr 61 CS/SCBN
  2004-07-13 22:58 ` Antony Stone
  0 siblings, 1 reply; 18+ messages in thread
From: Hudson Delbert J Contr 61 CS/SCBN @ 2004-07-13 22:28 UTC (permalink / raw)
  To: 'Dick St.Peters', netfilter

dick,

i beg to differ.

i must concur strongly with antony.

if you cripple icmp, your networks will break...


-----Original Message-----
From: netfilter-admin@lists.netfilter.org
[mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Dick St.Peters
Sent: Tuesday, July 13, 2004 2:55 PM
To: netfilter@lists.netfilter.org
Subject: Re: SSH Connections Lost After 1 minute idle


Antony Stone writes:
> On Tuesday 13 July 2004 9:57 pm, Real Cucumber wrote:
> 
> > Why should ICMP not be completely blocked? The machine
> > is used strictly as a port forwarding firewall/router.
> 
> Because blocking all ICMP will break networking.   Look up the RFCs
explaining 
> what ICMP is for if you do not understand this.

I would like to second this vigorously, although I would phrase it
differently: blocking ICMP makes networks fragile.  Fragile networks
break easily when anything out of the ordinary happens.

--
Dick St.Peters, stpeters@NetHeaven.com 


^ permalink raw reply	[flat|nested] 18+ messages in thread
* RE: SSH Connections Lost After 1 minute idle
@ 2004-07-13 23:29 Jason Opperisano
  2004-07-14  3:48 ` George Alexandru Dragoi
  2004-07-14 13:31 ` P
  0 siblings, 2 replies; 18+ messages in thread
From: Jason Opperisano @ 2004-07-13 23:29 UTC (permalink / raw)
  To: 'Real Cucumber', netfilter

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dunno if this is relevant--but I had similar symptoms SSH-ing to an OpenBSD
SSH server through IPTables on RH running through an OpenVPN tunnel
(RH/IPTables was the OVPN server)...  I didn't really spend the proper time
troubleshooting what was actually causing it--so this may not apply to your
situation at all... (enough disclaimers yet?)

What fixed it for me was setting the following in sshd_config of the SSH
server:

  ClientAliveInterval 10
  ClientAliveCountMax 6

Again--no idea if this is of any value to anyone...

- -j


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFA9HBFqca8HlBdgZoRArZeAJ9rkciHNTmhDythmAkF9efUf2GC/ACeKys6
z3b6eXHHIcuFfkVQ50XI7ng=
=+8ya
-----END PGP SIGNATURE-----

-----Original Message-----
From: Real Cucumber [mailto:monkcucumber@yahoo.com] 
Sent: Tuesday, July 13, 2004 12:51 PM
To: netfilter@lists.netfilter.org
Subject: SSH Connections Lost After 1 minute idle


I have a fedora firewall/router using iptables to
forward incoming SSH packets to an internal server and
it works great....however, only if the user does not
remain idle for 1 minute.  If they idle for 1 minute,
the connection "freezes" in the sense that it drops
the connection but its not a proper "connectoin
closed" from the server as if it is a timelimit, but
rather just a connectoin loss like you've unplugged
your cable in the middle of a connection.

If the user is connecting from within the network,
they can remain idle for an unlimited amount of time
without being disconnected.  It is only ones
connecting from outside hte network going through the
iptables firewall that have this idle problem.

I am only allowing TCP and UDP for SSH to be
forwarded.

Do I need any ICMP or any other special connection
timeout rules on the iptables side to fix this
problem?

Any help appreciated!




	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 


^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <Pine.GSU.4.58.0407131830460.14186@adore.lightlink.com>]

end of thread, other threads:[~2004-07-14 13:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-13 16:51 SSH Connections Lost After 1 minute idle Real Cucumber
2004-07-13 18:01 ` Antony Stone
2004-07-13 20:57   ` Real Cucumber
2004-07-13 21:18     ` Antony Stone
2004-07-13 21:55       ` Dick St.Peters
2004-07-13 22:06         ` Antony Stone
2004-07-13 22:25         ` Real Cucumber
2004-07-13 22:35           ` Antony Stone
2004-07-13 22:48             ` Real Cucumber
2004-07-13 23:11               ` Antony Stone
2004-07-14 11:42 ` Sheldon Hearn
  -- strict thread matches above, loose matches on Subject: below --
2004-07-13 22:28 Hudson Delbert J Contr 61 CS/SCBN
2004-07-13 22:58 ` Antony Stone
2004-07-13 23:29 Jason Opperisano
2004-07-14  3:48 ` George Alexandru Dragoi
2004-07-14 13:31 ` P
     [not found] <Pine.GSU.4.58.0407131830460.14186@adore.lightlink.com>
2004-07-13 23:32 ` Real Cucumber
2004-07-13 23:49   ` Antony Stone

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.