Enforce proxy settings in a Citrix published/ multi-user environment
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?
Všetky odpovede (3)
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
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
Upravil(a) Kevin dňa
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