From owner-freebsd-ipfw@FreeBSD.ORG Tue Apr 29 07:34:40 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBC9537B40A for ; Tue, 29 Apr 2003 07:34:39 -0700 (PDT) Received: from mx1.lphp.org (APastourelles-107-1-5-52.abo.wanadoo.fr [193.252.221.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA34943F75 for ; Tue, 29 Apr 2003 07:34:35 -0700 (PDT) (envelope-from ajacoutot@lphp.org) Received: from sta01 (sta01.lphp.org.local [192.168.0.4]) by mx1.lphp.org (8.12.8p1/8.12.8) with ESMTP id h3TEYQRs002388; Tue, 29 Apr 2003 16:34:26 +0200 (CEST) (envelope-from ajacoutot@lphp.org) From: Antoine Jacoutot To: Michael Sierchio Date: Tue, 29 Apr 2003 16:34:28 +0200 User-Agent: KMail/1.5.1 References: <200304271259.02025.ajacoutot@lphp.org> <200304291616.52730.ajacoutot@lphp.org> <3EAE8C13.8080009@tenebras.com> In-Reply-To: <3EAE8C13.8080009@tenebras.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304291634.28223.ajacoutot@lphp.org> cc: freebsd-ipfw@freebsd.org cc: Bruno Afonso Subject: Re: ipfw dynamic rule timeout X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 14:34:40 -0000 On Tuesday 29 April 2003 16:28, Michael Sierchio wrote: > Antoine Jacoutot wrote: > > net.inet.tcp.keepidle: 7200000 > > That's a very long time, longer that the five minutes > you keep rules alive for. OK, so should I low it ? I'm sorry to seem so newbie about it, but I never had this problem on other platforms so I'm cautious. The thing I don't understand is this: IPFW2 ENHANCEMENTS [...] keepalives ipfw1 does not generate keepalives for stateful sessions. As a consequence, it might cause idle sessions to drop because the lifetime of the dynamic rules expires. [...] net.inet.ip.fw.dyn_keepalive: 1 Enables generation of keepalive packets for keep-state rules on TCP sessions. A keepalive is generated to both sides of the con- nection every 5 seconds for the last 20 seconds of the lifetime of the rule. So, since I have this sysctl set to 1, why is my connexion reset ? Doesn't it keeps generating keepalives or what ? Basically, I would like keepalives generated forever, until I (or a client) close the connexion to a server. Antoine