FreeBSD Bugzilla – Attachment 62814 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]
ip6fw.diff
ip6fw.diff (text/x-patch), 1.32 KB, created by
kitsune
on 2006-03-12 06:47:33 UTC
(
hide
)
Description:
ip6fw.diff
Filename:
MIME Type:
Creator:
kitsune
Created:
2006-03-12 06:47:33 UTC
Size:
1.32 KB
patch
obsolete
>18,29d17 >< extra_commands="save load unload" >< save_cmd="ipfw_save" >< load_cmd="ipfw_load" >< unload_cmd="ipfw_unload" >< >< # Gets the name of the save to use. >< if [ ! -z "$2" ]; then >< savename="$2" >< usingsave="yes" >< else >< savename="last" >< fi >44,82d31 >< 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 "${fw6cmd2} " $0 }' > /var/db/ipfw/$savename.6 >< } >< >< ipfw_load() >< { >< >< # Set quiet mode if requested >< case ${firewall_quiet} in >< [Yy][Ee][Ss]) >< fwcmd2="/sbin/ipfw -q add" >< ;; >< *) >< fwcmd2="/sbin/ipfw add" >< ;; >< esac >< >< . /var/db/ipfw/$savename.6 >< } >< >< ipfw_unload() >< { >< >< # Set quiet mode if requested >< case ${firewall_quiet} in >< [Yy][Ee][Ss]) >< fwcmd2="/sbin/ipfw -q delete" >< ;; >< *) >< fwcmd2="/sbin/ipfw delete" >< ;; >< esac >< >< . /var/db/ipfw/$savename.6 >< } >< >85,92d33 >< # 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 >< >101c42 >< . "${ipv6_firewall_script}" $savename >--- >> . "${ipv6_firewall_script}"
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