Re: [squid-users] Why squid doesn't log anything when applying transparent proxy?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 06 Jul 2014 22:29:42 +1200

On 2014-07-05 21:29, Mark jensen wrote:
> I have deploy Transparent proxy using this tutorials:
>
> on L3 switch:
>
> http://wiki.squid-cache.org/ConfigExamples/Intercept/Cisco2501PolicyRoute
>
> on centos 6.5 box ( squid ):
>
> http://wiki.squid-cache.org/ConfigExamples/Intercept/LinuxRedirect
>
>
> when I request the web page from one client, It returns to me, so I
> thought that transparent proxy works fine.
>
> but the problem is that I can't find any records in the "access.log"
> file, so it seems that the client get the page from the server
> directly.
>
> 1- Is the problem that squid doesn't log when it is in a transparent
> mode?

Nope. Squid log what you have permitted or requested to log regardless
of the type/mode of input.

>
> 2- Or is the client get the page directly from the server( if so, how
> can I add a rule to the Iptables or an access list to forbid the
> client from getting the page directly from the server) ?

Seems to be this. And yes you can:
  * in the "filter" table deny access to port 80, except make sure that
Squid can still fetch from port 80.

Amos
Received on Sun Jul 06 2014 - 10:29:53 MDT

This archive was generated by hypermail 2.2.0 : Sun Jul 06 2014 - 12:00:05 MDT