1 diff -urN miniupnpd.orig/linux/iptables_init.sh miniupnpd/linux/iptables_init.sh
2 --- miniupnpd.orig/linux/iptables_init.sh 2006-11-23 07:56:34.000000000 -0500
3 +++ miniupnpd/linux/iptables_init.sh 2006-11-24 18:57:43.000000000 -0500
5 # $Id: iptables_init.sh,v 1.3 2006/11/23 12:32:57 nanard Exp $
8 -#change this parameters :
10 +EXTIF=$(uci get network.wan.ifname)
11 EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
12 echo "External IP = $EXTIP"
14 diff -urN miniupnpd.orig/linux/iptables_removeall.sh miniupnpd/linux/iptables_removeall.sh
15 --- miniupnpd.orig/linux/iptables_removeall.sh 2006-11-23 07:56:34.000000000 -0500
16 +++ miniupnpd/linux/iptables_removeall.sh 2006-11-24 19:00:47.000000000 -0500
18 # $Id: iptables_removeall.sh,v 1.3 2006/11/23 12:32:57 nanard Exp $
21 -#change this parameters :
23 +EXTIF=$(uci get network.wan.ifname)
24 EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
26 #removing the MINIUPNPD chain for nat