packages/net/miniupnpd/patches/100-iptables-wan-device-name.patch
pavlov b95525d225 sync with r1585 from xwrt. kamikaze integration finished by thepeople. thanks
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5692 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-12-05 06:24:30 +00:00

27 lines
1.1 KiB
Diff

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