diff options
Diffstat (limited to 'net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff')
-rw-r--r-- | net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff b/net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff new file mode 100644 index 000000000000..05b02efb09b2 --- /dev/null +++ b/net-misc/miniupnpd/files/miniupnpd-1.3-iptables_path.diff @@ -0,0 +1,59 @@ +diff -aurp old/netfilter/iptables_display.sh new/netfilter/iptables_display.sh +--- old/netfilter/iptables_display.sh 2009-04-19 20:17:14.000000000 +0000 ++++ new/netfilter/iptables_display.sh 2009-04-19 20:17:52.000000000 +0000 +@@ -1,6 +1,6 @@ + #! /bin/sh + # $Id: iptables_display.sh,v 1.3 2006/11/23 12:32:56 nanard Exp $ +-IPTABLES=iptables ++IPTABLES=/sbin/iptables + + #display all chains relative to miniupnpd + $IPTABLES -v -n -t nat -L PREROUTING +diff -aurp old/netfilter/iptables_flush.sh new/netfilter/iptables_flush.sh +--- old/netfilter/iptables_flush.sh 2009-04-19 20:17:14.000000000 +0000 ++++ new/netfilter/iptables_flush.sh 2009-04-19 20:17:52.000000000 +0000 +@@ -1,6 +1,6 @@ + #! /bin/sh + # $Id: iptables_flush.sh,v 1.2 2006/11/23 12:32:57 nanard Exp $ +-IPTABLES=iptables ++IPTABLES=/sbin/iptables + + #flush all rules owned by miniupnpd + $IPTABLES -t nat -F MINIUPNPD +diff -aurp old/netfilter/iptables_init.sh new/netfilter/iptables_init.sh +--- old/netfilter/iptables_init.sh 2009-04-19 20:17:14.000000000 +0000 ++++ new/netfilter/iptables_init.sh 2009-04-19 20:18:19.000000000 +0000 +@@ -1,6 +1,6 @@ + #! /bin/sh + # $Id: iptables_init.sh,v 1.4 2008/04/25 18:15:08 nanard Exp $ +-IPTABLES=iptables ++IPTABLES=/sbin/iptables + + #change this parameters : + EXTIF=eth0 +@@ -16,5 +16,5 @@ $IPTABLES -t nat -A PREROUTING -i $EXTIF + #adding the MINIUPNPD chain for filter + $IPTABLES -t filter -N MINIUPNPD + #adding the rule to MINIUPNPD +-$IPTABLES -t filter -A FORWARD -i $EXTIF -o ! $EXTIF -j MINIUPNPD ++$IPTABLES -t filter -A FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD + +diff -aurp old/netfilter/iptables_removeall.sh new/netfilter/iptables_removeall.sh +--- old/netfilter/iptables_removeall.sh 2009-04-19 20:17:14.000000000 +0000 ++++ new/netfilter/iptables_removeall.sh 2009-04-19 20:18:27.000000000 +0000 +@@ -1,6 +1,6 @@ + #! /bin/sh + # $Id: iptables_removeall.sh,v 1.4 2008/04/25 18:15:09 nanard Exp $ +-IPTABLES=iptables ++IPTABLES=/sbin/iptables + + #change this parameters : + EXTIF=eth0 +@@ -16,6 +16,6 @@ $IPTABLES -t nat -X MINIUPNPD + #removing the MINIUPNPD chain for filter + $IPTABLES -t filter -F MINIUPNPD + #adding the rule to MINIUPNPD +-$IPTABLES -t filter -D FORWARD -i $EXTIF -o ! $EXTIF -j MINIUPNPD ++$IPTABLES -t filter -D FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD + $IPTABLES -t filter -X MINIUPNPD + |