1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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
|