Hi everyone,

I configured squid+squidguard first, to work without transparent proxy,
config my browser to use proxy, 192.168.1.1(gw) port 3128.

All my block rules works very fine! and when I try to access any forbiden
content, I've been sent to my html block page on the server by the
redirect rule in the squidquard:

Ex:  "redirect http://192.168.1.1/blocked.html";


After that I configure squid to work with transparent proxy including the
following configuration :

http_port 3128 transparent vhost vport
always_direct allow all

at the end of squid.conf file,

and activate the corresponding iptables rule.


Here is the problem:

Ok. All my block rules continue to work properly, but when I access
forbiden content the html block page dont work and the following
error occurs for example trying to access "blablabla.weblog.com.pt"
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
ERROR
The requested URL could not be retrieved

While trying to process the request:

GET / HTTP/1.1
Host: blablabla.weblog.com.pt
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4)
Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1)
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer:
http://www.google.com.br/search?hl=pt-BR&q=blablabla&btnG=Pesquisa+Google&meta=



The following error was encountered:

    * Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:

    * Missing or unknown request method
    * Missing URL
    * Missing HTTP Identifier (HTTP/1.0)
    * Request is too large
    * Content-Length missing for POST or PUT requests
    * Illegal character in hostname; underscores are not allowed

Your cache administrator is webmaster.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


I just put "192.168.1.1" in my good sites but dont work yet.

SQUID 2.6.2
SQUIDGUARD 1.2.0
DEBIAN testing/unstable


any help will be aprecciate!

cheers,

cperes

Reply via email to