2006-11-26 23:44:09 +00:00
|
|
|
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
|
2006-12-05 06:24:30 +00:00
|
|
|
+EXTIF=$(uci get network.wan.ifname)
|
2006-11-26 23:44:09 +00:00
|
|
|
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
|
2006-12-05 06:24:30 +00:00
|
|
|
+EXTIF=$(uci get network.wan.ifname)
|
2006-11-26 23:44:09 +00:00
|
|
|
EXTIP="`LC_ALL=C /sbin/ifconfig $EXTIF | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`"
|
|
|
|
|
|
|
|
#removing the MINIUPNPD chain for nat
|