Quantcast

squid on it's own server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

squid on it's own server

John Pearson
hi all, my current setup: laptop(10.0.1.10) and squid-box(10.0.1.11) and debian router(10.0.1.1).

I am doing wget on laptop


I am redirecting packets on the router to squid-box by changing the destination MAC address and destination IP and port address. I am able to see the packets reaching the squid-box and in squid log I am seeing many

10.0.1.11 TCP_MISS/503 47502 GET http://squid-cache.org/ - ORIGINAL_DST/10.0.1.11 text/html

The log stream is really fast. All I see on laptop is “HTTP request sent, awaiting response …" Any advice? thanks!

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: squid on it's own server

Antony Stone
On Friday 27 January 2017 at 05:17:28, John Pearson wrote:

> hi all, my current setup: laptop(10.0.1.10) and squid-box(10.0.1.11) and
> debian router(10.0.1.1).
>
> I am doing wget on laptop
>
> wget squid-cache.org
>
> I am redirecting packets on the router to squid-box by changing the
> destination MAC address

Well, that's a novel way of doing policy routiong...

> and destination IP and port address.

Oh dear.

> I am able to see the packets reaching the squid-box and in squid log I am
> seeing many
>
> 10.0.1.11 TCP_MISS/503 47502 GET http://squid-cache.org/ - ORIGINAL_DST/
> 10.0.1.11 text/html
>
> The log stream is really fast. All I see on laptop is “HTTP request sent,
> awaiting response …" Any advice? thanks!

Yes, do NOT change the destination IP address on ANY machine except the one
which Squid is running on.

See http://wiki.squid-cache.org/ConfigExamples/Intercept/LinuxRedirect and pay
attention to the part which says "This configuration is given for use *on the
squid box*."

Get the packets *to* that box however you like, but don't change them along
the way.


Antony.

--
It may not seem obvious, but (6 x 5 + 5) x 5 - 55 equals 5!

                                                   Please reply to the list;
                                                         please *don't* CC me.
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Loading...