From owner-freebsd-stable@FreeBSD.ORG Wed Nov 24 12:14:10 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E3B11065670 for ; Wed, 24 Nov 2010 12:14:10 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id E0B558FC16 for ; Wed, 24 Nov 2010 12:14:09 +0000 (UTC) Received: by qyk7 with SMTP id 7so3253133qyk.13 for ; Wed, 24 Nov 2010 04:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IWvDCd/Lw8eyL4GfWGbHX0SBlIAxdkHitftHfoUL/rQ=; b=TXgCaHXAamgMSYRjJnaefqKQuugk9T4d8/XHBXT7o4oBv4eWYhj5r47guhZlWm01Ji 3l7XTeah6HhudXHfH9Yselhqm4b8eKFzes1A/rQfgd6SrkuHoSZTuppc88LRsrNZuW+o GBceJqHc8PN11zgV6y6MVWPD+5T/g5S5vcaJw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Dihh+/fLU/3BvHkJDafSk9kkD1VuRe41jE9X9UeCqjSU12GB8WGF0pEuaKvkrjMVka Lv77KaJVloN4DtitrwDn+B0f0RjF5pUYkGEmAjgvJHud1QqjLh7Wsgw5LtctPRJszTPO jZyVZUXdzhQPo1HaH597cMDhAPcAEsKQ2tMR8= MIME-Version: 1.0 Received: by 10.229.189.4 with SMTP id dc4mr7350837qcb.106.1290600847835; Wed, 24 Nov 2010 04:14:07 -0800 (PST) Received: by 10.229.232.21 with HTTP; Wed, 24 Nov 2010 04:14:07 -0800 (PST) In-Reply-To: <20101124113745.GA22461@icarus.home.lan> References: <20101123070442.GN8547@stlux503.dsto.defence.gov.au> <201011241051.oAOApDSF078356@fire.js.berklix.net> <20101124113745.GA22461@icarus.home.lan> Date: Wed, 24 Nov 2010 12:14:07 +0000 Message-ID: From: Tom Evans To: Jeremy Chadwick Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "Julian H. Stacey" , freebsd-stable@freebsd.org, "Wilkinson, Alex" Subject: Re: www/chromium ignores proxy settings [SEC=UNCLASSIFIED] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2010 12:14:10 -0000 On Wed, Nov 24, 2010 at 11:37 AM, Jeremy Chadwick wrote: > Correct. =C2=A0You need to reference a PAC file for the browser to > read/parse: http://en.wikipedia.org/wiki/Proxy_auto-config > > I can show you an example .pac file if you want; I use one to define > what domain names my browser visits should be siphoned through a proxy > (SSH tunnel to work) or directly via the Internet. Interesting; I'm trying to give up using firefox (which for me leaks memory like a sieve; I have approximately 30 tabs open, RES is > 1 GB :/), but was having difficulties finding something to replace FoxyProxy, which allows me to route different sites to different proxies. This looks like it would be suitable. > > If what you're looking for is an HTTP or HTTPS-based proxy, you should > be using --proxy-server, specifying the FQDN or local hostname of the > server and what TCP port the proxy daemon is configured to accept > requests from (e.g. port 80, or port 3128 in most cases, ex. squid). > >> =C2=A0 =C2=A0 =C2=A0 printenv | grep -i proxy >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http_proxy=3Dhttp://gat= e.js.berklix.net:80 >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 all_proxy=3Dhttp://gate= .js.berklix.net >> My proxy env vars are not being imported properly, >> & setting on command line is ugly, but no time for more now, >> possibly a bug/feature in chrome ? I never tried chrome before. > > There is a very bad assumption being made here (so far by two people). > > There is absolutely nothing that requires or guarantees a piece of > software will import or make use of *_proxy environment variables. =C2=A0= The > software has to explicitly state it honours and respects these, and > provide documentation stating what it expects the syntax to be. I think you are assuming that people are making that assumption. I certainly wasn't, I was simply showing my proxy environment settings to give a clear indication of how my proxies are configured for other software. On the other hand, though Chrome professes that it *will* infer proxy settings from the environment: http://code.google.com/p/chromium/wiki/LinuxProxyConfig It's documentation is lacking, and doesn't mention what environment variables it uses. Secondly, once you have chrome running (and have not specified --proxy-* on the command line), chrome has a configurable dialog which allows you to set proxy settings. Anything you place in this is ignored, utterly and completely. > > The only two pieces of software I've encountered which honours these is > perl's LWP::UserAgent (and friends), and curl. + Firefox, libfetch, google-cli, skype, wine, py-httplib2 ... TBH I'm more surprised when software doesn't these days. > > I imagine lynx and some other software honours them as well, but again, > assuming software honours them (or properly parses them for that matter) > isn't reasonable. > > Is there any confirmed documentation that Google Chrome honours and > makes use of *_proxy environment variables? =C2=A0I see some random Linux > user forum posts claiming it does, but there's caveats to their use > apparently (see post from "disciple"; X users will probably want to read > this post): > > http://www.murga-linux.com/puppy/viewtopic.php?t=3D50196 > > -- > | Jeremy Chadwick =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 jdc@parodiu= s.com | > | Parodius Networking =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.parodius.com/ | > | UNIX Systems Administrator =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0Mountain View, CA, USA | > | Making life hard for others since 1977. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0PGP: 4BD6C0CB | > >