diff options
author | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2009-04-19 21:12:04 +0000 |
---|---|---|
committer | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2009-04-19 21:12:04 +0000 |
commit | f796f333ccfb9162bba7278347a25bf72e9946be (patch) | |
tree | e8b9b280623fa9c79fbbef4405639fa583942931 /net-misc/miniupnpd | |
parent | Marking ncbi-tools-20090301 ~ppc64 for bug 266569 (diff) | |
download | gentoo-2-f796f333ccfb9162bba7278347a25bf72e9946be.tar.gz gentoo-2-f796f333ccfb9162bba7278347a25bf72e9946be.tar.bz2 gentoo-2-f796f333ccfb9162bba7278347a25bf72e9946be.zip |
Fixing iptables commands in scripts
(Portage version: 2.2_rc29/cvs/Linux i686)
Diffstat (limited to 'net-misc/miniupnpd')
-rw-r--r-- | net-misc/miniupnpd/ChangeLog | 6 | ||||
-rw-r--r-- | net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff | 31 |
2 files changed, 28 insertions, 9 deletions
diff --git a/net-misc/miniupnpd/ChangeLog b/net-misc/miniupnpd/ChangeLog index 34e3b808aafa..8a42f2aafc96 100644 --- a/net-misc/miniupnpd/ChangeLog +++ b/net-misc/miniupnpd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-misc/miniupnpd # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v 1.5 2009/04/16 17:33:31 gurligebis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v 1.6 2009/04/19 21:12:03 gurligebis Exp $ + + 19 Apr 2009; Bjarke Istrup Pedersen <gurligebis@gentoo.org> + files/miniupnpd-20090214-iptables_path.diff: + Fixing iptables commands in scripts *miniupnpd-20090214 (16 Apr 2009) diff --git a/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff b/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff index 2b7042d78989..05b02efb09b2 100644 --- a/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff +++ b/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff @@ -1,6 +1,6 @@ diff -aurp old/netfilter/iptables_display.sh new/netfilter/iptables_display.sh ---- old/netfilter/iptables_display.sh 2008-10-27 20:53:09.000000000 +0000 -+++ new/netfilter/iptables_display.sh 2008-10-27 20:53:38.000000000 +0000 +--- 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 $ @@ -10,8 +10,8 @@ diff -aurp old/netfilter/iptables_display.sh new/netfilter/iptables_display.sh #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 2008-10-27 20:53:09.000000000 +0000 -+++ new/netfilter/iptables_flush.sh 2008-10-27 20:53:46.000000000 +0000 +--- 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 $ @@ -21,8 +21,8 @@ diff -aurp old/netfilter/iptables_flush.sh new/netfilter/iptables_flush.sh #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 2008-10-27 20:53:09.000000000 +0000 -+++ new/netfilter/iptables_init.sh 2008-10-27 20:54:39.000000000 +0000 +--- 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 $ @@ -31,9 +31,16 @@ diff -aurp old/netfilter/iptables_init.sh new/netfilter/iptables_init.sh #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 2008-10-27 20:53:09.000000000 +0000 -+++ new/netfilter/iptables_removeall.sh 2008-10-27 20:54:48.000000000 +0000 +--- 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 $ @@ -42,3 +49,11 @@ diff -aurp old/netfilter/iptables_removeall.sh new/netfilter/iptables_removeall. #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 + |