(Perhaps it reaches into the Mozilla settings? Perhaps this just works in Mozilla when you have a proxy set up?
$ strings /etc/alternatives/mozilla-flashplugin | grep \\.proxy network.proxy.type network.proxy.http network.proxy.http_port network.proxy.ssl network.proxy.ssl_portHmm.)
In any case, it's actually even more trivial to set up a socks5 proxy via ssh and
LD_PRELOAD
over all the connection functions so no matter how the program connects, it gets your proxy.sudo apt-get install tsocks
(this is the preloader)sudo vi /etc/tsocks.conf
, remove the example block, and add inserver = 127.0.0.1 server_type = 5 server_port = 1080
at the bottom in the defaults areassh -D 1080 box-in-america
(or add aDynamicForward 1080
line to the appropriate stanza in your~/.ssh/config
)tsocks firefox
(I didn't try Chrome -- I was worried that our multiple processes and loaders would eat theLD_PRELOAD
, but actually all the network is done by the outermost process so it perhaps ought to work)
box-in-america
-- ssh does the proxying implicitly. However, it seems perhaps slower than an HTTP proxy.