Koozali.org: home of the SME Server

Help with Squid

colifato

Help with Squid
« 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?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Help with Squid
« Reply #1 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
...

colifato

Help with Squid
« Reply #2 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...

colifato

Help with Squid
« Reply #3 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

Offline raem

  • *
  • 3,972
  • +4/-0
Help with Squid
« Reply #4 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.
...

Offline robwellesley

  • *
  • 92
  • +0/-0
Help with Squid
« Reply #5 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