=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== apf-firewall-9.7+rev1/install.sh-88- apf-firewall-9.7+rev1/install.sh:89:VER=`cat files/VERSION | grep version | awk '{print$2}'` apf-firewall-9.7+rev1/install.sh-90-if [ -d "$INSTALL_PATH" ]; then ############################################## apf-firewall-9.7+rev1/files/apf-60-if [ -f "$INSTALL_PATH/internals/.last.full" ]; then apf-firewall-9.7+rev1/files/apf:61: LAST_FULL=`cat $INSTALL_PATH/internals/.last.full` apf-firewall-9.7+rev1/files/apf-62- CURRENT_LOAD=`date +"%s"` ############################################## apf-firewall-9.7+rev1/files/apf-75-else apf-firewall-9.7+rev1/files/apf:76: EMPTY_MD5=`cat $INSTALL_PATH/internals/.md5.cores` apf-firewall-9.7+rev1/files/apf-77- if [ "$EMPTY_MD5" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/apf-80- $MD5 $MD5_FILES > $INSTALL_PATH/internals/.md5.cores.new 2> /dev/null apf-firewall-9.7+rev1/files/apf:81: VARS_DIFF=`$DIFF $INSTALL_PATH/internals/.md5.cores.new $INSTALL_PATH/internals/.md5.cores` apf-firewall-9.7+rev1/files/apf-82- if [ ! "$VARS_DIFF" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/apf-98- $INSTALL_PATH/apf -o > $INSTALL_PATH/internals/.last.vars.new apf-firewall-9.7+rev1/files/apf:99: VARS_DIFF=`$DIFF $INSTALL_PATH/internals/.last.vars.new $INSTALL_PATH/internals/.last.vars` apf-firewall-9.7+rev1/files/apf-100- if [ ! "$VARS_DIFF" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/apf-106-# check uptiime is greater than 5 minutes (300s) apf-firewall-9.7+rev1/files/apf:107: UPSEC=`cat /proc/uptime | tr '.' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/apf-108- if [ "$UPSEC" -lt "300" ]; then ############################################## apf-firewall-9.7+rev1/files/apf-157-# check for/load bandmin apf-firewall-9.7+rev1/files/apf:158:LOAD=`cat /proc/loadavg | tr '.' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/apf-159- if [ ! "$LOAD" -gt "10" ]; then ############################################## apf-firewall-9.7+rev1/files/bt.rules-310- $IPT -N P2P apf-firewall-9.7+rev1/files/bt.rules:311: for i in `echo $BLK_P2P_PORTS | tr ',' ' '`; do apf-firewall-9.7+rev1/files/bt.rules:312: MVAL=`echo $i | grep "_"` apf-firewall-9.7+rev1/files/bt.rules-313- PORT=$i ############################################## apf-firewall-9.7+rev1/files/bt.rules-333- else apf-firewall-9.7+rev1/files/bt.rules:334: PORT_BEG=`echo $i | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/bt.rules:335: PORT_END=`echo $i | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/bt.rules-336- PORTST="$PORT_BEG:$PORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-43- fi apf-firewall-9.7+rev1/files/internals/functions.apf:44:APF_CJ=`cat $CRON | grep -w /etc/init.d/apf` apf-firewall-9.7+rev1/files/internals/functions.apf-45- if [ "$APF_CJ" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-54-elif [ "$DEVEL_MODE" == "0" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:55:APF_CJ=`cat $CRON | grep -w /etc/init.d/apf` apf-firewall-9.7+rev1/files/internals/functions.apf-56- if [ ! "$APF_CJ" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-99-# Remove ipchains module if loaded apf-firewall-9.7+rev1/files/internals/functions.apf:100:IPC_VAL=`$LSM | grep ipchains` apf-firewall-9.7+rev1/files/internals/functions.apf-101-if [ ! "$IPC_VAL" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-162-if [ -f "$LOCK" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:163: OVAL=`cat $LOCK` apf-firewall-9.7+rev1/files/internals/functions.apf-164- DIFF=$[UTIME-OVAL] ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-199-if [ ! "$MAXLINES" == "0" ] && [ -f "$FILE" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:200: LINES=`cat $FILE | grep -v "#" | grep -c ""` apf-firewall-9.7+rev1/files/internals/functions.apf-201- if [ "$LINES" -gt "$MAXLINES" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-202- eout "{glob} triming $FILE to $MAXLINES lines" apf-firewall-9.7+rev1/files/internals/functions.apf:203: CHK_CMT=`tail -n 50 $FILE | grep -c "#"` apf-firewall-9.7+rev1/files/internals/functions.apf-204- MAXLINES=$[CHK_CMT+MAXLINES] apf-firewall-9.7+rev1/files/internals/functions.apf:205: CHK_SCMT=`tail -n $MAXLINES $FILE | tac | tail -n 1 | grep "#"` apf-firewall-9.7+rev1/files/internals/functions.apf-206- if [ "$CHK_SCMT" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-232- apf-firewall-9.7+rev1/files/internals/functions.apf:233: val=`cat /etc/apf/allow_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/files/internals/functions.apf-234- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-237- fi apf-firewall-9.7+rev1/files/internals/functions.apf:238: val=`cat /etc/apf/deny_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/files/internals/functions.apf-239- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-242- fi apf-firewall-9.7+rev1/files/internals/functions.apf:243: val=`cat /etc/apf/glob_allow_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/files/internals/functions.apf-244- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-247- fi apf-firewall-9.7+rev1/files/internals/functions.apf:248: val=`cat /etc/apf/glob_deny_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/files/internals/functions.apf-249- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-253- apf-firewall-9.7+rev1/files/internals/functions.apf:254: dil=`$IPT --numeric --list INPUT --line-numbers | grep $DIP | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:255: dol=`$IPT --numeric --list OUTPUT --line-numbers | grep $DIP | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-256- $IPT -D INPUT $dil >> /dev/null 2>&1 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-258- apf-firewall-9.7+rev1/files/internals/functions.apf:259: dil=`$IPT --numeric --list TALLOW --line-numbers | grep $DIP | tac | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:260: dol=`$IPT --numeric --list TDENY --line-numbers | grep $DIP | tac | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:261: for i in `echo $dil`; do apf-firewall-9.7+rev1/files/internals/functions.apf-262- $IPT -D TALLOW $i >> /dev/null 2>&1 apf-firewall-9.7+rev1/files/internals/functions.apf-263- done apf-firewall-9.7+rev1/files/internals/functions.apf:264: for i in `echo $dol`; do apf-firewall-9.7+rev1/files/internals/functions.apf-265- $IPT -D TDENY $i >> /dev/null 2>&1 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-267- apf-firewall-9.7+rev1/files/internals/functions.apf:268: dil=`$IPT --numeric --list TGALLOW --line-numbers | grep $DIP | tac | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:269: dol=`$IPT --numeric --list TGDENY --line-numbers | grep $DIP | tac | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:270: for i in `echo $dil`; do apf-firewall-9.7+rev1/files/internals/functions.apf-271- $IPT -D TGALLOW $i >> /dev/null 2>&1 apf-firewall-9.7+rev1/files/internals/functions.apf-272- done apf-firewall-9.7+rev1/files/internals/functions.apf:273: for i in `echo $dol`; do apf-firewall-9.7+rev1/files/internals/functions.apf-274- $IPT -D TGDENY $i >> /dev/null 2>&1 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-281-if [ ! "$HOST" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:282: val=`cat $DENY_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:283: val_rev=`cat $ALLOW_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:284: val_rev2=`cat $GALLOW_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:285: val_rev3=`cat $GDENY_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:286: val_rev4=`/sbin/ip addr list $IFACE_IN | grep -w inet | grep -v inet6 | tr '/' ' ' | awk '{print$2}' | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf-287- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-322-if [ ! "$HOST" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:323: val=`cat $DENY_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:324: val_rev=`cat $ALLOW_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:325: val_rev2=`cat $GALLOW_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:326: val_rev3=`cat $GDENY_HOSTS | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf:327: val_rev4=`/sbin/ip addr list $IFACE_IN | grep -w inet | grep -v inet6 | tr '/' ' ' | awk '{print$2}' | grep -w $HOST` apf-firewall-9.7+rev1/files/internals/functions.apf-328- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-427-if [ ! "$TOS_0" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:428: for i in `echo $TOS_0 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:429: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-430- $IPT -t mangle -A PREROUTING -p tcp --sport $i -j TOS --set-tos 0 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-434-if [ ! "$TOS_2" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:435: for i in `echo $TOS_2 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:436: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-437- $IPT -t mangle -A PREROUTING -p tcp --sport $i -j TOS --set-tos 2 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-441-if [ ! "$TOS_4" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:442: for i in `echo $TOS_4 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:443: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-444- $IPT -t mangle -A PREROUTING -p tcp --sport $i -j TOS --set-tos 4 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-448-if [ ! "$TOS_8" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:449: for i in `echo $TOS_8 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:450: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-451- $IPT -t mangle -A PREROUTING -p tcp --sport $i -j TOS --set-tos 8 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-455-if [ ! "$TOS_16" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:456: for i in `echo $TOS_16 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:457: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-458- $IPT -t mangle -A PREROUTING -p tcp --sport $i -j TOS --set-tos 16 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-462-if [ ! "$TOS_DEF_RANGE" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:463: for i in `echo $TOS_DEF_RANGE | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:464: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-465- $IPT -t mangle -A PREROUTING -p tcp --sport $i -j TOS --set-tos $TOS_DEF ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-478-if [ ! "$TOS_0" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:479: for i in `echo $TOS_0 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:480: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-481- $IPT -t mangle -A POSTROUTING -p tcp --dport $i -j TOS --set-tos 0 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-485-if [ ! "$TOS_2" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:486: for i in `echo $TOS_2 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:487: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-488- $IPT -t mangle -A POSTROUTING -p tcp --dport $i -j TOS --set-tos 2 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-492-if [ ! "$TOS_4" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:493: for i in `echo $TOS_4 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:494: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-495- $IPT -t mangle -A POSTROUTING -p tcp --dport $i -j TOS --set-tos 4 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-499-if [ ! "$TOS_8" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:500: for i in `echo $TOS_8 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:501: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-502- $IPT -t mangle -A POSTROUTING -p tcp --dport $i -j TOS --set-tos 8 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-506-if [ ! "$TOS_16" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:507: for i in `echo $TOS_16 | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:508: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-509- $IPT -t mangle -A POSTROUTING -p tcp --dport $i -j TOS --set-tos 16 ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-513-if [ ! "$TOS_DEF_RANGE" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:514: for i in `echo $TOS_DEF_RANGE | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf:515: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-516- $IPT -t mangle -A POSTROUTING -p tcp --dport $i -j TOS --set-tos $TOS_DEF ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-525-allow_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:526:if [ ! "`cat $ALLOW_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-527- eout "{glob} loading allow_hosts.rules" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-529- # apf-firewall-9.7+rev1/files/internals/functions.apf:530: for i in `cat $ALLOW_HOSTS | grep -v "#" | grep -v ":" | grep -v "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf:531: val=`/sbin/ip addr list $IFACE_IN | grep -w inet | grep -v inet6 | tr '/' ' ' | awk '{print$2}' | grep -w $i` apf-firewall-9.7+rev1/files/internals/functions.apf-532- if [ ! "$val" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-541- # apf-firewall-9.7+rev1/files/internals/functions.apf:542: for i in `cat $ALLOW_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -vw in | grep -vw out | grep -v tcp | grep -v udp`; do apf-firewall-9.7+rev1/files/internals/functions.apf-543- if [ ! "$i" == "" ] && [ -f "$ALLOW_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-544- apf-firewall-9.7+rev1/files/internals/functions.apf:545: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-546- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-552- fi apf-firewall-9.7+rev1/files/internals/functions.apf:553: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-554- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:555: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:556: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-557- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-559- apf-firewall-9.7+rev1/files/internals/functions.apf:560: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-561- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-565- fi apf-firewall-9.7+rev1/files/internals/functions.apf:566: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-567- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-575- # apf-firewall-9.7+rev1/files/internals/functions.apf:576: for i in `cat $ALLOW_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -v "tcp" | grep -v "udp"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-577- if [ ! "$i" == "" ] && [ -f "$ALLOW_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-578- apf-firewall-9.7+rev1/files/internals/functions.apf:579: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-580- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-587- apf-firewall-9.7+rev1/files/internals/functions.apf:588: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-589- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-596- apf-firewall-9.7+rev1/files/internals/functions.apf:597: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-598- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:599: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:600: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-601- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-603- apf-firewall-9.7+rev1/files/internals/functions.apf:604: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-605- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-609- fi apf-firewall-9.7+rev1/files/internals/functions.apf:610: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-611- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-619- # apf-firewall-9.7+rev1/files/internals/functions.apf:620: for i in `cat $ALLOW_HOSTS | grep -v "#" | grep ":" | grep "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf-621- if [ ! "$i" == "" ] && [ -f "$ALLOW_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-622- apf-firewall-9.7+rev1/files/internals/functions.apf:623: PTYPE=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-624- if [ "$PTYPE" == "tcp" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-629- apf-firewall-9.7+rev1/files/internals/functions.apf:630: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-631- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-638- apf-firewall-9.7+rev1/files/internals/functions.apf:639: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-640- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-647- apf-firewall-9.7+rev1/files/internals/functions.apf:648: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-649- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:650: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:651: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-652- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-654- apf-firewall-9.7+rev1/files/internals/functions.apf:655: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-656- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-660- fi apf-firewall-9.7+rev1/files/internals/functions.apf:661: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$6}'` apf-firewall-9.7+rev1/files/internals/functions.apf-662- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-673-glob_allow_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:674:if [ ! "`cat $GALLOW_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-675- eout "{glob} loading glob_allow.rules" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-677- # apf-firewall-9.7+rev1/files/internals/functions.apf:678: for i in `cat $GALLOW_HOSTS | grep -v "#" | grep -v ":" | grep -v "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf-679- if [ ! "$i" == "" ] && [ -f "$GALLOW_HOSTS" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-686- # apf-firewall-9.7+rev1/files/internals/functions.apf:687: for i in `cat $GALLOW_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -vw in | grep -vw out | grep -v tcp | grep -v udp`; do apf-firewall-9.7+rev1/files/internals/functions.apf-688- if [ ! "$i" == "" ] && [ -f "$GALLOW_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-689- apf-firewall-9.7+rev1/files/internals/functions.apf:690: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-691- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-697- fi apf-firewall-9.7+rev1/files/internals/functions.apf:698: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-699- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:700: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:701: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-702- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-704- apf-firewall-9.7+rev1/files/internals/functions.apf:705: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-706- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-710- fi apf-firewall-9.7+rev1/files/internals/functions.apf:711: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-712- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-720- # apf-firewall-9.7+rev1/files/internals/functions.apf:721: for i in `cat $GALLOW_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -v "tcp" | grep -v "udp"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-722- if [ ! "$i" == "" ] && [ -f "$GALLOW_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-723- apf-firewall-9.7+rev1/files/internals/functions.apf:724: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-725- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-732- apf-firewall-9.7+rev1/files/internals/functions.apf:733: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-734- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-741- apf-firewall-9.7+rev1/files/internals/functions.apf:742: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-743- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:744: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:745: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-746- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-748- apf-firewall-9.7+rev1/files/internals/functions.apf:749: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-750- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-754- fi apf-firewall-9.7+rev1/files/internals/functions.apf:755: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-756- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-764- # apf-firewall-9.7+rev1/files/internals/functions.apf:765: for i in `cat $GALLOW_HOSTS | grep -v "#" | grep ":" | grep "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf-766- if [ ! "$i" == "" ] && [ -f "$GALLOW_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-767- apf-firewall-9.7+rev1/files/internals/functions.apf:768: PTYPE=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-769- if [ "$PTYPE" == "tcp" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-774- apf-firewall-9.7+rev1/files/internals/functions.apf:775: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-776- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-783- apf-firewall-9.7+rev1/files/internals/functions.apf:784: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-785- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-792- apf-firewall-9.7+rev1/files/internals/functions.apf:793: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-794- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:795: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:796: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-797- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-799- apf-firewall-9.7+rev1/files/internals/functions.apf:800: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-801- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-805- fi apf-firewall-9.7+rev1/files/internals/functions.apf:806: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$6}'` apf-firewall-9.7+rev1/files/internals/functions.apf-807- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-817-deny_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:818:if [ ! "`cat $DENY_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-819- eout "{glob} loading deny_hosts.rules" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-821- # apf-firewall-9.7+rev1/files/internals/functions.apf:822: for i in `cat $DENY_HOSTS | grep -v "#" | grep -v ":" | grep -v "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf:823: val=`/sbin/ip addr list $IFACE_IN | grep -w inet | grep -v inet6 | tr '/' ' ' | awk '{print$2}' | grep -w $i` apf-firewall-9.7+rev1/files/internals/functions.apf-824- if [ ! "$val" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-833- # apf-firewall-9.7+rev1/files/internals/functions.apf:834: for i in `cat $DENY_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -vw in | grep -vw out | grep -v tcp | grep -v udp`; do apf-firewall-9.7+rev1/files/internals/functions.apf-835- if [ ! "$i" == "" ] && [ -f "$DENY_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-836- apf-firewall-9.7+rev1/files/internals/functions.apf:837: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-838- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-844- fi apf-firewall-9.7+rev1/files/internals/functions.apf:845: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-846- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:847: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:848: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-849- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-851- apf-firewall-9.7+rev1/files/internals/functions.apf:852: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-853- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-857- fi apf-firewall-9.7+rev1/files/internals/functions.apf:858: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-859- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-868- # apf-firewall-9.7+rev1/files/internals/functions.apf:869: for i in `cat $DENY_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -v "tcp" | grep -v "udp"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-870- if [ ! "$i" == "" ] && [ -f "$DENY_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-871- apf-firewall-9.7+rev1/files/internals/functions.apf:872: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-873- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-880- apf-firewall-9.7+rev1/files/internals/functions.apf:881: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-882- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-889- apf-firewall-9.7+rev1/files/internals/functions.apf:890: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-891- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:892: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:893: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-894- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-896- apf-firewall-9.7+rev1/files/internals/functions.apf:897: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-898- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-902- fi apf-firewall-9.7+rev1/files/internals/functions.apf:903: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-904- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-913- # apf-firewall-9.7+rev1/files/internals/functions.apf:914: for i in `cat $DENY_HOSTS | grep -v "#" | grep ":" | grep "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf-915- if [ ! "$i" == "" ] && [ -f "$DENY_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-916- apf-firewall-9.7+rev1/files/internals/functions.apf:917: PTYPE=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-918- if [ "$PTYPE" == "tcp" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-923- apf-firewall-9.7+rev1/files/internals/functions.apf:924: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-925- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-932- apf-firewall-9.7+rev1/files/internals/functions.apf:933: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-934- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-941- apf-firewall-9.7+rev1/files/internals/functions.apf:942: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-943- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:944: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:945: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-946- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-948- apf-firewall-9.7+rev1/files/internals/functions.apf:949: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-950- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-954- fi apf-firewall-9.7+rev1/files/internals/functions.apf:955: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$6}'` apf-firewall-9.7+rev1/files/internals/functions.apf-956- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-973-glob_deny_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:974:if [ ! "`cat $GDENY_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-975- eout "{glob} loading glob_deny.rules" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-977- # apf-firewall-9.7+rev1/files/internals/functions.apf:978: for i in `cat $GDENY_HOSTS | grep -v "#" | grep -v ":" | grep -v "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf-979- if [ ! "$i" == "" ] && [ -f "$GDENY_HOSTS" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-986- # apf-firewall-9.7+rev1/files/internals/functions.apf:987: for i in `cat $GDENY_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -vw in | grep -vw out | grep -v tcp | grep -v udp`; do apf-firewall-9.7+rev1/files/internals/functions.apf-988- if [ ! "$i" == "" ] && [ -f "$GDENY_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-989- apf-firewall-9.7+rev1/files/internals/functions.apf:990: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-991- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-997- fi apf-firewall-9.7+rev1/files/internals/functions.apf:998: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-999- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:1000: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:1001: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1002- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1004- apf-firewall-9.7+rev1/files/internals/functions.apf:1005: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1006- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1010- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1011: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1012- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1021- # apf-firewall-9.7+rev1/files/internals/functions.apf:1022: for i in `cat $GDENY_HOSTS | grep -v "#" | grep ":" | grep "=" | grep -v "tcp" | grep -v "udp"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1023- if [ ! "$i" == "" ] && [ -f "$GDENY_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-1024- apf-firewall-9.7+rev1/files/internals/functions.apf:1025: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1026- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1033- apf-firewall-9.7+rev1/files/internals/functions.apf:1034: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1035- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1042- apf-firewall-9.7+rev1/files/internals/functions.apf:1043: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1044- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:1045: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:1046: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1047- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1049- apf-firewall-9.7+rev1/files/internals/functions.apf:1050: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1051- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1055- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1056: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1057- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1066- # apf-firewall-9.7+rev1/files/internals/functions.apf:1067: for i in `cat $GDENY_HOSTS | grep -v "#" | grep ":" | grep "="`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1068- if [ ! "$i" == "" ] && [ -f "$GDENY_HOSTS" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-1069- apf-firewall-9.7+rev1/files/internals/functions.apf:1070: PTYPE=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1071- if [ "$PTYPE" == "tcp" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1076- apf-firewall-9.7+rev1/files/internals/functions.apf:1077: NFLOW=`echo $i | tr ':' ' ' | tr '=' ' '| awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1078- if [ "$NFLOW" == "in" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1085- apf-firewall-9.7+rev1/files/internals/functions.apf:1086: PFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$3}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1087- if [ "$PFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1094- apf-firewall-9.7+rev1/files/internals/functions.apf:1095: PPORT=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$4}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1096- if [ ! "$(echo $PPORT | grep _)" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:1097: PPORT_BEG=`echo $PPORT | tr '_' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/functions.apf:1098: PPORT_END=`echo $PPORT | tr '_' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1099- PPORT="$PPORT_BEG:$PPORT_END" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1101- apf-firewall-9.7+rev1/files/internals/functions.apf:1102: IPFLOW=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$5}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1103- if [ "$IPFLOW" == "s" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1107- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1108: PIP=`echo $i | tr ':' ' ' | tr '=' ' ' | awk '{print$6}'` apf-firewall-9.7+rev1/files/internals/functions.apf-1109- ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1130- rm -rf $URL_TMP apf-firewall-9.7+rev1/files/internals/functions.apf:1131: URL_FILE=`echo $DLIST_RESERVED_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1132- RD_CON="$DLIST_RESERVED_URL_PROT://$DLIST_RESERVED_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1160- rm -rf $URL_TMP /etc/apf/.apf-* apf-firewall-9.7+rev1/files/internals/functions.apf:1161: URL_FILE=`echo $DLIST_PHP_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1162- URL_CON="$DLIST_PHP_URL_PROT://$DLIST_PHP_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1171- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1172: for str in `cat $URL_TMP/$URL_FILE | grep -v "#" | grep -e '[0-9]' | awk '{print$1}'`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1173- if [ ! "$str" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1189-dlist_php_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:1190:if [ ! "`cat $PHP_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-1191- eout "{php} loading php_hosts.rules" apf-firewall-9.7+rev1/files/internals/functions.apf-1192- $IPT -N PHP apf-firewall-9.7+rev1/files/internals/functions.apf:1193: for i in `cat $PHP_HOSTS | grep -v "#"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1194- if [ ! "$i" == "" ] && [ -f "$PHP_HOSTS" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1211- rm -rf $URL_TMP /etc/apf/.apf-* apf-firewall-9.7+rev1/files/internals/functions.apf:1212: URL_FILE=`echo $DLIST_DSHIELD_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1213- URL_CON="$DLIST_DSHIELD_URL_PROT://$DLIST_DSHIELD_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1222- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1223: for str in `cat $URL_TMP/$URL_FILE | grep -v "#" | grep -e '[0-9]' | awk '{print$1}'`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1224- if [ ! "$str" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1240-dlist_dshield_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:1241:if [ ! "`cat $DS_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-1242- eout "{dshield} loading ds_hosts.rules" apf-firewall-9.7+rev1/files/internals/functions.apf-1243- $IPT -N DSHIELD apf-firewall-9.7+rev1/files/internals/functions.apf:1244: for i in `cat $DS_HOSTS | grep -v "#"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1245- if [ ! "$i" == "" ] && [ -f "$DS_HOSTS" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1262- rm -rf $URL_TMP /etc/apf/.apf-* apf-firewall-9.7+rev1/files/internals/functions.apf:1263: URL_FILE=`echo $DLIST_SPAMHAUS_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1264- URL_CON="$DLIST_SPAMHAUS_URL_PROT://$DLIST_SPAMHAUS_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1273- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1274: for str in `cat $URL_TMP/$URL_FILE | grep -v "#" | grep "/" | awk '{print$1}' | tr -d ';'`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1275- if [ ! "$str" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1292-dlist_spamhaus_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:1293:if [ ! "`cat $DROP_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-1294- eout "{sdrop} loading sdrop_hosts.rules" apf-firewall-9.7+rev1/files/internals/functions.apf-1295- $IPT -N SDROP apf-firewall-9.7+rev1/files/internals/functions.apf:1296: for i in `cat $DROP_HOSTS | grep -v "#"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1297- if [ ! "$i" == "" ] && [ -f "$DROP_HOSTS" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1314- rm -rf $URL_TMP /etc/apf/.apf-* apf-firewall-9.7+rev1/files/internals/functions.apf:1315: URL_FILE=`echo $DLIST_ECNSHAME_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1316- URL_CON="$DLIST_ECNSHAME_URL_PROT://$DLIST_ECNSHAME_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1325- fi apf-firewall-9.7+rev1/files/internals/functions.apf:1326: for str in `cat $URL_TMP/$URL_FILE`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1327- if [ ! "$str" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1343-dlist_ecnshame_hosts() { apf-firewall-9.7+rev1/files/internals/functions.apf:1344:if [ ! "`cat $ECNSHAME_HOSTS | grep -v "#"`" == "" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf-1345- eout "{ecnshame} loading ecnshame_hosts.rules" apf-firewall-9.7+rev1/files/internals/functions.apf:1346: for i in `cat $ECNSHAME_HOSTS | grep -v "#"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1347- if [ ! "$i" == "" ] && [ -f "$ECNSHAME_HOSTS" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1357- rm -rf $URL_TMP apf-firewall-9.7+rev1/files/internals/functions.apf:1358: URL_FILE=`echo $GA_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1359- GA_URL_CON="$GA_URL_PROT://$GA_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1382- rm -rf $URL_TMP apf-firewall-9.7+rev1/files/internals/functions.apf:1383: URL_FILE=`echo $GD_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1384- GD_URL_CON="$GD_URL_PROT://$GD_URL" ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1406-if [ -f "$FILE" ]; then apf-firewall-9.7+rev1/files/internals/functions.apf:1407:FNAME=`echo $FILE | tr '/' '\n' | tail -n 1` apf-firewall-9.7+rev1/files/internals/functions.apf-1408-eout "{glob} loading $FNAME" apf-firewall-9.7+rev1/files/internals/functions.apf:1409: for i in `cat $FILE | grep -v "#"`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1410- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1427- eout "{glob} loading common drop ports" apf-firewall-9.7+rev1/files/internals/functions.apf:1428:for i in `echo $BLK_PORTS | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1429- if [ "$(echo $i | grep "_")" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1438- else apf-firewall-9.7+rev1/files/internals/functions.apf:1439: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/functions.apf-1440- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/functions.apf-1454-$IPT -N LMAC apf-firewall-9.7+rev1/files/internals/functions.apf:1455:for mac in `echo $LGATE_MAC | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/functions.apf-1456-MAC=$mac ############################################## apf-firewall-9.7+rev1/files/internals/internals.conf-28- apf-firewall-9.7+rev1/files/internals/internals.conf:29:NET=`$ifconfig $IF | grep -vw inet6 | grep -w inet | cut -d : -f 2 | cut -d \ -f 1` apf-firewall-9.7+rev1/files/internals/internals.conf:30:NAME=`echo $APPN | tr '[:lower:]' '[:upper:]'` apf-firewall-9.7+rev1/files/internals/internals.conf-31-TIME=`date +"%D %H:%M:%S"` apf-firewall-9.7+rev1/files/internals/internals.conf-32-UTIME=`date +"%s"` apf-firewall-9.7+rev1/files/internals/internals.conf:33:KREL=`$UNAME -r | cut -d\. -f 1,2` apf-firewall-9.7+rev1/files/internals/internals.conf-34-LOCK_TIMEOUT="360" ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-1-if [ ! "$IG_TCP_CPORTS" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:2:IG_TCP_CPORTS=`echo "$IG_TCP_CPORTS" | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common-3-PROTO="tcp" apf-firewall-9.7+rev1/files/internals/cports.common:4:for i in `echo $IG_TCP_CPORTS`; do apf-firewall-9.7+rev1/files/internals/cports.common-5- if [ "$(echo $i | grep "_")" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-10- else apf-firewall-9.7+rev1/files/internals/cports.common:11: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/cports.common-12- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-20-if [ ! "$IG_UDP_CPORTS" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:21:IG_UDP_CPORTS=`echo "$IG_UDP_CPORTS" | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common-22-PROTO="udp" apf-firewall-9.7+rev1/files/internals/cports.common:23:for i in `echo $IG_UDP_CPORTS`; do apf-firewall-9.7+rev1/files/internals/cports.common-24- if [ "$(echo $i | grep "_")" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-29- else apf-firewall-9.7+rev1/files/internals/cports.common:30: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/cports.common-31- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-40-if [ ! "$EG_TCP_CPORTS" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:41:EG_TCP_CPORTS=`echo "$EG_TCP_CPORTS" | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common-42-PROTO="tcp" apf-firewall-9.7+rev1/files/internals/cports.common:43:for i in `echo $EG_TCP_CPORTS`; do apf-firewall-9.7+rev1/files/internals/cports.common-44- if [ "$(echo $i | grep "_")" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-49- else apf-firewall-9.7+rev1/files/internals/cports.common:50: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/cports.common-51- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-61-if [ ! "$EG_UDP_CPORTS" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:62:EG_UDP_CPORTS=`echo "$EG_UDP_CPORTS" | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common-63-PROTO="udp" apf-firewall-9.7+rev1/files/internals/cports.common:64:for i in `echo $EG_UDP_CPORTS`; do apf-firewall-9.7+rev1/files/internals/cports.common-65- if [ "$(echo $i | grep "_")" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-70- else apf-firewall-9.7+rev1/files/internals/cports.common:71: i=`echo $i | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/cports.common-72- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-90-fi apf-firewall-9.7+rev1/files/internals/cports.common:91:IG_ICMP_TYPES=`echo $IG_ICMP_TYPES | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common:92: for i in `echo $IG_ICMP_TYPES`; do apf-firewall-9.7+rev1/files/internals/cports.common-93- if [ ! "$i" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:94: i=`echo $i | tr '[:upper:]' '[:lower:]'` apf-firewall-9.7+rev1/files/internals/cports.common-95- if [ "$i" == "all" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-116-fi apf-firewall-9.7+rev1/files/internals/cports.common:117:EG_ICMP_TYPES=`echo $EG_ICMP_TYPES | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common:118: for i in `echo $EG_ICMP_TYPES`; do apf-firewall-9.7+rev1/files/internals/cports.common-119- if [ ! "$i" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:120: i=`echo $i | tr '[:upper:]' '[:lower:]'` apf-firewall-9.7+rev1/files/internals/cports.common-121- if [ "$i" == "all" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-134-if [ ! "$EG_TCP_UID" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:135:EG_TCP_UID=`echo "$EG_TCP_UID" | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common-136-PROTO="tcp" apf-firewall-9.7+rev1/files/internals/cports.common:137:for i in `echo $EG_TCP_UID`; do apf-firewall-9.7+rev1/files/internals/cports.common:138:uid=`echo $i | tr ':' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/cports.common:139:port=`echo $i | tr ':' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/cports.common-140- ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-146- else apf-firewall-9.7+rev1/files/internals/cports.common:147: i=`echo $port | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/cports.common-148- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-158-if [ ! "$EG_UDP_UID" == "" ]; then apf-firewall-9.7+rev1/files/internals/cports.common:159:EG_UDP_UID=`echo "$EG_UDP_UID" | tr ',' ' '` apf-firewall-9.7+rev1/files/internals/cports.common-160-PROTO="udp" apf-firewall-9.7+rev1/files/internals/cports.common:161:for i in `echo $EG_UDP_UID`; do apf-firewall-9.7+rev1/files/internals/cports.common:162:uid=`echo $i | tr ':' ' ' | awk '{print$1}'` apf-firewall-9.7+rev1/files/internals/cports.common:163:port=`echo $i | tr ':' ' ' | awk '{print$2}'` apf-firewall-9.7+rev1/files/internals/cports.common-164- ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-170- else apf-firewall-9.7+rev1/files/internals/cports.common:171: i=`echo $port | tr '_' ':'` apf-firewall-9.7+rev1/files/internals/cports.common-172- if [ ! "$i" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/internals/cports.common-183- $IPT -N DEG apf-firewall-9.7+rev1/files/internals/cports.common:184: for i in `echo $EG_DROP_CMD | tr ',' ' '`; do apf-firewall-9.7+rev1/files/internals/cports.common:185: si=`echo $i | cut -c 1-6` apf-firewall-9.7+rev1/files/internals/cports.common-186- if [ "LOG_DROP" == "1" ]; then ############################################## apf-firewall-9.7+rev1/files/extras/get_ports-24-udp_ports="" apf-firewall-9.7+rev1/files/extras/get_ports:25:for ptcp in `netstat -napl | grep LISTEN | grep -v 127.0.0.1 | grep tcp | awk '{print$4}' | grep : | tr ':' ' ' | awk '{print$2}' | sort -n`; do apf-firewall-9.7+rev1/files/extras/get_ports-26-if [ "$tcp_ports" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/extras/get_ports-28-else apf-firewall-9.7+rev1/files/extras/get_ports:29: val=`echo $tcp_ports | grep -w $ptcp` apf-firewall-9.7+rev1/files/extras/get_ports-30- if [ "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/extras/get_ports-35- apf-firewall-9.7+rev1/files/extras/get_ports:36:for pudp in `netstat -napl | grep -v 127.0.0.1 | grep udp | awk '{print$4}' | grep : | tr ':' ' ' | awk '{print$2}' | sort -n`; do apf-firewall-9.7+rev1/files/extras/get_ports-37-if [ "$udp_ports" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/extras/get_ports-39-else apf-firewall-9.7+rev1/files/extras/get_ports:40: val=`echo $udp_ports | grep -w $pudp` apf-firewall-9.7+rev1/files/extras/get_ports-41- if [ "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/extras/importconf-39- apf-firewall-9.7+rev1/files/extras/importconf:40:OV=`cat /etc/apf.bk.last/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/files/extras/importconf:41:NV=`cat /etc/apf/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/files/extras/importconf-42- echo " Imported options from $OV to $NV." ############################################## apf-firewall-9.7+rev1/files/firewall-44-if [ ! "$IF" == "" ]; then apf-firewall-9.7+rev1/files/firewall:45: for i in `echo $IF`; do apf-firewall-9.7+rev1/files/firewall:46: VAL_IF=`/sbin/route -n | grep -w $i` apf-firewall-9.7+rev1/files/firewall-47- if [ "$VAL_IF" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/firewall-56-if [ ! "$IFACE_TRUSTED" == "" ]; then apf-firewall-9.7+rev1/files/firewall:57: for i in `echo $IFACE_TRUSTED`; do apf-firewall-9.7+rev1/files/firewall:58: VAL_IFACE_TRUSTED=`/sbin/route -n | grep -w $i` apf-firewall-9.7+rev1/files/firewall-59- if [ "$VAL_IFACE_TRUSTED" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/firewall-88-if [ ! "$IFACE_TRUSTED" == "" ]; then apf-firewall-9.7+rev1/files/firewall:89:for i in `echo $IFACE_TRUSTED | tr ',' ' '`; do apf-firewall-9.7+rev1/files/firewall:90:VAL_IF=`/sbin/ip addr list | grep -w $i` apf-firewall-9.7+rev1/files/firewall-91-if [ "$VAL_IF" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/firewall-188- $IPT -N RABPSCAN apf-firewall-9.7+rev1/files/firewall:189: for i in `echo $RAB_PSCAN_PORTS | tr ',' ' '`; do apf-firewall-9.7+rev1/files/firewall-190- if [ "$LOG_DROP" == "1" ] || [ "$RAB_LOG_HIT" == "1" ]; then ############################################## apf-firewall-9.7+rev1/files/firewall-232-if [ -f "/etc/resolv.conf" ] && [ "$RESV_DNS" == "1" ]; then apf-firewall-9.7+rev1/files/firewall:233:LDNS=`cat /etc/resolv.conf | grep -v "#" | grep -w nameserver | awk '{print$2}' | grep -v 127.0.0.1` apf-firewall-9.7+rev1/files/firewall-234- if [ ! "$LDNS" == "" ]; then apf-firewall-9.7+rev1/files/firewall:235: for i in `echo $LDNS`; do apf-firewall-9.7+rev1/files/firewall-236- eout "{glob} resolv dns discovery for $i" ############################################## apf-firewall-9.7+rev1/files/vnet/main.vnet-24- eout "{glob} virtual network enabled, loading vnet rules." apf-firewall-9.7+rev1/files/vnet/main.vnet:25:for i in `ls $INSTALL_PATH/vnet/ | grep .rules`; do apf-firewall-9.7+rev1/files/vnet/main.vnet:26: VALIP=`echo $i | sed 's/.rules//'` apf-firewall-9.7+rev1/files/vnet/main.vnet:27: IFVALIP=`ifconfig | grep -w $VALIP` apf-firewall-9.7+rev1/files/vnet/main.vnet-28- if [ ! "$IFVALIP" == "" ]; then ############################################## apf-firewall-9.7+rev1/files/vnet/vnetgen-43-elif [ -f "$ip" ]; then apf-firewall-9.7+rev1/files/vnet/vnetgen:44: for addr in `/sbin/ip addr list | tr '/' ' ' | grep -w inet | grep -w $IF | grep -v 127.0.0.1 | grep -vw $NET | awk '{print$2}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen-45- if [ ! -f "$INSTALL_PATH/vnet/$addr.rules" ]; then ############################################## apf-firewall-9.7+rev1/files/vnet/vnetgen-51-elif [ -f "$ifconfig" ]; then apf-firewall-9.7+rev1/files/vnet/vnetgen:52:for iface in `ifconfig | grep -w $IF | awk '{print$1}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen:53: for addr in `ifconfig $iface | grep -w inet | tr ':' ' ' | grep -vw $NET | awk '{print$3}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen-54- if [ ! -f "$INSTALL_PATH/vnet/$addr.rules" ]; then ############################################## apf-firewall-9.7+rev1/files/vnet/vnetgen-65- ## associate a vnet rule for ip's on additional interfaces other than the main apf-firewall-9.7+rev1/files/vnet/vnetgen:66: for anet in `ifconfig | grep Link | grep -vwE "inet|inet6|lo|$IFACE_IN|$IFACE_OUT" | awk '{print$1}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen-67- if [ -f "$ip" ]; then apf-firewall-9.7+rev1/files/vnet/vnetgen:68: valtif=`echo $TIF | grep $anet` apf-firewall-9.7+rev1/files/vnet/vnetgen-69- if [ "$valtif" == "" ]; then apf-firewall-9.7+rev1/files/vnet/vnetgen:70: for addr in `/sbin/ip addr list | tr '/' ' ' | grep -w inet | grep -w $anet | grep -v 127.0.0.1 | grep -vw $NET | awk '{print$2}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen-71- if [ ! -f "$INSTALL_PATH/vnet/$addr.rules" ]; then ############################################## apf-firewall-9.7+rev1/files/vnet/vnetgen-78- elif [ -f "$ifconfig" ]; then apf-firewall-9.7+rev1/files/vnet/vnetgen:79: for iface in `ifconfig | grep -w $anet | awk '{print$1}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen:80: valtif=`echo $TIF | grep $anet` apf-firewall-9.7+rev1/files/vnet/vnetgen-81- if [ "$valtif" == "" ]; then apf-firewall-9.7+rev1/files/vnet/vnetgen:82: for addr in `ifconfig $iface | grep -w inet | tr ':' ' ' | grep -vw $NET | awk '{print$3}'`; do apf-firewall-9.7+rev1/files/vnet/vnetgen-83- if [ ! -f "$INSTALL_PATH/vnet/$addr.rules" ]; then ############################################## apf-firewall-9.7+rev1/importconf-39- apf-firewall-9.7+rev1/importconf:40:OV=`cat /etc/apf.bk.last/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/importconf:41:NV=`cat /etc/apf/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/importconf-42- echo " Imported options from $OV to $NV." ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-23-+ /usr/sbin/apf -o > $INSTALL_PATH/internals/.last.vars.new apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:24: VARS_DIFF=`$DIFF $INSTALL_PATH/internals/.last.vars.new $INSTALL_PATH/internals/.last.vars` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-25- if [ ! "$VARS_DIFF" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-79- apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:80:-OV=`cat /etc/apf.bk.last/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:81:-NV=`cat /etc/apf/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:82:+OV=`cat /etc/apf-firewall.bk.last/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:83:+NV=`cat /etc/apf-firewall/VERSION | awk '{print$2}'` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-84- echo " Imported options from $OV to $NV." ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-102- fi apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:103:-APF_CJ=`cat $CRON | grep -w /etc/init.d/apf` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:104:+APF_CJ=`cat $CRON | grep -w /etc/init.d/apf-firewall` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-105- if [ "$APF_CJ" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-115- elif [ "$DEVEL_MODE" == "0" ]; then apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:116:-APF_CJ=`cat $CRON | grep -w /etc/init.d/apf` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:117:+APF_CJ=`cat $CRON | grep -w /etc/init.d/apf-firewall` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-118- if [ ! "$APF_CJ" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-127- apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:128:- val=`cat /etc/apf/allow_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:129:+ val=`cat /etc/apf-firewall/allow_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-130- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-135- fi apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:136:- val=`cat /etc/apf/deny_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:137:+ val=`cat /etc/apf-firewall/deny_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-138- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-143- fi apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:144:- val=`cat /etc/apf/glob_allow_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:145:+ val=`cat /etc/apf-firewall/glob_allow_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-146- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-151- fi apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:152:- val=`cat /etc/apf/glob_deny_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:153:+ val=`cat /etc/apf-firewall/glob_deny_hosts.rules | grep "$DIP"` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-154- if [ ! "$val" == "" ]; then ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-160- apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:161: dil=`$IPT --numeric --list INPUT --line-numbers | grep $DIP | awk '{print$1}'` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-162-@@ -378,7 +378,7 @@ fi ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-186- rm -rf $URL_TMP apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:187: URL_FILE=`echo $DLIST_RESERVED_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-188- RD_CON="$DLIST_RESERVED_URL_PROT://$DLIST_RESERVED_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-205-+ rm -rf $URL_TMP /etc/apf-firewall/.apf-* apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:206: URL_FILE=`echo $DLIST_PHP_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-207- URL_CON="$DLIST_PHP_URL_PROT://$DLIST_PHP_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-225-+ rm -rf $URL_TMP /etc/apf-firewall/.apf-* apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:226: URL_FILE=`echo $DLIST_DSHIELD_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-227- URL_CON="$DLIST_DSHIELD_URL_PROT://$DLIST_DSHIELD_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-245-+ rm -rf $URL_TMP /etc/apf-firewall/.apf-* apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:246: URL_FILE=`echo $DLIST_SPAMHAUS_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-247- URL_CON="$DLIST_SPAMHAUS_URL_PROT://$DLIST_SPAMHAUS_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-265-+ rm -rf $URL_TMP /etc/apf-firewall/.apf-* apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:266: URL_FILE=`echo $DLIST_ECNSHAME_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-267- URL_CON="$DLIST_ECNSHAME_URL_PROT://$DLIST_ECNSHAME_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-284- rm -rf $URL_TMP apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:285: URL_FILE=`echo $GA_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-286- GA_URL_CON="$GA_URL_PROT://$GA_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-302- rm -rf $URL_TMP apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:303: URL_FILE=`echo $GD_URL | tr '/' '\n' | grep "." | tail -n 1` apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-304- GD_URL_CON="$GD_URL_PROT://$GD_URL" ############################################## apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-352- eout "{glob} virtual network enabled, loading vnet rules." apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch:353: for i in `ls $INSTALL_PATH/vnet/ | grep .rules`; do apf-firewall-9.7+rev1/debian/patches/01_fix_path.patch-354---- a/files/vnet/vnetgen