1 |
--- smeserver-coova-chilli-0.2/root/etc/chilli/call_condown.sh.sudo_env 2010-07-19 17:37:16.000000000 +0200 |
2 |
+++ smeserver-coova-chilli-0.2/root/etc/chilli/call_condown.sh 2010-07-19 17:41:15.000000000 +0200 |
3 |
@@ -1,5 +1,5 @@ |
4 |
#!/bin/bash |
5 |
|
6 |
-exec /usr/bin/sudo /etc/chilli/condown.sh |
7 |
+exec /usr/bin/sudo /etc/chilli/condown.sh $ADDR $FRAMED_IP_ADDRESS |
8 |
|
9 |
|
10 |
--- smeserver-coova-chilli-0.2/root/etc/chilli/condown.sh.sudo_env 2010-07-19 17:37:16.000000000 +0200 |
11 |
+++ smeserver-coova-chilli-0.2/root/etc/chilli/condown.sh 2010-07-19 17:41:34.000000000 +0200 |
12 |
@@ -5,9 +5,9 @@ |
13 |
|
14 |
if [[ $SQUID_STATUS == 'enabled' && $WEB_REQ == 'squid' ]]; then |
15 |
SQUID_PORT=$(/sbin/e-smith/db configuration getprop squid TransparentPort) |
16 |
- /sbin/iptables -D IN_FROM_CHILLI -s $FRAMED_IP_ADDRESS \ |
17 |
+ /sbin/iptables -D IN_FROM_CHILLI -s $2 \ |
18 |
-p tcp --dport $SQUID_PORT --syn -j ACCEPT |
19 |
- /sbin/iptables -t nat -D PREROUTING_FROM_CHILLI -s $FRAMED_IP_ADDRESS \ |
20 |
- -p tcp --dport 80 -j DNAT --to $ADDR:$SQUID_PORT |
21 |
+ /sbin/iptables -t nat -D PREROUTING_FROM_CHILLI -s $2 \ |
22 |
+ -p tcp --dport 80 -j DNAT --to $1:$SQUID_PORT |
23 |
fi |
24 |
|
25 |
--- smeserver-coova-chilli-0.2/root/etc/chilli/conup.sh.sudo_env 2010-07-19 17:37:16.000000000 +0200 |
26 |
+++ smeserver-coova-chilli-0.2/root/etc/chilli/conup.sh 2010-07-19 17:40:47.000000000 +0200 |
27 |
@@ -5,9 +5,9 @@ |
28 |
|
29 |
if [[ $SQUID_STATUS == 'enabled' && $WEB_REQ == 'squid' ]]; then |
30 |
SQUID_PORT=$(/sbin/e-smith/db configuration getprop squid TransparentPort) |
31 |
- /sbin/iptables -t nat -I PREROUTING_FROM_CHILLI 4 -s $FRAMED_IP_ADDRESS \ |
32 |
- -p tcp --dport 80 -j DNAT --to $ADDR:$SQUID_PORT |
33 |
- /sbin/iptables -I IN_FROM_CHILLI 7 -s $FRAMED_IP_ADDRESS \ |
34 |
+ /sbin/iptables -t nat -I PREROUTING_FROM_CHILLI 4 -s $2 \ |
35 |
+ -p tcp --dport 80 -j DNAT --to $1:$SQUID_PORT |
36 |
+ /sbin/iptables -I IN_FROM_CHILLI 7 -s $2 \ |
37 |
-p tcp --dport $SQUID_PORT --syn -j ACCEPT |
38 |
fi |
39 |
|
40 |
--- smeserver-coova-chilli-0.2/root/etc/chilli/call_conup.sh.sudo_env 2010-07-19 17:37:16.000000000 +0200 |
41 |
+++ smeserver-coova-chilli-0.2/root/etc/chilli/call_conup.sh 2010-07-19 17:39:25.000000000 +0200 |
42 |
@@ -1,4 +1,4 @@ |
43 |
#!/bin/bash |
44 |
|
45 |
-exec /usr/bin/sudo /etc/chilli/conup.sh |
46 |
+exec /usr/bin/sudo /etc/chilli/conup.sh $ADDR $FRAMED_IP_ADDRESS |
47 |
|