www/chromium ignores proxy settings [SEC=UNCLASSIFIED]
freebsd at jdc.parodius.com
Wed Nov 24 11:37:48 UTC 2010
On Wed, Nov 24, 2010 at 11:51:13AM +0100, Julian H. Stacey wrote:
> "Wilkinson, Alex" wrote:
> > 0n Mon, Nov 22, 2010 at 02:19:32PM +0000, Tom Evans wrote:
> > >On Mon, Nov 22, 2010 at 2:00 PM, Alexander Logvinov <avl at logvinov.com> wrote:
> > >> ??Use ??chrome --proxy-server="http://proxy:3128/" :)
> > >That didn't work either, it would not even make any connections then.
> > >With '--proxy-server=proxy:3128' though, it works correctly!
> > >It would still be nice to be able to set these options in the right
> > >place in the gui, and have them work :)
> > Try: --proxy-pac-url="http://proxy-server:port"
> > Work for me.
> > -Alex
> Man chrome:
> Specify the HTTP/SOCKS4/SOCKS5 proxy server to use for requests.
> This overrides any environment variables or settings picked via
> the options dialog.
> Specify proxy autoconfiguration URL. Overrides any environment
> variables or settings picked via the options dialog.
> These do not work here:
> chrome --proxy-pac-url="http://gate:80"
> chrome --proxy-pac-url=http://gate:80
> Not suprising, I suppose the URL should not contain '"' and perhaps
> the URL should be some some auto config server hook I am not supplying.
Correct. You need to reference a PAC file for the browser to
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.
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).
> printenv | grep -i proxy
> 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. The
software has to explicitly state it honours and respects these, and
provide documentation stating what it expects the syntax to be.
The only two pieces of software I've encountered which honours these is
perl's LWP::UserAgent (and friends), and curl.
I imagine lynx and some other software honours them as well, but again,
assuming software honours them (or properly parses them for that matter)
Is there any confirmed documentation that Google Chrome honours and
makes use of *_proxy environment variables? I 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
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |
More information about the freebsd-stable