you could also add a nat rule
chain=dstnat action=dst-nat to-addresses=192.121.122.3 to-ports=3128 protocol=tcp in-interface=ether3 dst-port=80
make sure you change the interface to the network that you want to use the proxy. Also this wont work if squid is on the same subnet as the clients you wish to use it.
dear brother....
i was configured as u tell the rules....
but when i want to surfe google then showing error like below...
please answer
ERROR
The requested URL could not be retrieved
Invalid Request error was encountered while trying to process the request:
GET / HTTP/1.1
Host:
www.google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: 115
Connection: keep-alive
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 Sun, 13 Feb 2011 10:27:43 GMT by salman-desktop (squid/2.7.STABLE7)