[PC-BSD Commits] r6270 - pcbsd/trunk/system-overlay/usr/PCBSD/Scripts

svn at pcbsd.org svn at pcbsd.org
Wed Feb 17 07:23:46 PST 2010


Author: kris
Date: 2010-02-17 07:23:46 -0800 (Wed, 17 Feb 2010)
New Revision: 6270

Modified:
   pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/reset-firewall
Log:

Updated the reset-firewall script to also setup pass options for lagg0



Modified: pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/reset-firewall
===================================================================
--- pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/reset-firewall	2010-02-17 15:09:12 UTC (rev 6269)
+++ pcbsd/trunk/system-overlay/usr/PCBSD/Scripts/reset-firewall	2010-02-17 15:23:46 UTC (rev 6270)
@@ -32,7 +32,14 @@
 # Deny all from our blacklist
 echo "block from <blacklist> to any" >> $pf_rules
 
-for inf in `ifconfig -l` ; do
+DEVLIST=`ifconfig -l`
+
+echo ${DEVLIST} | grep "lagg0" >/dev/null 2>/dev/null
+if [ "$?" != "0" ] ; then
+  DEVLIST="${DEVLIST} lagg0"
+fi
+
+for inf in ${DEVLIST} ; do
   if `echo $inf | egrep -v 'lo|plip|gif|tun|pfsync' 1>/dev/null` ; then
 
   echo "pass in on $inf proto udp from any to ($inf) port 137 keep state" >> $pf_rules



More information about the Commits mailing list