I have an freebsd 7.0 box with squid 2.6 stable 16 running.
I have another box with freebsd 7.0 and same squid 2.6 running with another
internet connection.
In the first squid i have the rules:
cache_peer ip_of_the_second_box parent 8080 3130 no-query default
(working fine)
and the rules
acl nospeedygonzalez urlpath_regex -i .exe .zip .cab .rar .bin .com .gz .hqz
.image .mpg .mpeg .mov .qt .movie .moov .sit .sea .t
ar .tiff .tif .z .7z .arj .sea .sitx .mds .iso .md5 .cue .ibp .ibq .tao
never_direct allow !nospeedygonzalez
always_direct allow nospeedygonzalez
My idea is that all content in nospeedygonzalez always go direct (using my
gateway) and all the content that there are not in nospeedygonzalez always
use the default_parent that i have with another internet connection.
Well, when i see the access.log i can see this.
1248131762.782 832 ip_of_the_second_box TCP_MISS/200 3432 GET
http://images.metaservices.microsoft.com/cover/075/drh300/h307/h30764dz5c6.jpg? -
DIRECT/65.54.93.146 image/jpeg
1248131764.082 2129 ip_of_the_second_box TCP_MISS/200 12398 GET
http://images.metaservices.microsoft.com/cover/200/drh300/h307/h30764dz5c6.jpg? -
DIRECT/65.54.93.141 image/jpeg
1248131796.543 670 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens2.jpg - DIRECT/64.136.20.58 -
1248131796.543 632 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens3.jpg - DIRECT/64.136.20.58 -
1248131796.897 336 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens4.jpg - DIRECT/64.136.20.58 -
1248131797.295 378 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens7.jpg - DIRECT/64.136.20.58 -
1248131797.645 331 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens8.jpg - DIRECT/64.136.20.58 -
1248131798.017 356 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens9.jpg - DIRECT/64.136.20.58 -
1248131798.228 1664 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens5.jpg - DIRECT/64.136.20.58 -
1248131798.236 2375 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens1.jpg - DIRECT/64.136.20.58 -
1248131798.253 1682 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thens6.jpg - DIRECT/64.136.20.58 -
1248131798.348 312 ip_of_the_second_box TCP_MISS/304 246 GET
http://www.folkloredelnorte.com.ar/images/thensa10.jpg -
DIRECT/64.136.20.58 -
1248131960.091 61381 ip_of_the_second_box TCP_MISS/200 121502 GET
http://www.imagengratis.org/images/alienwarea.jpg - DIRECT/74.63.78.41
image/jpeg
Same things for .gif and other extentions not included in nospeedygonzalez
(that i want always came from parent server and no direct), i have no other
rules in the squid.conf in conflict with this rules, squid seems no being
aplying my rules correctly.
Any idea ?
George From The Jungle.
____________________