[squid-users] squid on it's own server
Antony Stone
Antony.Stone at squid.open.source.it
Fri Jan 27 09:18:13 UTC 2017
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.
More information about the squid-users
mailing list