/[smecontribs]/rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli-0.2-fixe_squid_disabled.patch
ViewVC logotype

Contents of /rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli-0.2-fixe_squid_disabled.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Apr 14 16:38:56 2010 UTC (14 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-coova-chilli-0_2-17_el4_sme, smeserver-coova-chilli-0_2-16_el4_sme, smeserver-coova-chilli-0_2-19_el4_sme, smeserver-coova-chilli-0_2-18_el4_sme, smeserver-coova-chilli-0_2-20_el4_sme, HEAD
* Wed Apr 14 2010 Daniel B. <daniel@firewall-services.com> 0.2-16
- Fixe a bug in conup.sh and condown.sh

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed