[PC-BSD Commits] r9779 - pcbsd/current/system-overlay/usr/local/share/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Thu Mar 24 18:16:08 PDT 2011


Author: kris
Date: 2011-03-24 18:16:08 -0700 (Thu, 24 Mar 2011)
New Revision: 9779

Modified:
   pcbsd/current/system-overlay/usr/local/share/pcbsd/scripts/reset-firewall
Log:

Enable multicast for for avahi through default pf.conf



Modified: pcbsd/current/system-overlay/usr/local/share/pcbsd/scripts/reset-firewall
===================================================================
--- pcbsd/current/system-overlay/usr/local/share/pcbsd/scripts/reset-firewall	2011-03-24 19:03:05 UTC (rev 9778)
+++ pcbsd/current/system-overlay/usr/local/share/pcbsd/scripts/reset-firewall	2011-03-25 01:16:08 UTC (rev 9779)
@@ -42,6 +42,7 @@
 for inf in ${DEVLIST} ; do
   if `echo $inf | egrep -v 'lo|plip|gif|tun|pfsync' 1>/dev/null` ; then
 
+  # Setup the default UDP entries
   echo "pass in on $inf proto udp from any to ($inf) port 137 keep state" >> $pf_rules
   echo "pass in on $inf proto udp from any to ($inf) port 138 keep state" >> $pf_rules
   echo "pass in on $inf proto udp from any to ($inf) port 111 keep state" >> $pf_rules
@@ -49,7 +50,9 @@
   echo "pass in on $inf proto udp from any to ($inf) port 2049 keep state" >> $pf_rules
   echo "pass in on $inf proto udp from any to ($inf) port 4045 keep state" >> $pf_rules
   echo "pass in on $inf proto udp from any to ($inf) port 5353 keep state" >> $pf_rules
+  echo "pass in on $inf proto udp from any to 224.0.0.251/32 port 5353 keep state" >> $pf_rules
 
+
   # Setup the default TCP entries
   echo "pass in on $inf proto tcp from any to ($inf) port 445 keep state" >> $pf_rules
   echo "pass in on $inf proto tcp from any to ($inf) port 137 keep state" >> $pf_rules
@@ -59,6 +62,7 @@
   echo "pass in on $inf proto tcp from any to ($inf) port 4045 keep state" >> $pf_rules
   echo "pass in on $inf proto tcp from any to ($inf) port 5353 keep state" >> $pf_rules
 
+
     # Check if there are any extra ports to open and do so
     if [ ! -z "$@" ]
     then



More information about the Commits mailing list