FreeBSD Bugzilla – Attachment 62812 Details for
Bug 93815
[patch] Adds in the ability to save ipfw rules to rc.d/ipfw and rc.d/ip6fw.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
rc.d_ip6fw.patch
rc.d_ip6fw.patch (text/plain), 748 bytes, created by
kitsune
on 2006-02-25 04:20:03 UTC
(
hide
)
Description:
rc.d_ip6fw.patch
Filename:
MIME Type:
Creator:
kitsune
Created:
2006-02-25 04:20:03 UTC
Size:
748 bytes
patch
obsolete
>17a18,27 >> extra_commands="save" >> save_cmd="ipfw_save" >> >> # Gets the name of the save to use. >> if [ ! -z $2 ]; then >> savename="$2" >> usingsave="yes" >> else >> savename="last" >> fi >31a42,48 >> ipfw_save() >> { >> # Saves the firewall rules to /var/db/ipfw/$savename >> [ ! -d /var/db/ipfw ] && mkdir /var/db/ipfw && chmod go-rwx /var/db/ipfw >> ipfw list | awk '{print "${fwcmd} add " $0 }' > /var/db/ipfw/$savename.6 >> } >> >33a51,58 >> # Make sure the save file exists if one is specified. >> if [ ! -z $usingsave ]; then >> if [ ! -f "/var/db/ipfw/$savename.6" ]; then >> echo "Specified save does not exist" >> exit 1 >> fi >> fi >> >42c67 >< . "${ipv6_firewall_script}" >--- >> . "${ipv6_firewall_script}" $savename
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 93815
:
62811
| 62812 |
62813
|
62814
|
62815
|
62816
|
62817