[squid-users] Debian Squeeze/Squid/ --enable-http-violations / header_replace User-Agent no effect

From: J4K <junk4_at_klunky.co.uk>
Date: Thu, 04 Aug 2011 10:45:57 +0200


        I have recompiled squid3 on Debian Squeeze because the Debian repo' deb
omits the --enable-ssl' '--enable-http-violations' options.

For testing purposes I added this into the squid.conf:
        header_replace User-Agent Mozilla

However, the user agent is not replaced when the client connects with a
test apache server: (from the access.log) - - [04/Aug/2011:10:10:41 +0200] "GET /favicon.ico
HTTP/1.1" 404 256 "-" "Mozilla/5.0 (Android; Linux armv7l; rv:5.0)
Gecko/20110615 Firefox/5.0 Fennec/5.0"

I know that its coming in via the squid proxy because the IP address is
that of the squid proxy, although obfuscated in example above.

I read the squid-proxy.org details and the syntax looks correct, and
squid did not choke on it.

Compiled options below for squid3:

# squid3 -v
Squid Cache: Version 3.1.6
configure options: '--build=x86_64-linux-gnu' '--prefix=/usr'
'--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
'--infodir=${prefix}/share/info' '--sysconfdir=/etc'
'--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3'
'--disable-maintainer-mode' '--disable-dependency-tracking'
'--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid3'
'--enable-ssl' '--enable-http-violations' '--sysconfdir=/etc/squid3'
'--mandir=/usr/share/man' '--with-cppunit-basedir=/usr'
'--enable-inline' '--enable-async-io=8'
'--enable-storeio=ufs,aufs,diskd' '--enable-removal-policies=lru,heap'
'--enable-delay-pools' '--enable-cache-digests' '--enable-underscores'
'--enable-icap-client' '--enable-follow-x-forwarded-for'
'--enable-arp-acl' '--enable-esi' '--disable-translation'
'--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/squid3.pid'
'--with-filedescriptors=65536' '--with-large-files'
'--with-default-user=proxy' '--enable-linux-netfilter'
'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -g -Wall -O2' 'LDFLAGS='
'CPPFLAGS=' 'CXXFLAGS=-g -O2 -g -Wall -O2'

Would some one confirm my syntax is correct, and should do as it says?
Also, where did I go wrong?

Clues on a candid postcard :)


Cyberpunk FPS/MMORG      www.neocron.com / forum.neocron.com
Runs on Windows, platinum in latest WINE/Ubuntu. Running since 2002.
Received on Thu Aug 04 2011 - 08:45:43 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 04 2011 - 12:00:01 MDT