My favorites | Sign in
Project Home Downloads Wiki Issues
Search
for
LinuxProxyConfig  
Proxy Configuration details for Linux
linux
Updated May 3, 2010 by derat%chromium.org@gtempaccount.com

Introduction

Chromium on Linux has several possible sources of proxy info: GNOME/KDE settings, command-line flags, and environment variables.

Details

GNOME and KDE

When Chromium detects that it is running in GNOME or KDE, it will automatically use the appropriate standard proxy settings. You can configure these proxy settings from the options dialog (the "Change proxy settings" button in the "Under the Hood" tab), which will launch the GNOME or KDE proxy settings applications, or by launching those applications directly.

Flags and environment variables

For other desktop environments, Chromium's proxy settings can be configured using command-line flags or environment variables. These are documented on the man page (man google-chrome or man chromium-browser).

Comment by taart...@gmail.com, Feb 10, 2010

The "Change proxy settings" button opens this webpage? (And btw, bookmark syncing isn't working too, button is grey)

Comment by oni-...@hotmail.com, Feb 11, 2010

Yes. Quite a few people have alternate managers, Or don't have KDE/Gnome at all. Why are you not letting up a dialogue for us to enter? it's not intuitive if a specific proxy is needed, without a full network reboot to change the port.

Comment by known...@gmail.com, Feb 12, 2010

Isn't this similar arrogance some of us dislike about Microsoft?

Comment by tri...@gmail.com, Feb 16, 2010

I do not use Gnome/KDE... setting http_proxy=... is not workable when i need to access localhost !!!

Comment by css...@gmail.com, Feb 16, 2010

This is so stupid. You can't just make a dialog that pops up? God.. Just because I'm running xmonad doesn't call for discrimination!

Comment by css...@gmail.com, Feb 16, 2010

I've tried setting the environment variable too & it doesn't work either. This is BS. I want to use my installation of google chrome with proxystrike http://www.edge-security.com/proxystrike.php

Comment by adrian.m...@gmail.com, Feb 17, 2010

Setting http_proxy i somewhat acceptable now when the linux chrome is in alpha stage.

However: I need to configure Chrome to NOT use the proxy for a given list of hosts. The use case is: at work we have a proxy that needs to be used for accessing the public internet websites. But we also have internal web servers that must be accessed directly by the browser (the proxy only handles external websites).

Comment by mrclis...@gmail.com, Feb 17, 2010

Use the Proxy Switchy extension - it'll do everything you want.

cheers,

Comment by rua...@gmail.com, Feb 18, 2010

setting the environment variable can't work. proxy switchy can't either.

Comment by notordok...@gmail.com, Feb 20, 2010

exporting http_proxy doesn't work at all. This reminds me of the "wonderful" management of chromium certificates on Linux. Thumbs down.

Comment by notordok...@gmail.com, Feb 20, 2010

Wonderful... so, to get this working, you need to run:

/usr/bin/env http_proxy="http://127.0.0.1:8118" no_proxy="localhost,127.0.0.1,192.168.0.0/24" /usr/bin/chromium

or whatever matches your paths and needs. Forget about exporting http_proxy, no_proxy etc. in .bashrc, no effect at all (it works for wget etc. of course, checked in privoxy logs). Personally I find it less clumsy to use iptables to do the redirect job that setting some weirdo aliases for this. Blah.

Comment by dclin...@gmail.com, Feb 21, 2010

'google-chrome --proxy-pac-url=file:///...' works perfectly. There's no need to use http_proxy this no_proxy that. If you've got a pac file for use with firefox it'll work fine here. If you need help writing a .pac file google is your friend...

Comment by notordok...@gmail.com, Feb 22, 2010

@dclinger: Should I have the urge to write pac/wpad files, I'd take care of serving them globally to clients via DHCP server. Alas, that won't work with chrome on Linux either. Wrt http_proxy/no_proxy, not honoring those env variables and having to explicitely specify it with is clearly a bug - worse even when it's the recommended way to set proxy for Chromium on Linux.

Comment by dron...@gmail.com, Feb 22, 2010

how can i change ENV without restarting chromium? i'm not using gnome or kde - just awesome wm

Comment by cssg...@gmail.com, Feb 27, 2010

I dont use Gnome/KDE (but it's both installed!) and even with the Proxy Switchy extension its doesnt work. It always tell me only works with Gnome/KDE, thats VERY annoying! I think if KDE is installed it should work even i use only my favorite Openbox Window Manager.

Comment by bela.lub...@gmail.com, Feb 27, 2010

@notordoktor: chrome should be unable to tell the difference between separately exported http_proxy etc. vs. env http_proxy=... chrome. If you experience otherwise, it is because of how you are starting it. When you run wget you obviously do so from a command line -- which will be carrying env settings from your .bashrc. If you start chrome from some sort of window manager icon then it will carry those settings only if the WM had them in its env (and chose to pass them on).

If you create a couple of scripts:

   $ cat > foo << 'EOF'
   export http_proxy=...whatever...
   chromium "$@"
   EOF
   $ cat > goo << 'EOF'
   env http_proxy=...whatever... chromium "$@"
   EOF
   $ chmod 755 foo goo

-- you should find that both of these work equally well from either command line or WM icon. Stress it by making sure no proxy stuff is set in your shell or WM environments (or any Gnome- or KDE-stored settings).

Comment by bela.lub...@gmail.com, Feb 27, 2010

@taartaar: when I'm running my normal window manager, icewm, "Change proxy settings" opens this page. If I run Gnome then it opens up the Gnome network proxy settings window is intuitively named `gnome-network-properties` :-(?

I assume it brings up some sort of KDE settings applet if you're running that.

I experimented with trying to use gnome-network-properties under icewm, with frustrating results. There might be a way; it might involve running a gaggle of Gnome daemons like gnome-settings-daemon, 73 gvfs processes, etc. Bleah.

Comment by decadens...@gmail.com, Mar 8, 2010

My peers and I frequently use multiple browsers on a system, one of which (usually Firefox) is our main browser, and our secondary browser might be proxied through a specific proxy. This type of proxy configuration option doesn't make it easy for us to do that. I like a browser to allow specific (ideally, multiple) proxies to be defined, completely separate from the proxies defined at the OS/Networking level. Ideally, something like FoxyProxy? which allows us to quickly change proxies.

Comment by e.imho...@gmail.com, Mar 8, 2010

what if I don't want to use the proxy for some websites but I'm not in a KDE/Gnome environment?

Comment by lapo.luchini, Mar 10, 2010

Using --proxy-pac-url works, but setting the same PAC file in KDE proxy configuration (rachable using the button in Chrome options page), does not.

Comment by lady.a...@gmail.com, Mar 10, 2010

"Chromium on Linux has several possible sources of proxy info" - that a BAD sign right there! Any time you have "several possible" of anything, you also have several possible problems, confusions, and annoyances. It's good that Chromium tries to work out your proxy settings when you run it for the first time, but it should just use the data it finds to auto-populate a setting and then forever after let you adjust the setting as you see fit. I want control over how my browser behaves and it shouldn't be as complicated as using any of the workarounds from this page.

Apart from that, it's an excellent browser. I'm glad I was finally able to get it to work, but it took a lot of effort!

Comment by Chairman...@gmail.com, Mar 26, 2010

http proxy serverv

Comment by patrick....@gmail.com, Apr 3, 2010

Please let us set the proxy in a box in Chrome, not with environment variables. I use several different proxies for different purposes.

Otherwise, Chrome is blazingly fast, congrats =)

Comment by jfama...@gmail.com, Apr 3, 2010

come on... just allow changing some env vars from the browser...

Comment by louman...@gmail.com, Apr 6, 2010

Pretty please, with sugar on top, add a proxy dialog and save our settings to our profile. :)

Comment by l33t...@gmail.com, Apr 11, 2010

Chromium is an excellent browser, far better than Firefox IMHO, but it's proxy handling in Linux is next to idiotic!!! There should be three main options within Settings > Proxy: 1) disable proxy 2) manual setting 3) use desktop settings; AND they should work without restarting Chromium.

A personal experience: in my laptop I use Chromium via privoxy, but the bookmark sync does not work via privoxy, so in order to sync bookmarks I need to 1) close Chromium 2) stop privoxy (disabling proxy via Gnome settings or starting Chromium with --no-proxy-server does not work, Chromium seems to pick up privoxy anyway) 3) restart Chromium 4) sync bookmarks 5) close Chromium 6) restart privoxy 7) restart Chromium...

Comment by brikeener@gmail.com, Apr 14, 2010

This is possibly the shortest period of time I've ever used a Google product.

Chrome is worthless to me without a way to specify independent socks proxy setting.

Comment by exiq...@gmail.com, Apr 15, 2010

I can't continue using Chromium because of this proxy deal. It is obvious that this should be a directive set in the browser itself. I use XMonad so the desktop-based solution is worth less. I refuse to change something in my environment variables for a web browser that tries to do everything else itself. I am sure the team behind this are good people and will eventually get around to correct this. Until then I am rocking with Opera 10.5. Maybe V8's will catch up speedwise by the time we get this feature.

Comment by EZ034Gen...@gmail.com, Apr 22, 2010

Firefox has such a nice way of dealing with socks5 proxy all by itself. The main reason I don't use Chrome or Opera, is because neither of them handle socks5 proxy the way firefox does. In Firefox->Options->Advanced->Network->Settings... socks5Host=localhost port=1337, then on commandline for linux, ssh -ND 1337 homeacct@homelinuxip... or in Windows, plink.exe -N -D 1337 homeacct@homelinuxip. Done, and to really hide things from corporate firewall&filters, firefox's "about:config" -> set network.proxy.socks_remote_dns=true, and you're golden, surfing any site you want without any fear of corporate-detection(assuming you're not streaming GIGs of encrypted traffic slowing everyone else down).

Just waiting for Opera or Chrome to do it like Firefox.
Comment by kentaro....@gmail.com, Apr 25, 2010

Chrome does not properly support no_proxy setting with CIDR format?

My no_proxy setting is:

localhost,127.0.0.0/8,.local,192.168.1.0/24

But Chrome used a proxy server to connect to 192.168.1.2.

Comment by fgiunch...@gmail.com, Apr 26, 2010

how does chrome detect GNOME/KDE? In other words what is the minimum thing that will trick it into thinking it is running under GNOME or KDE?

Comment by fgiunch...@gmail.com, Apr 26, 2010

answering myself, turns out that chrome reads GNOME_DESKTOP_SESSION_ID environment variable to detect GNOME, thus

GNOME_DESKTOP_SESSION_ID=Default google-chrome

is enough, of course you'd like to have at least gconfd running

Comment by oyvi...@gmail.com, May 1, 2010

I prefer PER APPLICATION PROXY SETINGS. This one-setting-for-the-desktop foolishness is something I strongly dislike in most KDE and GNOME applications too and I've opened several bugs about it. Some developers actually realize that it is NOT THAT HARD to have a dialog box with a) Use desktop proxy settings, b) Use custom (enter here) settings or c) don't (ab)use the proxy. I see l33tmmx above also realizes this.

tried chromium, broken, will check back later too see if this proxy bug is fixed in a few months

Comment by Aces...@gmail.com, May 1, 2010

very nice, but all you people need to shut the hell up, they obviously know. chromium is still in the development stage, let them do their job. and you people that sound like you're raging, well, news for ya -- these people are making this shit for free, for you. why don't you go ahead and code your own browser, or shut up and use another. obviously fgiunchedi found a way to get chromium to pop up the dialog in his.

have fun being sad, sadistic people.

Comment by exiq...@gmail.com, May 3, 2010

@acesx91

We're just providing feedback. If you open source something then you open to debate. Try adding something positive next time so I don't have to read your counterproductive insults.

Comment by gordon.m...@gmail.com, May 12, 2010

Use case: I'm running Ubuntu. I want to use Chrome with a specific proxy. I don't want that proxy to be magically, and WITHOUT WARNING, exported to Pidgin, Synaptic, and everything else that queries the GNOME proxy settings, which Chrome uses without warning.

Fail. Please fix this, it's broken.

Comment by jibjib...@gmail.com, May 19, 2010

I don't use GNOME or KDE and I use Chromium on a laptop which I move between multiple networks that need different proxies. What's the reasonable solution for a normal user to do this automatically?

Is the solution "Manually restart Chromium every time I change networks, and start it using a script that detects the current network and passes the appropriate command-line arguments to make the browser work"?

I'll continue to use Chromium because it's an otherwise awesome browser. But this is pretty annoying.

Also, it's just stupid that trying to change proxy settings in Linux directs you to this web page. If you're changing proxy settings, you're almost certainly doing it because you can't open web pages. Replace it with something stored locally describing how the proxy settings work.

Comment by mschla...@gmail.com, May 24, 2010

I'm all with gordon.morehouse. Some apps, like RhythmBox? will not even work with a proxy... well, why should they... but that thing about Chrome setting the proxy for all just is not right.

Besides, there is also something weird about it... when you want to apply the proxy settings from the dialog kindly provided by GNOME (or whoever does that), it asks if you want to 'Apply System-Wide', to which I always answer 'Close', which to me seems to say "Nah, just Close"... Yet magically, OTHER apps start using the settings, which seems to mean that 'Close' and 'Apply System-Wide' have the same results in a way. This will probably not change proxy settings for apt and such, which in itself requires you to sudo, but it certainly does so for RhythmBox? and who knows what else...

Comment by mschla...@gmail.com, May 24, 2010

well, maybe RhythmBox?? does work with a proxy (SOCKS maybe), just not with the proxy I use... just for the sake of clarity here...

Comment by darrin.gorski, Jun 3, 2010

You should star these issues (which are all the same issue, no chrome-specific proxy option) if you want the devs to start working on this:

http://code.google.com/p/chromium/issues/detail?id=266 http://code.google.com/p/chromium/issues/detail?id=24577 http://code.google.com/p/chromium/issues/detail?id=25769

Add your voice - be heard!

This is also interesting, at least one dev sees that users are clamoring for this.

http://dev.chromium.org/developers/design-documents/network-settings

Comment by upperca...@gmail.com, Jul 2, 2010

the chromium-browser man page says the browser will start with the proxy setting on the command-line. with icewm I use a menu item that stores the proxy setting. The shortcut starts "chromium-browser --proxy-server=xxx.xxx.xxx.xxx:xx" I presume this would also work on a gnome/kde desktop shortcut.

Comment by ertugrul...@gmail.com, Aug 29, 2010

@darrin.gorski: You are right. But now the issue is tracked here:

http://code.google.com/p/chromium/issues/detail?id=48930

(Anyone affected by this issue can go to this URL and click to the star to be heard.)

It seems that working on this feature is actively on progress. So I guess we should only wait a little more.

Comment by vedavr...@gmail.com, Sep 1, 2010

I am on Ubuntu Linux, but i don't use GNOME/KDE (use FVWM), then what to do?!

We need a possibility to setup proxy by Google Chrome settings...

Comment by vedavr...@gmail.com, Sep 1, 2010

Please correct!

Comment by kburm...@gmail.com, Sep 2, 2010

awesome but ugly make some style which can be it icon. Not just a ugly peice of chrome.I am leaving it .It not what i hope.

Comment by sig.la...@gmail.com, Sep 26, 2010

Yet another reason to use firefox. Chrome still fails.

Comment by theke...@gmail.com, Oct 11, 2010

setting http_proxy doesn't work for me, nor does running with --proxy-server. I'm running OpenBox? under Peppermint. Proxy Switchy doesn't work since I have neither Gnome nor KDE on this system.

Comment by monitori...@gmail.com, Oct 26, 2010

www.youtube.com

Comment by patrok...@gmail.com, Nov 26, 2010

Please add a proxy dialog.

Comment by Ng.Mat...@gmail.com, Dec 14, 2010

For now, try putting the 2 lines below

http_proxy="blablabla"
export http_proxy

into /etc/profile

.bashrc will not work as well as compared to the system-wide one.

Comment by BenBenBe...@gmail.com, Jan 26, 2011

I find the best way to get Chrome to run for me (in puppy linux) is using a pacfile along with the --proxy-pac-url="xxx" switch. For me it's a case of use no proxy for SSL and use a proxy for all other browsing.

If you're uncomfortable setting up a pac file you can get examples and create your own pacfiles here.

Comment by jiangtao...@gmail.com, Mar 13, 2011

I am a chinese . Cloud in china is impossible. Too slow!

Comment by Otto.All...@gmail.com, Apr 20, 2011

the ProxySwitchy? extension doesn't work since ~chromium 10.0.648 :(

Comment by sanjeewa...@gmail.com, May 15, 2011

confused ..im ath 1`st time on Chromus OS

Comment by krishnam...@gmail.com, May 18, 2011

Hi folks I'm getting below error with my chrome browser ,can some one please help me on this

Error 111 (net::ERR_TUNNEL_CONNECTION_FAILED): Unknown error.

Comment by flynn1...@gmail.com, May 22, 2011

Wow! This pretty neat! I have the Google cr-48 and wanted to make my Lenovo S10 (no dash) as similar to the cr--48 as possible. While not yet up to "daily" use standards, it is FUN to play with!!

Comment by flynn1...@gmail.com, May 22, 2011

Wow! This pretty neat! I have the Google cr-48 and wanted to make my Lenovo S10 (no dash) as similar to the cr--48 as possible. While not yet up to "daily" use standards, it is FUN to play with!!

Comment by k...@google.com, Jun 28, 2011

Apparently google-chrome STILL has no way of accessing the proxy settings in the UI. The Goobuntu/Chrome config examples are useless, because clicking on the "Change proxy settings" button in the under-the-hood page just tells me:


When running Google Chrome under a supported desktop environment, the system proxy settings will be used. However, either your system is not supported or there was a problem launching your system configuration.

But you can still configure via the command line. Please see man google-chrome for more information on flags and environment variables.


This is so stupefyingly lame I have trouble believing we are distributing this to the outside world. What is so terribly wrong about simply allowing the proxy config page to open?

"man google-chrome" is only an option for tech-savvy masochists.

Comment by www.nano...@gmail.com, Jun 29, 2011

"man google-chrome" is only an option for tech-savvy masochists. )))

Comment by Phillip...@gmail.com, Oct 31, 2011

So I take it other Linux distros (I use Lubuntu) aren't supported for changing the proxy without fiddling under the hood???

Comment by agibs...@gmail.com, May 14, 2012

I have hit this issue too. It picks up up my proxy settings from Gnome 3 but there is no way to specify no proxy list in gnome 3 gui. When i go to chrome://config it is trying to use the proxy server. Doh! Chrome should be smart enough to know that chrome://config is not a network location.


Sign in to add a comment
Powered by Google Project Hosting