Re: [squid-users] Ignoring redirects if the redirector wants squid to do so?

From: Richard Hartmann <richih.mailinglist@dont-contact.us>
Date: Wed, 26 Sep 2007 16:32:42 +0200

On 26/09/2007, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:

> Yes, it's how it works. If you see anything else then maybe the redirect
> was already cached by the browser.

Sorry, I don't understand _which_ behaviour you mean. The described one
or my desired one?

> What is said in access.log?

access.log says nothing at all, but with

  debug_options ALL,1 61,9

in my squid.conf, cache.log looks as follows:

2007/09/26 16:06:46| Starting Squid Cache version 2.6.STABLE5 for
i386-debian-linux-gnu...
2007/09/26 16:06:46| Process ID 24833
2007/09/26 16:06:46| With 1024 file descriptors available
2007/09/26 16:06:46| Using epoll for the IO loop
2007/09/26 16:06:46| parseEtcHosts: /etc/hosts: (2) No such file or directory
2007/09/26 16:06:46| DNS Socket created at 0.0.0.0, port 33058, FD 6
2007/09/26 16:06:46| Adding nameserver 141.1.1.1 from /etc/resolv.conf
2007/09/26 16:06:46| helperOpenServers: Starting 20 'redirector.pl' processes
2007/09/26 16:06:47| User-Agent logging is disabled.
2007/09/26 16:06:47| Referer logging is disabled.
2007/09/26 16:06:47| Unlinkd pipe opened on FD 30
2007/09/26 16:06:47| Swap maxSize 102400 KB, estimated 7876 objects
2007/09/26 16:06:47| Target number of buckets: 393
2007/09/26 16:06:47| Using 8192 Store buckets
2007/09/26 16:06:47| Max Mem size: 8192 KB
2007/09/26 16:06:47| Max Swap size: 102400 KB
2007/09/26 16:06:47| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2007/09/26 16:06:47| Rebuilding storage in /var/spool/squid (CLEAN)
2007/09/26 16:06:47| Using Least Load store dir selection
2007/09/26 16:06:47| Set Current Directory to /var/spool/squid
2007/09/26 16:06:47| Loaded Icons.
2007/09/26 16:06:47| Accepting proxy HTTP connections at 0.0.0.0, port
3128, FD 32.
2007/09/26 16:06:47| Accepting ICP messages at 0.0.0.0, port 3130, FD 33.
2007/09/26 16:06:47| HTCP Disabled.
2007/09/26 16:06:47| WCCP Disabled.
2007/09/26 16:06:47| Ready to serve requests.
2007/09/26 16:06:47| Done reading /var/spool/squid swaplog (0 entries)
2007/09/26 16:06:47| Finished rebuilding storage from disk.
2007/09/26 16:06:47| 0 Entries scanned
2007/09/26 16:06:47| 0 Invalid entries.
2007/09/26 16:06:47| 0 With invalid flags.
2007/09/26 16:06:47| 0 Objects loaded.
2007/09/26 16:06:47| 0 Objects expired.
2007/09/26 16:06:47| 0 Objects cancelled.
2007/09/26 16:06:47| 0 Duplicate URLs purged.
2007/09/26 16:06:47| 0 Swapfile clashes avoided.
2007/09/26 16:06:47| Took 0.5 seconds ( 0.0 objects/sec).
2007/09/26 16:06:47| Beginning Validation Procedure
2007/09/26 16:06:47| Completed Validation Procedure
2007/09/26 16:06:47| Validated 0 Entries
2007/09/26 16:06:47| store_swap_size = 0k
2007/09/26 16:06:48| storeLateRelease: released 0 objects
2007/09/26 16:06:51| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/'
2007/09/26 16:06:51| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:51| redirectStart:
'http://fw1-muc___192.168.69.85___-@spiegel.ivwbox.de/cgi-bin/ivw/CP/1001;/home/c-18/be-PB64-aG9tZXBhZ2UvY2VudGVy/szwprofil-1001?r=&d=9450.766762535046'
2007/09/26 16:06:51| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/cgi-bin/vdz/CP/spiegel/home/c-18/be-PB64-aG9tZXBhZ2UvY2VudGVy/szwprofil-1001'
2007/09/26 16:06:51| redirectStart:
'http://fw1-muc___192.168.69.85___-@pistat.spiegel.de/pistats/cgi-bin/s-1/c-18/atyp-1000/aid-18/be-PB64-aG9tZXBhZ2UvY2VudGVy/szw-1001?d=68974.01529073359'
2007/09/26 16:06:51| redirectStart:
'http://fw1-muc___192.168.69.85___-@adserv.quality-channel.de/RealMedia/ads/adstream_mjx.ads/www.spiegel.de/homepage/center/1443334594@Top1,Top2,TopRight,Left,Right,Right1
,Right2,Right3,Right4,Right5,Middle,Middle1,Middle2,Bottom,Bottom1,Bottom2,Bottom3,Position1,Position2,x01,x02,x03,x04,x05,x06,x07,x08,x09,x10,x11,x12,x20,x21,x22,x70,VMiddle2,VMiddle,VRight'
2007/09/26 16:06:51| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:51| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:51| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:51| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:51| redirectStart:
'http://fw1-muc___192.168.69.85___-@spiegel.nuggad.net/?setadck;'
2007/09/26 16:06:52| redirectHandleRead:
{http://spiegel.nuggad.net/?setadck; 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@adserv.quality-channel.de/RealMedia/ads/cap.cgi?c=nuggcook&va=s1,a2,au2,fi3,rei2,sp2,ce1,ct1,af2,su3,ko3,,prof&e=1y&s=1'
2007/09/26 16:06:52| redirectHandleRead:
{http://adserv.quality-channel.de/RealMedia/ads/cap.cgi?c=nuggcook&va=s1,a2,au2,fi3,rei2,sp2,ce1,ct1,af2,su3,ko3,,prof&e=1y&s=1
192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@adserv.quality-channel.de/RealMedia/ads/adstream_lx.ads/www.spiegel.de/homepage/center/803877452/Top1/qc/ON39XX4129XX5/ON38XX4312XX1_1.
html/36322e3131312e36342e3636?_RM_EMPTY_'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@adserv.quality-channel.de/5/www.spiegel.de/homepage/center/1622857118/Middle/qc/sp-zaehler-011/zaehler.gif/36322e3131312e36342e3636?_RM
_EMPTY_'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@ad.de.doubleclick.net/ad/N4362.quality-channel/B2461800.2;sz=1x1;ord=2007.09.26.14.06.51?'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/img/0,1020,978789,00.jpg'
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectHandleRead:
{http://ad.de.doubleclick.net/ad/N4362.quality-channel/B2461800.2;sz=1x1;ord=2007.09.26.14.06.51?
192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@adserv.quality-channel.de/5/www.spiegel.de/homepage/center/28871338/x21/qc/ON11XX4077X40/safranski186x96_ani.gif/36322e3131312e36342e36
36?_RM_EMPTY_'
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/static/sys/boerse/boersenreiter-220-dax.gif'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/static/sys/boerse/spiegeltrans_dax.gif'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/static/sys/boerse/boersenreiter-220-tecdax.gif'
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/static/sys/boerse/spiegeltrans_tecdax.gif'
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@adfarm.mediaplex.com/ad/js/707-1170-6743-9?mpt=2007.09.26.14.06.51&mpvc=http://adserv.quality-channel.de/RealMedia/ads/click_lx.ads/www.spiegel.de/homepage/center/1618085692/Right1/qc/ON18X4230XHOME/ON21X3851XHOME_3.html/36322e3131312e36342e3636?'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/static/sys/boerse/boersenreiter-220-dow.gif'
2007/09/26 16:06:52| redirectStart:
'http://fw1-muc___192.168.69.85___-@www.spiegel.de/static/sys/boerse/spiegeltrans_dow.gif'
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:52| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:53| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:53| redirectStart:
'http://fw1-muc___192.168.69.85___-@img.mediaplex.com/cgi-bin/html/0/707/1170/707-1170-6743-9_rl07html_q307-6_p-j_200x300.js?mpck=adfarm.mediaplex.com%2Fad%2Fck%2F707-1170-6743-9%3Fmpt%3D2007.09.26.14.06.51&mpt=2007.09.26.14.06.51&mpvc=http://adserv.quality-channel.de/RealMedia/ads/click_lx.ads/www.spiegel.de/homepage/center/1618085692/Right1/qc/ON18X4230XHOME/ON21X3851XHOME_3.html/36322e3131312e36342e3636?'
2007/09/26 16:06:53| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:06:54| redirectStart:
'http://fw1-muc___192.168.69.85___-@adserv.quality-channel.de/RealMedia/ads/adstream_lx.ads/www.spiegel.de/homepage/center/1618085692/Right1/qc/ON18X4230XHOME/ON21X3851XHOME_3.html/36322e3131312e36342e3636?_RM_EMPTY_'
2007/09/26 16:06:54| redirectHandleRead: {heise.de 192.168.1.1/- - GET}
2007/09/26 16:07:08| Preparing for shutdown after 21 requests
2007/09/26 16:07:08| Waiting 30 seconds for active connections to finish
2007/09/26 16:07:08| FD 32 Closing HTTP connection
2007/09/26 16:07:39| Shutting down...
2007/09/26 16:07:39| FD 33 Closing ICP connection
2007/09/26 16:07:39| Closing unlinkd pipe on FD 30
2007/09/26 16:07:39| storeDirWriteCleanLogs: Starting...
2007/09/26 16:07:39| Finished. Wrote 0 entries.
2007/09/26 16:07:39| Took 0.0 seconds ( 0.0 entries/sec).
CPU Usage: 0.048 seconds = 0.016 user + 0.032 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
    total space in arena: 2376 KB
    Ordinary blocks: 2284 KB 41 blks
    Small blocks: 0 KB 0 blks
    Holding blocks: 240 KB 1 blks
    Free Small blocks: 0 KB
    Free Ordinary blocks: 91 KB
    Total in use: 2524 KB 96%
    Total free: 91 KB 3%
2007/09/26 16:07:39| Squid Cache (Version 2.6.STABLE5): Exiting normally.

The fw1-muc___192.168.69.85___- part is a magic string to get data from
the tier 1 proxies to the tier 2 proxies.

Expected behaviour: Disallow access to spiegel.de and force the user to
go to heise.de , instead.

If I should use any other debug statements or if you need any other
info, please let me know.

Thanks,
Richard
Received on Wed Sep 26 2007 - 08:32:47 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:03 MDT