Gentoo Archives: gentoo-commits

From: "Bjarke Istrup Pedersen (gurligebis)" <gurligebis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/miniupnpd/files: miniupnpd-20090214-iptables_path.diff
Date: Sun, 19 Apr 2009 21:12:05
Message-Id: E1LveJ2-00026H-Cx@stork.gentoo.org
1 gurligebis 09/04/19 21:12:04
2
3 Modified: miniupnpd-20090214-iptables_path.diff
4 Log:
5 Fixing iptables commands in scripts
6 (Portage version: 2.2_rc29/cvs/Linux i686)
7
8 Revision Changes Path
9 1.2 net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff?r1=1.1&r2=1.2
14
15 Index: miniupnpd-20090214-iptables_path.diff
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/files/miniupnpd-20090214-iptables_path.diff,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- miniupnpd-20090214-iptables_path.diff 16 Apr 2009 17:33:30 -0000 1.1
22 +++ miniupnpd-20090214-iptables_path.diff 19 Apr 2009 21:12:04 -0000 1.2
23 @@ -1,6 +1,6 @@
24 diff -aurp old/netfilter/iptables_display.sh new/netfilter/iptables_display.sh
25 ---- old/netfilter/iptables_display.sh 2008-10-27 20:53:09.000000000 +0000
26 -+++ new/netfilter/iptables_display.sh 2008-10-27 20:53:38.000000000 +0000
27 +--- old/netfilter/iptables_display.sh 2009-04-19 20:17:14.000000000 +0000
28 ++++ new/netfilter/iptables_display.sh 2009-04-19 20:17:52.000000000 +0000
29 @@ -1,6 +1,6 @@
30 #! /bin/sh
31 # $Id: iptables_display.sh,v 1.3 2006/11/23 12:32:56 nanard Exp $
32 @@ -10,8 +10,8 @@
33 #display all chains relative to miniupnpd
34 $IPTABLES -v -n -t nat -L PREROUTING
35 diff -aurp old/netfilter/iptables_flush.sh new/netfilter/iptables_flush.sh
36 ---- old/netfilter/iptables_flush.sh 2008-10-27 20:53:09.000000000 +0000
37 -+++ new/netfilter/iptables_flush.sh 2008-10-27 20:53:46.000000000 +0000
38 +--- old/netfilter/iptables_flush.sh 2009-04-19 20:17:14.000000000 +0000
39 ++++ new/netfilter/iptables_flush.sh 2009-04-19 20:17:52.000000000 +0000
40 @@ -1,6 +1,6 @@
41 #! /bin/sh
42 # $Id: iptables_flush.sh,v 1.2 2006/11/23 12:32:57 nanard Exp $
43 @@ -21,8 +21,8 @@
44 #flush all rules owned by miniupnpd
45 $IPTABLES -t nat -F MINIUPNPD
46 diff -aurp old/netfilter/iptables_init.sh new/netfilter/iptables_init.sh
47 ---- old/netfilter/iptables_init.sh 2008-10-27 20:53:09.000000000 +0000
48 -+++ new/netfilter/iptables_init.sh 2008-10-27 20:54:39.000000000 +0000
49 +--- old/netfilter/iptables_init.sh 2009-04-19 20:17:14.000000000 +0000
50 ++++ new/netfilter/iptables_init.sh 2009-04-19 20:18:19.000000000 +0000
51 @@ -1,6 +1,6 @@
52 #! /bin/sh
53 # $Id: iptables_init.sh,v 1.4 2008/04/25 18:15:08 nanard Exp $
54 @@ -31,9 +31,16 @@
55
56 #change this parameters :
57 EXTIF=eth0
58 +@@ -16,5 +16,5 @@ $IPTABLES -t nat -A PREROUTING -i $EXTIF
59 + #adding the MINIUPNPD chain for filter
60 + $IPTABLES -t filter -N MINIUPNPD
61 + #adding the rule to MINIUPNPD
62 +-$IPTABLES -t filter -A FORWARD -i $EXTIF -o ! $EXTIF -j MINIUPNPD
63 ++$IPTABLES -t filter -A FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD
64 +
65 diff -aurp old/netfilter/iptables_removeall.sh new/netfilter/iptables_removeall.sh
66 ---- old/netfilter/iptables_removeall.sh 2008-10-27 20:53:09.000000000 +0000
67 -+++ new/netfilter/iptables_removeall.sh 2008-10-27 20:54:48.000000000 +0000
68 +--- old/netfilter/iptables_removeall.sh 2009-04-19 20:17:14.000000000 +0000
69 ++++ new/netfilter/iptables_removeall.sh 2009-04-19 20:18:27.000000000 +0000
70 @@ -1,6 +1,6 @@
71 #! /bin/sh
72 # $Id: iptables_removeall.sh,v 1.4 2008/04/25 18:15:09 nanard Exp $
73 @@ -42,3 +49,11 @@
74
75 #change this parameters :
76 EXTIF=eth0
77 +@@ -16,6 +16,6 @@ $IPTABLES -t nat -X MINIUPNPD
78 + #removing the MINIUPNPD chain for filter
79 + $IPTABLES -t filter -F MINIUPNPD
80 + #adding the rule to MINIUPNPD
81 +-$IPTABLES -t filter -D FORWARD -i $EXTIF -o ! $EXTIF -j MINIUPNPD
82 ++$IPTABLES -t filter -D FORWARD -i $EXTIF ! -o $EXTIF -j MINIUPNPD
83 + $IPTABLES -t filter -X MINIUPNPD
84 +