Re: [squid-users] Problem downloading large files

2012-04-20 Thread Iojan Sebastian

On 4/19/2012 6:22 AM, Leonardo wrote:

Bypassing the Linux bridge where the Squid runs solves the problem, so
apparently the problem lies at the Squid or OS level.

What OS are you?
I have seen 2 Gigs limits in Linux i386. Not sure where this applies.
Regards
Sebastian



Re: [squid-users] transparent caching

2012-03-20 Thread Iojan Sebastian

On 3/20/2012 1:23 PM, Zhu, Shan wrote:

Hi, all,

I have a fundamental question that, after studying books and on-line documents, 
I still cannot answer it myself.

That is, when configuring Squid for transparent caching, why do we need to 
forward HTTP from Port 80 to Port 3128? What makes it necessary? If we just let 
Squid to listen on Port 80, what would make the difference.

Can anyone help answer this question?

Thanks,
Shan
When you configure Squid to work as a transparent it gets the ability to 
understand http queries in two different protocols: as an http server 
and as an http proxy.
The client is not aware that the proxy is in the middle of it's 
connection. So it will speak as if it were talking to an http server in 
the internet.
So, for example, it will try to tcp connect using http protocol to an ip 
at 8.8.8.8:80
Even if you put squid to listen on port 80 on your gateway, the client 
is asking to connect to 8.8.8.8:80 in the internet, the connection will 
be routed there.


So, using the extremely powerful linux firewall, you are to redirect 
that connection to the correct IP:PORT your squid is listening.
In a sense you are changing the destination IP of the connection, like a 
-j DNAT.


This is different to the case where the client know of the proxy 
existence, and does a connection using proxy protocol to the proxy 
IP:PORT, and no redirection is needed.


Regards
Sebastian


Re: [squid-users] Non-static content not being cached

2012-03-20 Thread Iojan Sebastian

On 3/20/2012 7:32 AM, Michael Borejdo wrote:

What might be the reason for squid not caching specific content?
Being new to squid, What is the best way to debug this situation?
I can provide more logging info, if needed.


Hello Michael,
Sometimes is usefull to see how the server puts the http headers to 
understand why squid doesn't cache certain objects.

I usually use wget -S at the squid server
$export http_proxy="http://localhost:port"; ; wget -S http://some.site/object

Regards
Sebastian



Re: [squid-users] Squid 2.7 problem with url

2012-03-09 Thread Iojan Sebastian



Clue #1:


Via: 1.1 cache:31280 (Lusca/LUSCA_FMI)


This appears to be Lusca. Not Squid. Lusca is a commercial branch of 
Squid-2.7. Please contact Xenion for Lusca support.


Amos

Sorry, downloaded from google code, compiled, and installed, didn't know 
that it was commercial and/or it was far away from squid.


Thanks
Sebastian




[squid-users] Squid 2.7 problem with url

2012-03-09 Thread Iojan Sebastian

Hello
Going though squid in transparent mode
This url is loaded as text in the browser:
http://200.123.152.55/cgi-bin/ft.exe?q=images/edgedesk-logo-big.gif&site=clientes

Without squid loads an ugly images, but it loads.
I have used wget -S to see server headers, and they both put the 
content-type.
Now I notice that using squid even says Lenght, but connecting to server 
doesn't.

Does anybody have any clue?
Thanks in advance,
Sebastian

Ex:
With squid:

root@cache:/var/tmp/test# wget -S 
"http://200.123.152.55/cgi-bin/ft.exe?q=images/edgedesk-logo-big.gif&site=clientes";
--2012-03-09 17:41:13-- 
http://200.123.152.55/cgi-bin/ft.exe?q=images/edgedesk-logo-big.gif&site=clientes

Connecting to 127.0.0.1:31280... connected.
Proxy request sent, awaiting response...
HTTP/1.0 200 OK
Date: Fri, 09 Mar 2012 19:55:34 GMT
Server: Apache/2.0.54 (Fedora)
Content-Type: image/gif
Age: 2739
Content-Length: 4421
X-Cache: HIT from cache.netfly.com.ar
X-Cache-Lookup: HIT from cache.netfly.com.ar:31280
Via: 1.1 cache:31280 (Lusca/LUSCA_FMI)
Connection: close
Length: 4421 (4.3K) [image/gif]
Saving to: “ft.exe?q=images%2Fedgedesk-logo-big.gif&site=clientes.3”

100%[>] 
4,421 --.-K/s in 0s



Without:

root@cache:/var/tmp/test# wget -S 
"http://200.123.152.55/cgi-bin/ft.exe?q=images/edgedesk-logo-big.gif&site=clientes";
--2012-03-09 17:42:50-- 
http://200.123.152.55/cgi-bin/ft.exe?q=images/edgedesk-logo-big.gif&site=clientes

Connecting to 200.123.152.55:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Fri, 09 Mar 2012 20:38:28 GMT
Server: Apache/2.0.54 (Fedora)
Connection: close
Content-Type: image/gif
Length: unspecified [image/gif]
Saving to: “ft.exe?q=images%2Fedgedesk-logo-big.gif&site=clientes.4”

[ <=> ] 4,421 --.-K/s in 0s

2012-03-09 17:42:50 (19.3 MB/s) - 
“ft.exe?q=images%2Fedgedesk-logo-big.gif&site=clientes.4” saved [4421]