From owner-freebsd-questions Wed Jun 16 17:56: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 3664E15031 for ; Wed, 16 Jun 1999 17:55:42 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id UAA18670; Wed, 16 Jun 1999 20:55:07 -0400 (EDT) Date: Wed, 16 Jun 1999 19:55:05 -0500 (EST) From: Alfred Perlstein To: Brian Gallucci Cc: FreeBSD Subject: Re: Firewall Rules In-Reply-To: <003901beb856$5f189f60$51f51c0a@expnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 16 Jun 1999, Brian Gallucci wrote: > Can someone tell me how do dump firewall rules and then reload them while > you are loged into the box via telnet. > > At the console I'm using > ipfw -f flush > > And to reload the firewall I use > sh /etc/rc.firewall > > I need to update the firewall when I'm off site and the only way I can seem > to update is to reboot. < Which is not a good thing > > > I'm running IPFW and the box is NATD running on FreeBSD 2.2.8 um... combine them on one line: ipfw -f flush ; sh /etc/rc.firewall it should flush the firewall and then reload it, you'll momentarily loose responsiveness, then you should get a prompt, give it 10-20 seconds for the next prompt to appear. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message