How to open Firefox with proxy settings via terminal?

by ufun2   Last Updated July 12, 2019 01:02 AM

Hi, I want to open Firefox from the terminal with SOCKS proxy setting enabled. I would like to define it in terminal while opening.

Can this be done? and obviously if it can does anyone know how?

Cant find info on this anywhere thanks



Answers 1


Normally Web browsers such as Firefox take their proxy settings from the system through the http_proxy environment variable but this can be changed from the menu: "Edit" > "Preferences"

one

two

If from a terminal you enter firefox -ProfileManager you can create a separate profile for each of the proxies you want to use.

You can then open firefox with a specific profile with

firefox -P "profile1"

replacing profile1 with the profile for the proxy server you want.

That said the better way to do this is to use the http_proxy variable.

See here for more information on http_proxy

Warren Hill
Warren Hill
March 18, 2013 17:41 PM

Related Questions


Updated June 15, 2016 08:00 AM

Updated February 25, 2017 18:02 PM

Updated March 17, 2017 15:02 PM

Updated June 10, 2017 05:02 AM

Updated August 30, 2017 16:02 PM