FreeBSD Bugzilla – Attachment 167503 Details for
Bug 207553
A New variable of `firewall_nat_rules' in /etc/rc.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patchs for `firewall_nat_rules' of /etc/rc.firewall and /etc/defaults/rc.conf
firewall_nat_rules.diff (text/plain), 1.14 KB, created by
Kazuhiko Kiriyama
on 2016-02-28 08:04:47 UTC
(
hide
)
Description:
Patchs for `firewall_nat_rules' of /etc/rc.firewall and /etc/defaults/rc.conf
Filename:
MIME Type:
Creator:
Kazuhiko Kiriyama
Created:
2016-02-28 08:04:47 UTC
Size:
1.14 KB
patch
obsolete
>--- /etc/rc.firewall.org 2016-02-27 10:33:06.845684000 +0900 >+++ /etc/rc.firewall 2016-02-28 16:02:08.404038000 +0900 >@@ -162,6 +162,9 @@ > case ${firewall_nat_enable} in > [Yy][Ee][Ss]) > if [ -n "${firewall_nat_interface}" ]; then >+ if [ -n "${firewall_nat_rules}" -a -r ${firewall_nat_rules} ]; then >+ firewall_nat_flags="${firewall_nat_flags} `cat ${firewall_nat_rules}`" >+ fi > if echo "${firewall_nat_interface}" | \ > grep -q -E '^[0-9]+(\.[0-9]+){0,3}$'; then > firewall_nat_flags="ip ${firewall_nat_interface} ${firewall_nat_flags}" >--- /etc/defaults/rc.conf.org 2016-02-28 15:49:17.768004000 +0900 >+++ /etc/defaults/rc.conf 2016-02-28 15:55:56.134648000 +0900 >@@ -161,6 +161,7 @@ > firewall_nat_enable="NO" # Enable kernel NAT (if firewall_enable == YES) > firewall_nat_interface="" # Public interface or IPaddress to use > firewall_nat_flags="" # Additional configuration parameters >+firewall_nat_rules="" # A rule file described by ipfw(8) nat redirection. > dummynet_enable="NO" # Load the dummynet(4) module > ip_portrange_first="NO" # Set first dynamically allocated port > ip_portrange_last="NO" # Set last dynamically allocated port
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 207553
: 167503