Re: [squid-users] Re: SquidGuard redirect to parent proxy (Off-Topic)

2014-03-14 Thread Christian Scholz

Am 2014-03-13 21:32, schrieb Amos Jeffries:

On 2014-03-14 05:21, Christian Scholz wrote:

Hi,

I know that my question is a little bit off-topic but nevertheless I
hope that some can help me :-)
I've configured squid3 with squidguard and one parent-proxy. In the
case of access violation squidguard redirects the user to a customized
block page hosted by the proxy himself.

Unfortunately the proxy tries to access the local blockpage over his
parent proxy. Does some have an idea why?



1) this is a re-write, not a redirect.
 HTTP redirects have a 3xx status code prefixing the URL in squidguard 
config.

   redirect 302:http://example.com/   # redirect client to example.com
   redirect http://example.com/   # re-write URL to
http://example.com and fetch

2) you probably also have no cache_peer_access rules preventing the
parent from being a source for these
ttp://proxyname.localsuffix/... URLs.


Amos


Okay, I've fixed it with the following lines
acl local-domain dstdomain proxyname.localsuffix
always_direct allow local-domain

Thanks!


[squid-users] Re: SquidGuard redirect to parent proxy (Off-Topic)

2014-03-13 Thread babajaga
You need to make sure, that something like this is in your squid.conf:

acl local-server dstdomain .mydomain.com
acl blockeddomains dstdomain blockeddomains.lst #file  contains list of
blocked domains 
http_access deny blockeddomains
deny_info http://mydomain.com/blocked.html blockeddomains #mydomain.com is
hosted on #local_host/same machine as squid
.

always_direct allow local-server #To access mydomain.com NOT via
parent proxy
never_direct allow all


MfG :-)



--
View this message in context: 
http://squid-web-proxy-cache.1019090.n4.nabble.com/SquidGuard-redirect-to-parent-proxy-Off-Topic-tp4665178p4665187.html
Sent from the Squid - Users mailing list archive at Nabble.com.