From owner-freebsd-questions@FreeBSD.ORG Thu May 22 04:06:50 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 6A69637B401 for ; Thu, 22 May 2003 04:06:50 -0700 (PDT) Received: from tina.la3sg.net (la3sg.net [217.13.29.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42E0E43FAF for ; Thu, 22 May 2003 04:06:49 -0700 (PDT) (envelope-from tina@tina.la3sg.net) Received: from tina.la3sg.net (tina@localhost.la3sg.net [127.0.0.1]) by tina.la3sg.net (8.12.8p1/8.12.8) with ESMTP id h4MB6m4I009119; Thu, 22 May 2003 13:06:48 +0200 (CEST) (envelope-from tina@tina.la3sg.net) Received: (from tina@localhost) by tina.la3sg.net (8.12.8p1/8.12.8/Submit) id h4MB6mfT009118; Thu, 22 May 2003 13:06:48 +0200 (CEST) Date: Thu, 22 May 2003 13:06:48 +0200 From: Kjell Midtseter To: Carolyn Longfoot Message-ID: <20030522110648.GB543@tina.la3sg.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Update Firewall Rules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kmidtset@c2i.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2003 11:06:50 -0000 On Thursday, 22 May 2003 at 4:16:18 -0400, Carolyn Longfoot wrote: > How do I switch the firewall rules on a system without rebooting? > I tried executing /etc/rc.firewall OPEN > for example but the same rule set is put in place again that is defined in > /etc/rc.conf. > > I'm sure there's a simple answer, thanks in advance! > # To load new rules: # ipf -Fa -f /etc/ipf.rules # ipnat -CF -f /etc/ipnat.rules # You can use ipfstat to display firewall statistics a la ``top" command: # ipfstat -t # to display the current list of active MAP/Redirect filters and active sessions: # ipnat -l # to find out the `hit' statistic for each individual rule in /etc/ipf.rules: # ipfstat -hio # to show current rules: # ipfstat -i -o regards from Kjell