FreeBSD Bugzilla – Attachment 148177 Details for
Bug 194292
Patch for adding firewall_myservices_tcp and firewall_myservices_udp support to rc.conf
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for adding firewall_myservices_udp to rc.conf
firewall_myservices_tcp-udp.diff (text/plain), 1.90 KB, created by
olivier
on 2014-10-10 20:27:23 UTC
(
hide
)
Description:
patch for adding firewall_myservices_udp to rc.conf
Filename:
MIME Type:
Creator:
olivier
Created:
2014-10-10 20:27:23 UTC
Size:
1.90 KB
patch
obsolete
>Index: etc/defaults/rc.conf >=================================================================== >--- etc/defaults/rc.conf (revision 272911) >+++ etc/defaults/rc.conf (working copy) >@@ -144,8 +144,12 @@ > # firewall. > #firewall_simple_onet_ipv6="2001:db8:2:0::/56" # Outside IPv6 network prefix > # for "simple" firewall. >-firewall_myservices="" # List of TCP ports on which this host >+firewall_myservices_tcp="" # List of TCP ports on which this host > # offers services for "workstation" firewall. >+firewall_myservices="" # Alias for myservices_tcp (deprecated) >+ # offers services for "workstation" firewall. >+ffirewall_myservices_udp="" # List of UDP ports on which this host >+ # offers services for "workstation" firewall. > firewall_allowservices="" # List of IPs which have access to > # $firewall_myservices for "workstation" > # firewall. >Index: etc/rc.firewall >=================================================================== >--- etc/rc.firewall (revision 272911) >+++ etc/rc.firewall (working copy) >@@ -422,8 +422,12 @@ > > [Ww][Oo][Rr][Kk][Ss][Tt][Aa][Tt][Ii][Oo][Nn]) > # Configuration: >- # firewall_myservices: List of TCP ports on which this host >+ # firewall_myservices_tcp: List of TCP ports on which this host > # offers services. >+ # firewall_myservices: Alias for firewall_myservices_tcp >+ # offers services. >+ # firewall_myservices_udp: List of UDP ports on which this host >+ # offers services. > # firewall_allowservices: List of IPv4 and/or IPv6 addresses > # that have access to > # $firewall_myservices. >@@ -489,6 +493,12 @@ > for j in ${firewall_myservices} ; do > ${fwcmd} add pass tcp from $i to me $j > done >+ for j in ${firewall_myservices_tcp} ; do >+ ${fwcmd} add pass tcp from $i to me $j >+ done >+ for j in ${firewall_myservices_udp} ; do >+ ${fwcmd} add pass udp from $i to me $j >+ done > done > > # Allow all connections from trusted IPs.
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 194292
:
148177
|
148185
|
148266
|
148267
|
148278