FreeBSD Bugzilla – Attachment 107361 Details for
Bug 148144
[patch] add ipfw_nat support for rc.firewall simple type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 759 bytes, created by
David Naylor
on 2010-06-25 17:20:03 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
David Naylor
Created:
2010-06-25 17:20:03 UTC
Size:
759 bytes
patch
obsolete
>--- rc.firewall~ 2010-06-25 18:10:42.000000000 +0200 >+++ rc.firewall 2010-06-25 18:11:16.000000000 +0200 >@@ -318,6 +318,21 @@ > fi > ;; > esac >+ case ${firewall_nat_enable} in >+ [Yy][Ee][Ss]) >+ if [ -n "${firewall_nat_interface}" ]; then >+ 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}" >+ else >+ firewall_nat_flags="if ${firewall_nat_interface} ${firewall_nat_flags}" >+ fi >+ ${fwcmd} nat 123 config log ${firewall_nat_flags} >+ ${fwcmd} add nat 123 ip4 from any to any via ${firewall_nat_interface} >+ fi >+ ;; >+ esac >+ > > # Stop RFC1918 nets on the outside interface > ${fwcmd} add deny all from 10.0.0.0/8 to any via ${oif}
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 148144
: 107361 |
107362