1 |
--- smeserver-coova-chilli-0.2/root/etc/chilli/conup.sh.fixe_squid_disabled 2008-09-02 13:27:58.000000000 +0200 |
2 |
+++ smeserver-coova-chilli-0.2/root/etc/chilli/conup.sh 2010-04-14 18:29:59.000000000 +0200 |
3 |
@@ -3,7 +3,7 @@ |
4 |
SQUID_STATUS=$(/sbin/e-smith/db configuration getprop squid status) |
5 |
WEB_REQ=$(/sbin/e-smith/db configuration getprop chilli WebRequests) |
6 |
|
7 |
-if [[ $SQUID_STATUS=='enabled' && $WEB_REQ=='squid' ]]; then |
8 |
+if [[ $SQUID_STATUS == 'enabled' && $WEB_REQ == 'squid' ]]; then |
9 |
SQUID_PORT=$(/sbin/e-smith/db configuration getprop squid TransparentPort) |
10 |
/sbin/iptables -t nat -I PREROUTING_FROM_CHILLI 4 -s $FRAMED_IP_ADDRESS \ |
11 |
-p tcp --dport 80 -j DNAT --to $ADDR:$SQUID_PORT |
12 |
--- smeserver-coova-chilli-0.2/root/etc/chilli/condown.sh.fixe_squid_disabled 2008-09-02 13:27:57.000000000 +0200 |
13 |
+++ smeserver-coova-chilli-0.2/root/etc/chilli/condown.sh 2010-04-14 18:29:29.000000000 +0200 |
14 |
@@ -3,7 +3,7 @@ |
15 |
SQUID_STATUS=$(/sbin/e-smith/db configuration getprop squid status) |
16 |
WEB_REQ=$(/sbin/e-smith/db configuration getprop chilli WebRequests) |
17 |
|
18 |
-if [[ $SQUID_STATUS=='enabled' && $WEB_REQ=='squid' ]]; then |
19 |
+if [[ $SQUID_STATUS == 'enabled' && $WEB_REQ == 'squid' ]]; then |
20 |
SQUID_PORT=$(/sbin/e-smith/db configuration getprop squid TransparentPort) |
21 |
/sbin/iptables -D IN_FROM_CHILLI -s $FRAMED_IP_ADDRESS \ |
22 |
-p tcp --dport $SQUID_PORT --syn -j ACCEPT |