miniupnpd ported to kamikaze from xwrts whiterussian package
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5653 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
26
net/miniupnpd/patches/100-iptables-wan-device-name.patch
Normal file
26
net/miniupnpd/patches/100-iptables-wan-device-name.patch
Normal file
@ -0,0 +1,26 @@
|
||||
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=$(nvram get wan_device)
|
||||
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=$(nvram get wan_device)
|
||||
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
|
||||
|
||||
#removing the MINIUPNPD chain for nat
|
Reference in New Issue
Block a user