[squid-users] transparent proxy problem

From: Soo Chun Keat <cksoo@dont-contact.us>
Date: Wed, 15 Dec 2004 07:31:31 +0800

Hi guys,

I try to implement a transparent proxy using squid 2.5 in Redhat 9 platform,
but I can't make the transparent proxy function properly although I follow
what state in the books web caching does.

My iptables rules as below:
Iptables -t nat -A PREROUTING -I eth0 -s ! 172.12.3.8 -p tcp --dport 80 DNAT
--to 172.12.3.8:3128

Iptables -t nat -A POSTROUTING -o eth0 -s 172.12.3.0/24 -d 172.12.3.8 -j
SNAT --to 172.12.3.35

Iptables -A FORWARD -s 172.12.3.0/24 -d 172.12.3.8 -I eth0 -eth0 -p tcp
--dport 3128 -j ACCEPT

Iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

However, when I use my browser to surf net I get the error as below:

The dnsserver returned:
Server Failure: the name server was unable to process this query

The cache was not able to resolve the hostname presented in the URL.

Hope some can point out my mistake.

Thanks
Received on Tue Dec 14 2004 - 16:35:55 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST