Skip to content

Proxy

Configure proxy settings. These settings correspond to the connection settings in Firefox preferences.

Unless you lock this policy, changes the user already has in place will take effect.

  • Mode: the proxy method being used.
  • Locked: whether or not proxy settings can be changed by users.
  • HTTPProxy: the proxy server used for HTTP requests.
  • UseHTTPProxyForAllProtocols: define whether or not HTTPProxy is also used for HTTPS traffic, overriding SSLProxy. It doesn't affect SOCKSProxy.
  • SSLProxy: the proxy server used for HTTPS requests.
  • FTPProxy: Deprecated, has no effect since Firefox 90.
  • SOCKSProxy: the SOCKS proxy server.
  • SOCKSVersion: the SOCKS version (4 or 5).
  • Passthrough: list of hostnames or IP addresses that will not be proxied. Use <local> to bypass proxying for all hostnames which do not contain periods.
  • AutoConfigURL: a URL for proxy configuration (only used when Mode is autoConfig).
  • AutoLogin: don't prompt for authentication if a password is saved.
  • UseProxyForDNS: whether or not to look up host names through the SOCKS proxy, for both SOCKS v4 and v5. Firefox already does this for SOCKS v5 by default, so setting this to false makes SOCKS v5 DNS lookups bypass the proxy.
policies.json
{
"policies": {
"Proxy": {
"Mode": "autoConfig",
"Locked": true,
"HTTPProxy": "example.com",
"UseHTTPProxyForAllProtocols": true,
"SSLProxy": "example.com",
"FTPProxy": "example.com",
"SOCKSProxy": "example.com",
"SOCKSVersion": 5,
"Passthrough": "<local>",
"AutoConfigURL": "https://example.com/proxy",
"AutoLogin": true,
"UseProxyForDNS": true
}
}
}
JSON schema
Proxy JSON schema
{
"type": "object",
"properties": {
"Mode": {
"type": "string",
"oneOf": [
{
"const": "none",
"title": "No proxy"
},
{
"const": "system",
"title": "Use system settings"
},
{
"const": "manual",
"title": "Manual configuration"
},
{
"const": "autoDetect",
"title": "Auto-detect (WPAD)"
},
{
"const": "autoConfig",
"title": "Automatic proxy configuration (PAC)"
}
]
},
"Locked": {
"type": "boolean"
},
"AutoConfigURL": {
"type": "string",
"anyOf": [
{
"format": "moz-url"
},
{
"maxLength": 0
}
]
},
"FTPProxy": {
"type": "string"
},
"HTTPProxy": {
"type": "string"
},
"SSLProxy": {
"type": "string"
},
"SOCKSProxy": {
"type": "string"
},
"SOCKSVersion": {
"type": "number",
"oneOf": [
{
"const": 4,
"title": "SOCKS v4"
},
{
"const": 5,
"title": "SOCKS v5"
}
]
},
"UseHTTPProxyForAllProtocols": {
"type": "boolean"
},
"Passthrough": {
"type": "string"
},
"UseProxyForDNS": {
"type": "boolean"
},
"AutoLogin": {
"type": "boolean"
}
}
}

Using a proxy auto-configuration (PAC) file

Section titled “Using a proxy auto-configuration (PAC) file”

A PAC file decides which proxy each site uses, so you can change your proxy rules on the server without deploying a new policy. Locked stops users from changing the connection settings, and makes Firefox ignore any proxy settings they had already changed:

{
"policies": {
"Proxy": {
"Mode": "autoConfig",
"AutoConfigURL": "https://proxy.example.com/proxy.pac",
"Locked": true
}
}
}

Set HTTPProxy to the proxy's host name and port, without http://. The UseHTTPProxyForAllProtocols value also sends HTTPS sites through the proxy. In this example, omitting UseHTTPProxyForAllProtocols would make HTTPS requests bypass the proxy.

Passthrough specifies a comma-separated list of sites that won't use the proxy. In this example:

  • <local> matches host names without a dot, like intranet.
  • example.com matches example.com and all of its subdomains.
  • 10.0.0.0/8 only matches sites visited by IP address, not host names that resolve to an address in that range.

By default, Firefox bypasses the proxy for localhost, 127.0.0.1, and ::1, so you don't need to list them explicitly:

{
"policies": {
"Proxy": {
"Mode": "manual",
"HTTPProxy": "proxy.example.com:8080",
"UseHTTPProxyForAllProtocols": true,
"Passthrough": "<local>, example.com, 10.0.0.0/8",
"Locked": true
}
}
}

Using the operating system's proxy settings

Section titled “Using the operating system's proxy settings”

Firefox uses the system proxy settings by default. If you already manage the proxy in the operating system via Group Policy or a configuration profile, lock this Mode so users can't set a different proxy in Firefox:

{
"policies": {
"Proxy": {
"Mode": "system",
"Locked": true
}
}
}
Software\Policies\Mozilla\Firefox\Proxy\Mode = "none" | "system" | "manual" | "autoDetect" | "autoConfig"
Software\Policies\Mozilla\Firefox\Proxy\Locked = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\Proxy\HTTPProxy = httpproxy.example.com:8080
Software\Policies\Mozilla\Firefox\Proxy\UseHTTPProxyForAllProtocols = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\Proxy\SSLProxy = sslproxy.example.com:8080
Software\Policies\Mozilla\Firefox\Proxy\SOCKSProxy = socksproxy.example.com:1080
Software\Policies\Mozilla\Firefox\Proxy\SOCKSVersion = 0x4 | 0x5
Software\Policies\Mozilla\Firefox\Proxy\Passthrough = <local>
Software\Policies\Mozilla\Firefox\Proxy\AutoConfigURL = URL_TO_AUTOCONFIG
Software\Policies\Mozilla\Firefox\Proxy\AutoLogin = 0x1 | 0x0
Software\Policies\Mozilla\Firefox\Proxy\UseProxyForDNS = 0x1 | 0x0
<dict>
<key>Proxy</key>
<dict>
<key>Mode</key>
<string>none | system | manual | autoDetect | autoConfig</string>
<key>Locked</key>
<true/> | <false/>
<key>HTTPProxy</key>
<string>httpproxy.example.com:8080</string>
<key>UseHTTPProxyForAllProtocols</key>
<true/> | <false/>
<key>SSLProxy</key>
<string>sslproxy.example.com:8080</string>
<key>SOCKSProxy</key>
<string>socksproxy.example.com:1080</string>
<key>SOCKSVersion</key>
<integer>4</integer> | <integer>5</integer>
<key>Passthrough</key>
<string>&lt;local&gt;</string>
<key>AutoConfigURL</key>
<string>URL_TO_AUTOCONFIG</string>
<key>AutoLogin</key>
<true/> | <false/>
<key>UseProxyForDNS</key>
<true/> | <false/>
</dict>
</dict>
FirefoxFirefox ESRFirefox Enterprise
Available since 60Available since 60Available since 149

CCK2 Equivalent: networkProxy*
OMA-URI: Proxy
Preferences Affected: network.proxy.type, network.proxy.autoconfig_url, network.proxy.socks_remote_dns, network.proxy.socks5_remote_dns, signon.autologin.proxy, network.proxy.socks_version, network.proxy.no_proxies_on, network.proxy.share_proxy_settings, network.proxy.http, network.proxy.http_port, network.proxy.ssl, network.proxy.ssl_port, network.proxy.socks, network.proxy.socks_port

  • Certificates policy to install your organization's root certificate if your proxy inspects HTTPS traffic.