Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

how to configure manual proxy configuration using CMD

  • 2 réponses
  • 2 ont ce problème
  • 3 vues
  • Dernière réponse par cor-el

more options

i trying configure mozilla proxy using CMD to silently configure it to our end users

pls help.

Thanks,

i trying configure mozilla proxy using CMD to silently configure it to our end users pls help. Thanks,

Toutes les réponses (2)

more options

Hi ndeleon, In order to silently configure a proxy on a network for Firefox you may need these resources to lock proxy preferences across profiles. Keep in mind however I do not know how to do this without overwriting the whole profile if one already exists for each user, you might want to advice them: Back up and restore information in Firefox profiles

Force proxy config Step:1) Created a file name like "local-settings.js" in -- /usr/lib/firefox/defaults/pref --- Pasted this line -- pref("general.config.filename", "mozilla.cfg"); --- in "local-settings.js" Step :2) Created a file name like "mozilla.cfg" in -- /usr/lib/firefox --- And copy and paste the below line in this "mozilla.cfg" file.

defaultPref(); // set new default value pref(); // set pref, but allow changes in current session lockPref(); // lock pref, disallow changes


lockPref("network.proxy.type", 1); lockPref("network.proxy.http", "X.X.X.X"); lockPref("network.proxy.http_port", 8080); lockPref("network.proxy.share_proxy_settings", true); lockPref("network.proxy.no_proxies_on", "127.0.0.1,localhost,X.X.X.X")

Troubleshooting steps: The steps look fine to me (byte shifting is no longer required).

  1. Do any of the prefs have a locked setting in you click the Status header on the about:config page?
  2. Do you see the general.config.filename pref with value mozilla.cfg on the about:config page?
  3. Are you sure that you are starting this version of Firefox?
  4. Do you get an error message when the mozilla.cfg file is absent?
  5. You will first have to check for errors with the local-setting.js file

Resources:

more options

Note that the mozilla.cfg file needs to start with a comment line (//) because this first line is skipped (ignored).

The mozilla.cfg file needs to be in the main Firefox program folder and the local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located.

  • (32 bit Windows) "C:\Program Files\Mozilla Firefox\"
  • (64 bit Windows) "C:\Program Files (x86)\Mozilla Firefox\"