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
[-- Attachment #1 --]
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.
[-- Attachment #2 --]
17a18,19
> extra_commands="save"
> save_cmd="ipfw_save"
29a32,36
> }
>
> ipfw_save()
> {
> ipfw list | awk '{print "${fwcmd} add " $0 }' > /etc/rc.firewall6.save
[-- Attachment #3 --]
18a19,21
> extra_commands="save"
> save_cmd="ipfw_save"
>
29a33,37
> }
>
> ipfw_save()
> {
> ipfw list | awk '{print "${fwcmd} add " $0 }' > /etc/rc.firewall.save
[-- Attachment #4 --]
145a146,150
>
> [Ll][Aa][Ss][Tt])
> setup_loopback
> . /etc/rc.firewall.save
> ;;
[-- Attachment #5 --]
107a108,112
> [Ll][Aa][Ss][Tt])
> setup_local
> . /etc/rc.firewall6.save
> ;;
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060218170647.497340e7>
