--- embedaddon/miniupnpd/netfilter/iptables_removeall.sh 2012/05/29 12:55:57 1.1.1.2 +++ embedaddon/miniupnpd/netfilter/iptables_removeall.sh 2013/07/22 00:32:35 1.1.1.3 @@ -1,10 +1,10 @@ #! /bin/sh -# $Id: iptables_removeall.sh,v 1.1.1.2 2012/05/29 12:55:57 misho Exp $ +# $Id: iptables_removeall.sh,v 1.1.1.3 2013/07/22 00:32:35 misho Exp $ IPTABLES=/sbin/iptables #change this parameters : EXTIF=eth0 -EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`" +EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet ' | awk '{print $2}' | sed -e 's/.*://'`" #removing the MINIUPNPD chain for nat $IPTABLES -t nat -F MINIUPNPD