Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Feb 2006 17:06:47 -0600
From:      Vulpes Velox <v.velox@vvelox.net>
To:        freebsd-current@freebsd.org
Subject:   Changes to IPFW start up scripts.
Message-ID:  <20060218170647.497340e7@vixen42.vulpes>

next in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060218170647.497340e7>