From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sheldon Hearn Subject: Re: SSH Connections Lost After 1 minute idle Date: Wed, 14 Jul 2004 13:42:20 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1089805340.19080.21.camel@axl.seasidesoftware.co.za> References: <20040713165106.65338.qmail@web40710.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20040713165106.65338.qmail@web40710.mail.yahoo.com> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Real Cucumber Cc: netfilter@lists.netfilter.org On Tue, 2004-07-13 at 18:51, Real Cucumber wrote: > 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 you're going to use SSH through a stateful firewall, you should disable out-of-band keep-alives and enable in-connection keep-alives. I use this in sshd_config: # In older versions of OpenSSH, it's KeepAlive, not TCPKeepAlive TCPKeepAlive no ClientAliveInterval 30 ClientAliveCountMax 120 See the sshd_config(5) manual page for implications. Ciao, Sheldon.