From owner-freebsd-current@FreeBSD.ORG Sat Feb 18 22:57:28 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A619E16A420 for ; Sat, 18 Feb 2006 22:57:28 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from mail07.powweb.com (mail07.powweb.com [66.152.97.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 575CA43D48 for ; Sat, 18 Feb 2006 22:57:28 +0000 (GMT) (envelope-from v.velox@vvelox.net) Received: from vixen42.vulpes (24-119-205-114.cpe.cableone.net [24.119.205.114]) by mail07.powweb.com (Postfix) with ESMTP id 68F4E14DDEA for ; Sat, 18 Feb 2006 14:57:28 -0800 (PST) Date: Sat, 18 Feb 2006 17:06:47 -0600 From: Vulpes Velox To: freebsd-current@freebsd.org Message-ID: <20060218170647.497340e7@vixen42.vulpes> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.12; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_IjxdJnVBU/W6q+JgSrgMxtu" Subject: Changes to IPFW start up scripts. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2006 22:57:28 -0000 --MP_IjxdJnVBU/W6q+JgSrgMxtu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline This adds in the ability to run /etc/rc.d/ipfw save or /etc/rc.d/ip6fw save. This saves it to /etc/rc.firewall.save or /etc/rc.firewall6.save. By setting the firewall type to LAST it the last save will be used. --MP_IjxdJnVBU/W6q+JgSrgMxtu Content-Type: text/x-patch; name=rc.d_ip6fw.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.d_ip6fw.patch 17a18,19 > extra_commands="save" > save_cmd="ipfw_save" 29a32,36 > } > > ipfw_save() > { > ipfw list | awk '{print "${fwcmd} add " $0 }' > /etc/rc.firewall6.save --MP_IjxdJnVBU/W6q+JgSrgMxtu Content-Type: text/x-patch; name=rc.d_ipfw.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.d_ipfw.patch 18a19,21 > extra_commands="save" > save_cmd="ipfw_save" > 29a33,37 > } > > ipfw_save() > { > ipfw list | awk '{print "${fwcmd} add " $0 }' > /etc/rc.firewall.save --MP_IjxdJnVBU/W6q+JgSrgMxtu Content-Type: text/x-patch; name=rc.firewall.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.firewall.patch 145a146,150 > > [Ll][Aa][Ss][Tt]) > setup_loopback > . /etc/rc.firewall.save > ;; --MP_IjxdJnVBU/W6q+JgSrgMxtu Content-Type: text/x-patch; name=rc.firewall6.patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=rc.firewall6.patch 107a108,112 > [Ll][Aa][Ss][Tt]) > setup_local > . /etc/rc.firewall6.save > ;; > --MP_IjxdJnVBU/W6q+JgSrgMxtu--