FW: [squid-users] Problems running squid in Transparent mode.....

From: Steph <steph@dont-contact.us>
Date: Thu, 11 Aug 2005 11:32:03 +0200

Ok, this might sound completely crazy but for some reason the
Transparent proxy seems to be functioning 100% ok when I'm in the same
IP network as the Proxy server.

-----Original Message-----
From: Steph [mailto:steph@gabswave.net]
Sent: Wednesday, August 10, 2005 1:43 PM
To: squid-users@squid-cache.org
Subject: [squid-users] Problems running squid in Transparent mode.....

Hi There,

OS: Freebsd: 4.11
Squid: squid-2.5.STABLE7-20050124

My squid is running in Transparent mode where I have a bandwidth manager
called Etinc installed on the same box as which squid is running. Etinc
works as a bridge using policy based routing to forward all packets on
port 80 to my localhost where I in turn use ipfw (ipfw 10 fwd
127.0.0.1,3128 tcp from any to any 80 in) to pass all packets to squid.

Squid caches everything correctly but for some reason it seems like it
fetches everything again from the source rather then to just pass it
from the cache to the user. I've made a small test by downloading a
900Kb file and then re-download it a second time after the first
download finished and I'm basically getting the same speed the second
time as the first. I've checked my access log and I'm defnately getting
a HIT. This is when I'm using transparent mode. If I specify the proxy
in my browser it downloads the 900Kb file in seconds the second time.

Thanks for the help in advance.

Squid Access.log
-----------------
1123617373.658 249645 10.6.0.24 TCP_HIT/200 964576 GET
http://definitions.symantec.com /defs/20050808-007-i32-1.exe - NONE/-
application/octet-stream

-----------------
Squid Config
-----------------
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

---------
ipfw Rule
---------
ipfw 10 fwd 127.0.0.1,3128 tcp from any to any 80 in

-----------
Etinc Rule
-----------
/usr/hdlc/utils/bwmgr em1 -x 100 -fw -ipprot tcp -i -dport 80 -proxydev
lo0
Received on Thu Aug 11 2005 - 03:32:50 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:01 MDT