The NZ Linux Resource

[AuckLUG] Help with Squid (As a transparent proxy) and Debian...

Joel van Velden joel at tpnz.co.nz
Mon Jul 17 20:51:15 NZST 2006


On Sun, 2006-07-16 at 17:08 +1200, Chris Hodgetts wrote:
> Hey, I have just come off a very nice cable plan that gave me 1/10
> national traffic, and now that I am being billed for every bit of data
> the $partners use of Trademe is showing in the data usage monitor more
> than ever...
> 
> I thought that I might install Squid so we dont blow our data cap, as I
> am sure she will never give up trademe :)
> 
> I installed the squid package for debian, entered the setting for
> visible_hostname modified the acl for the network 192.168.100.0/24.
> 
> I followed the article at
> http://www.debian-administration.org/articles/71
> 
> The following lines give me errors on start up and squid fails to start
> and says they are invalid.
> 
> httpd_accel_host virtual
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
> 
> /etc/squid.conf's first line is 
> #   WELCOME TO SQUID 2.6.STABLE1
> 
> Once I have set up the port forwarding in the firewall (shorewall) to
> redirect traffic to squid proxy this is what I see in my webbrowser...
> 
> ERROR
> The requested URL could not be retrieved
> 
> ________________________________________________________________________
> 
> While trying to process the request:
> 
> GET / HTTP/1.1
> Host: google.com
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060406 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-1)
> Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: PREF=ID=e2e8167f796fff74:FF=4:LD=en:NR=10:CR=2:TM=1144579058:LM=1152258954:DV=AA:GM=1:S=ytRi03_g8iwJL9Ig; rememberme=false
> 
> 
> 
> The following error was encountered:
> 
>       * Invalid Request
> 
> Some aspect of the HTTP Request is invalid. Possible problems:
> 
>       * Missing or unknown request method
>       * Missing URL
>       * Missing HTTP Identifier (HTTP/1.0)
>       * Request is too large
>       * Content-Length missing for POST or PUT requests
>       * Illegal character in hostname; underscores are not allowed
> 
> Your cache administrator is webmaster. 
> 
> 
> 
> ________________________________________________________________________
> Generated Sun, 16 Jul 2006 02:27:00 GMT by caitlin.archnetnz.com
> (squid/2.6.STABLE1)
> 
> 
> Any help or comment, or even a link to a working squid.conf file that I
> can have a look at would be good.
> 
> Thanks again.
> 


what clues do the files in /var/log/squid/  contain?


-Joel 




More information about the AuckLUG mailing list If you have any questions or comments about this page, email the Webmaster
Design Copyright © 1998-2005 Linux.net.nz