dbeebf1a8217f3b4f627a1b57ccc595f04c45e43
[openwrt/svn-archive/archive.git] / net / miniupnpd / patches / 100-iptables-wan-device-name.patch
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
4 @@ -2,8 +2,7 @@
5 # $Id: iptables_init.sh,v 1.3 2006/11/23 12:32:57 nanard Exp $
6 IPTABLES=iptables
7
8 -#change this parameters :
9 -EXTIF=eth0
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"
13
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
17 @@ -2,8 +2,7 @@
18 # $Id: iptables_removeall.sh,v 1.3 2006/11/23 12:32:57 nanard Exp $
19 IPTABLES=iptables
20
21 -#change this parameters :
22 -EXTIF=eth0
23 +EXTIF=$(uci get network.wan.ifname)
24 EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
25
26 #removing the MINIUPNPD chain for nat