From owner-freebsd-questions Mon Feb 17 3:15:15 2003 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 8673037B401 for ; Mon, 17 Feb 2003 03:15:14 -0800 (PST) Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by mx1.FreeBSD.org (Postfix) with SMTP id C4C7143F3F for ; Mon, 17 Feb 2003 03:15:13 -0800 (PST) (envelope-from dpelleg@gs166.sp.cs.cmu.edu) To: Jason Morgan Cc: freebsd-questions@freebsd.org Subject: Re: ipfw2 dynamic rules not dying References: <20030215161916.GA80761@sentinelchicken.net> From: Dan Pelleg Date: 17 Feb 2003 06:14:25 -0500 In-Reply-To: <20030215161916.GA80761@sentinelchicken.net> Message-ID: Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jason Morgan writes: > I have a problem with my dynamic IPFW2 rules - they aren't dying. The > system has been up now for 14 days, with it acting as firewall to two > systems inside. One of the systems inside is also running IPFW2, but is > in an open state. Here is the ruleset I am running, I have made no > changes to the kernel variables regulating packet time-out - oh, and I'm > running 4.7. > [ruleset] > > Currently, I have more than 180 dynamic rules active, most are attached > to rule 00610. 180 rules seems to be excessive, and they don't seem to > be timing out. Is my ruleset screwed up? > > Thanks > Jason > IPFW2 will attempt to test if a connection is still open, and if it is will keep the matching rule intact. Search for "keepalive" on the ipfw manpage. -- Dan Pelleg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message