Linux Netfilter discussions
 help / color / mirror / Atom feed
From: George Alexandru Dragoi <waruiinu@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: SSH Connections Lost After 1 minute idle
Date: Wed, 14 Jul 2004 06:48:04 +0300	[thread overview]
Message-ID: <3063e504071320487c04cd2b@mail.gmail.com> (raw)
In-Reply-To: <D5C9032B2B09C64EA2409D6214E91AC90511B9@asimail2.alphanumeric.com>

I had somehow a similar problem, but it didn't involved any tunnel,
the problem were some ESTABLISHED connections which remained hanged in
ip_conntrack for a long time (5 days is the default).
So I tryed to decrease the default.
I have these for sysctl:
net/ipv4/tcp_keepalive_time=300
this means the state of connection is rechecked after 300 seconds,
this usually means that the TTL from ip_conntrack will go to maximum
again (that 5 days thingy)
I also changed this:
net/ipv4/netfilter/ip_conntrack_tcp_timeout_established=400
this is what before was 5 days
You may want to check if somewhere between you and the other side has
some bad configurations, maybe changing tcp_keep_alive_time to
something much lower than 60, would help out (the kernel sends some
sort of packets for checking) but try to tune these on both sides, a
statefull firewall somewhere may forget the connections after 60
seconds, maybe an low ip_conntrack_tcp_timeout_established
I hope this may help you

> -----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
> 
>


  reply	other threads:[~2004-07-14  3:48 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-13 23:29 SSH Connections Lost After 1 minute idle Jason Opperisano
2004-07-14  3:48 ` George Alexandru Dragoi [this message]
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
  -- 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 16:51 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3063e504071320487c04cd2b@mail.gmail.com \
    --to=waruiinu@gmail.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox