How to open Firefox with proxy settings via terminal?
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"
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
Related videos on Youtube
ufun2
Updated on September 18, 2022Comments
-
ufun2 over 1 year
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
-
Admin about 11 yearsIS there any specific reason, that you'd open this from the terminal?
-
Admin about 11 yearsIS there any specific reason, that you'd want to know? i am building a small android app that would require this feature but have been stuck on this part im writing oon linux then migrate
-
Admin about 11 yearsWeb browsers on Ubuntu all get their proxy settings from the network settings manager, so the proxy settings are independent of the individual browsers. You should check out this question for help on setting a proxy from the terminal askubuntu.com/questions/158557/setting-proxy-from-terminal
-
-
user643722 almost 9 yearsUnfortunately, Firefox (37.0.2) on Ubuntu 15.04 still fails to use the http_proxy variable (see bugzilla.mozilla.org/show_bug.cgi?id=224886)