Changeset 180562a


Ignore:
Timestamp:
09/02/14 10:34:42 (3 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.1
Children:
a2f9fe7
Parents:
a32a9502
Message:

Don't incorrectly add lagg0 to firewall rules

Also, don't add raw wireless drivers, use wlan instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/xtrafiles/local/share/pcbsd/scripts/reset-firewall

    r1620346 r180562a  
    5151DEVLIST=`ifconfig -l` 
    5252 
    53 echo ${DEVLIST} | grep "lagg0" >/dev/null 2>/dev/null 
    54 if [ "$?" != "0" ] ; then 
    55   DEVLIST="${DEVLIST} lagg0" 
    56 fi 
     53echo ${DEVLIST} | grep -q "lagg0" 
     54if [ $? -eq 0 ] ; then DEVLIST="${DEVLIST} lagg0"; fi 
     55 
     56echo ${DEVLIST} | grep -q -e "iwn0" -e "ath0" -e "bwn0" -e "bwi0" -e "an0" -e "mwl0" -e "ural0" -e "ral0" -e "zyd0" 
     57if [ $? -eq 0 ] ; then DEVLIST="${DEVLIST} wlan0"; fi 
    5758 
    5859for inf in ${DEVLIST} ; do 
    59   if `echo $inf | egrep -v 'lo|plip|gif|tun|pfsync' 1>/dev/null` ; then 
     60  if `echo $inf | egrep -v 'ath|bwn|bwi|an|mwl|ural|ral|zyd|iwn|lo|plip|gif|tun|pfsync' 1>/dev/null` ; then 
    6061 
    6162  # Ports from 49152 to 65535 is needed for SMB and other connectivity 
Note: See TracChangeset for help on using the changeset viewer.