I am tring to use squid to cache information from websites. It works fine when I configure it in the web browser setting manualy, but I would like it to work without haveing to set the web browsers. I used this command
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
So that it forces anything going though port 80 to go though the proxy. For some strange reson when I do this it leave out the domain when I try to connect to websites.
This is basicly what I get.
ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: /isapi/redir.dll?prd=ie&pver=6&ar=msnhome
The following error was encountered:
Invalid URL
Some aspect of the requested URL is incorrect. Possible problems:
Missing or incorrect access protocol (should be `
http://'' or similar)
Missing hostname
Illegal double-escape in the URL-Path
Illegal character in hostname; underscores are not allowed
Your cache administrator is webmaster.
--------------------------------------------------------------------------------
Generated Thu, 28 Aug 2003 14:43:20 GMT by Kizaki.GPN (squid/2.5.STABLE3)
in this case it was a microsoft site I was tring to connect to and it left out
www.microsoft.com
"/isapi/redir.dll?prd=ie&pver=6&ar=msnhome"