Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a squid configuration with the directive:

deny_info ERR_PROXY_INFO all

And tested this by setting squids port to 8080, then setting my browser proxy to

This does display the custom error page. But when I try to make it transparent with:

iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT --to-port 8080

It doesn't work and I get this browsing error:


The requested URL could not be retrieved

Invalid Request error was encountered while trying to process the request:

GET / HTTP/1.1 Host: Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,/;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: XXX

Some possible problems are:

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.

Generated Tue, 28 Sep 2010 02:02:05 GMT by networkServer (squid/2.7.STABLE7)

share|improve this question

Found the problem, I hadn't set up the transparent proxy correctly:

http_port 8080 ---> http_port 8080 transparent

How very n00b of me

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.