githubEdit

Change Proxy Settings from CLI

User Settings

  • It's best to change user.js in

    • Windows: dir "$env:APPDATA\Mozilla\Firefox\Profiles"

    • Linux: ls ~/.mozilla/firefox

    • MacOS: ls ~/Library/Application\ Support/Firefox/Profiles

cat <<EOF > ~/.mozilla/firefox/abcd1234.default-release/user.js
user_pref("network.proxy.type", 1);
user_pref("network.proxy.http", "127.0.0.1");
user_pref("network.proxy.http_port", 8080);
user_pref("network.proxy.ssl", "127.0.0.1");
user_pref("network.proxy.ssl_port", 8080);
user_pref("network.proxy.ftp", "127.0.0.1");
user_pref("network.proxy.ftp_port", 8080);
user_pref("network.proxy.socks", "127.0.0.1");
user_pref("network.proxy.socks_port", 1080);
EOF

Preference

  • Similar to user, but in prefs.js file

Last updated