From owner-freebsd-stable Sat Dec 8 14:37:38 2001 Delivered-To: freebsd-stable@freebsd.org Received: from leviathan.inethouston.net (leviathan.inethouston.net [66.64.12.249]) by hub.freebsd.org (Postfix) with ESMTP id 4705C37B417 for ; Sat, 8 Dec 2001 14:37:32 -0800 (PST) Received: by leviathan.inethouston.net (Postfix, from userid 1001) id 4B84A407622; Sat, 8 Dec 2001 16:37:31 -0600 (CST) Date: Sat, 8 Dec 2001 16:37:31 -0600 From: "David W. Chapman Jr." To: Harald Schmalzbauer Cc: freebsd-stable@freebsd.org Subject: Re: ipfw, keep-state and ssh Message-ID: <20011208223731.GA28158@leviathan.inethouston.net> Reply-To: "David W. Chapman Jr." Mail-Followup-To: Harald Schmalzbauer , freebsd-stable@freebsd.org References: <1007816782.618.0.camel@adm01.belenus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1007816782.618.0.camel@adm01.belenus.com> User-Agent: Mutt/1.3.24i X-Operating-System: FreeBSD 4.4-STABLE i386 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Dec 08, 2001 at 12:06:22PM -0100, Harald Schmalzbauer wrote: > Hello, > > today I set up a packet filter with ipfw. The last time I have used it > was long before 4.0 so keep-state is new to me (for IPFW, I know it in > IPFilter). > > I reworte my complete ruleset, but it should be identical to the > IPfilter set before. > > Unfortunately my ssh connection gets dropped regularly. Sometimes even > while typing!! I have enabled fragmneted packets, so until now the > disconnect while typing has gone but with the default dyna_ack lifetime > of 300 the connection closes reliably. > > How can I tell sshd to send Keepalive in shorter intervals? > > I only saw that the non-default ClientAlive can be adjusted. Is it > reasonable to use that instead? Or should I set another rule for tcp-ack > pass? But then keep-state is useless for TCP. The problem is ipfw's states aren't really states, they are timers. SSH sends a keep-alive around every 10 mins, way past the default settings for the timer in ipfw. -- David W. Chapman Jr. dwcjr@inethouston.net Raintree Network Services, Inc. dwcjr@freebsd.org FreeBSD Committer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message