From owner-freebsd-questions@FreeBSD.ORG Sat Apr 26 08:26:49 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A4D037B401 for ; Sat, 26 Apr 2003 08:26:49 -0700 (PDT) Received: from blueyonder.co.uk (pcow053o.blueyonder.co.uk [195.188.53.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0455F43F93 for ; Sat, 26 Apr 2003 08:26:48 -0700 (PDT) (envelope-from jfm@blueyonder.co.uk) Received: from lexx ([62.31.198.203]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Sat, 26 Apr 2003 16:29:26 +0100 From: John Murphy To: Antoine Jacoutot Date: Sat, 26 Apr 2003 16:26:45 +0100 Message-ID: References: <200304261621.44416.ajacoutot@lphp.org> In-Reply-To: <200304261621.44416.ajacoutot@lphp.org> X-Mailer: Forte Agent 1.9/32.560 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable cc: questions@FreeBSD.ORG Subject: Re: ipfw dynamic rule timeout X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jfm@blueyonder.co.uk List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Apr 2003 15:26:49 -0000 Antoine Jacoutot wrote: >Hi ! > >I'm having a problem with ipfw and dynamic rules timeout. >For exemple, when I ssh to a distant machine, if I don't type anything = for=20 >like 30 seconds, the connexion is dropped. >I read this in ipfw man page: > >"Dynamic rules expire after some time, which depends on the status of = the >flow and the setting of some sysctl variables. See Section SYSCTL >VARIABLES for more details. For TCP sessions, dynamic rules can be >instructed to periodically send keepalive packets to refresh the state = of >the rule when it is about to expire." > >So I tried to following command and got this error: ># sysctl net.inet.ip.fw.dyn_keepalive=3D1 >sysctl: unknown oid 'net.inet.ip.fw.dyn_keepalive' > >Anyone has an idea how to increase the default timeout value. Probably not much help to you, but you could try: sysctl -a | grep keepalive to see what is available. The only one I see on 4.8 is: net.inet.tcp.always_keepalive: 1 I'm not actually using ipfw though. John.