If ssh connection fails using SOCKS then what? Automate switch to no proxy?

Posted by Benjamin Jones on Super User See other posts from Super User or by Benjamin Jones
Published on 2013-11-04T22:18:22Z Indexed on 2013/11/05 15:59 UTC
Read the original article Hit count: 321

Filed under:
|
|
|
|

Right now I am using plink in a batch routine that reconnects to my SSH server if I loose connection. I use my plink connection & socks proxy (firefox) to forward all my browser traffic. Works great EXCEPT for one thing!

If I can't get to my ssh server for some ODD reason I have to go to options in firefox and revert back my settings to NO Proxy. It can be done, but its annoying!

So how would I keep my SOCKS Proxy connection in firefox, but if I cant connect to my SSH Server, how can I automatically switch to the autodetect proxy/no proxy settings in firefox?

I would think that I could use the Firefox command line arguments and a batch routine to do so, but I do not believe this is possible. I do see via this link where the proxy settings are stored, but does that mean I have to change the proxy settings depending on my senario above within the .js file? http://stackoverflow.com/questions/843340/firefox-proxy-settings-via-command-line

© Super User or respective owner

Related posts about firefox

Related posts about ssh