Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: colifato on October 11, 2006, 09:25:03 PM

Title: Help with Squid
Post by: colifato on October 11, 2006, 09:25:03 PM
How i can see the configuration of squid?
And more.. how i can modiffy the configuration of squid to change to transparent and how i can modify the amount of memory that can handle this?
Title: Re: Help with Squid
Post by: raem on October 12, 2006, 04:20:31 AM
colifato

Try these commands for starters and then search the forums for more specifics

config show squid

db
Title: Help with Squid
Post by: colifato on October 13, 2006, 05:48:17 PM
[root@servidor squid]# config show squid
squid=service
    EnforceSafePorts=no
    SafePorts=21,70,80,81,119,210,443,563,980,1024-65535
    TCPPort=3128
    TCPProxyPort=80:3128
    TransparentPort=3128
    access=private
    status=enabled

But i don“t know if i have running the squid in transparent mode...
Title: Help with Squid
Post by: colifato on October 13, 2006, 11:07:55 PM
Reading the Forum i find one command
/sbin/e-smith/db configuration setprop squid Transparent yes  

now i have running Squid in transparent mode
:)

[root@servidor ~]# /sbin/e-smith/config show squid
squid=service
    EnforceSafePorts=no
    SafePorts=21,70,80,81,119,210,443,563,980,1024-65535
    TCPPort=3128
    TCPProxyPort=80:3128
    Transparent=yes
    TransparentPort=3128
    access=private
    status=enabled

Thanxs all
Title: Help with Squid
Post by: raem on October 24, 2006, 04:13:12 AM
colifato

> /sbin/e-smith/db configuration setprop squid Transparent yes  
> now i have running Squid in transparent mode

Did that command make any difference, I thought squid was in Transparent mode by default.
Title: Help with Squid
Post by: robwellesley on November 15, 2006, 02:36:40 PM
Quote from: "RayMitchell"
colifato

> /sbin/e-smith/db configuration setprop squid Transparent yes  
> now i have running Squid in transparent mode

Did that command make any difference, I thought squid was in Transparent mode by default.


You're correct Ray...

 cat /etc/e-smith/templates/etc/rc.d/init.d/masq/90adjustTransProxy

<SNIP>
    }
    my $transproxy = $squid{Transparent} || "yes";
    my $status = $squid{status} || "disabled";
    if ($transproxy eq "yes" && $status eq "enabled")
    {
        my $proxyport = $squid{TransparentPort} || "3128";
</SNIP>

 so if Transparent isn't set it will return yes