為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Enforce proxy settings in a Citrix published/ multi-user environment

more options

I'm publishing Firefox 28 for Windows on a Citrix server. I need to enforce proxy settings for all users and have them greyed out so they cannot be changed. I've looked into the proxy settings, under Advanced, but they are per-user and are able to be changed.

How can I do this?

I'm publishing Firefox 28 for Windows on a Citrix server. I need to enforce proxy settings for all users and have them greyed out so they cannot be changed. I've looked into the proxy settings, under Advanced, but they are per-user and are able to be changed. How can I do this?

所有回覆 (3)

more options

See the following page for locking preferences.

These are all the preferences under Options - Advanced - Network - Settings:

 network.proxy.type 0 | No proxy
 network.proxy.type 4 | Auto-detect proxy settings
 network.proxy.type 5 | Use system proxy settings

 network.proxy.type 1 | Manual proxy configuration
 network.proxy.http
 network.proxy.http_port
 network.proxy.share_proxy_settings | Use HTTP proxy server for all protocols
 network.proxy.ssl
 network.proxy.ssl_port
 network.proxy.ftp
 network.proxy.ftp_port
 network.proxy.socks
 network.proxy.socks_port
 network.proxy.socks_version 4 or 5
 network.proxy.socks_remote_dns false or true
 network.proxy.no_proxies_on | domain names separated by a comma and a space

 network.proxy.type 2 | Automatic proxy configuration
 network.proxy.autoconfig_url | Proxy autoconfiguration URL

 signon.autologin.proxy false or true | Do not prompt for authentication if password is saved
more options

I've tried this on a Mac and Windows with no luck.

I've created a text file called local-settings.js in "C:\Users\Kevin\AppData\Roaming\Mozilla\Firefox\Profiles\91e7yvh1.default". The file contents are:

pref("general.config.obscure_value", 0); // only needed if you do not want to obscure the content with ROT-13

pref("general.config.filename", "mozilla.cfg");

I've also created the mozilla.cfg file in "C:\Program Files\Mozilla Firefox" with the content:

//

lockPref("network.proxy.http", "isaout.ucdmc.ucdavis.edu"); lockPref("network.proxy.http_port", 8085); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, *.ucdavis.edu"); lockPref("network.proxy.type", 1);

On the Mac, I used the same file contents except I used the directories: /Applications/Firefox.app/Contents/MacOS/defaults/pref and /Applications/Firefox.app.

Can you tell me what I'm doing wrong?

/Kevin

由 Kevin 於 修改

more options

Like the article says,

1. mozilla.cfg must be placed in the installation folder, e.g.

C:\Program Files (x86)\Mozilla Firefox\mozilla.cfg

2. local-settings.js must be placed in the defaults\pref subfolder of the installation folder, e.g.

C:\Program Files (x86)\Mozilla Firefox\defaults\pref\local-settings.js

On a Mac, right-click (or Control+click) the Firefox icon in the Applications folder and choose Show Package Contents. The equivalent paths should be

Firefox.app/Contents/MacOS
Firefox.app/Contents/MacOS/defaults/pref