2025 Firefox Proxy Setup Guide (Independent Proxy Configuration)

Complete 2025 Firefox proxy setup guide for independent proxy configuration separate from system settings.

16Yun Engineering TeamAug 8, 20257 min read

When to Use This

Firefox is one of the few browsers that can operate independently of the system proxy. You can let Chrome or Edge continue using the system network settings while Firefox uses a different proxy. This is especially useful when you need two different proxies simultaneously -- for example, daily browsing with a direct connection in Chrome and specific work tasks through a proxy in Firefox.

Note: Firefox proxy settings are completely independent. They do not affect other browsers, and other browsers' proxy settings do not affect Firefox.

Prerequisites

Before starting, confirm that you have the following proxy information ready:

FieldDescription
Proxy addressThe server hostname or IP address
Port numberTypically 8888 for HTTP, 1080 for SOCKS5
AuthenticationUsername and password if required
Protocol typeHTTP, HTTPS, or SOCKS5

Detailed Setup Steps

Step 1: Open Settings

Click the menu button (three horizontal lines) in the top-right corner of Firefox and select "Settings".

Step 2: Navigate to Network Settings

In the Settings page, select "Network Settings" from the left sidebar, then click the "Settings" button in the "Connection" section on the right.

Step 3: Choose Manual Proxy Configuration

In the dialog that opens, select "Manual proxy configuration". You will see several input fields corresponding to different proxy protocols.

Step 4: Enter Proxy Details

Fill in the fields based on your proxy type:

For HTTP proxy:

  • HTTP Proxy: enter proxy.16yun.cn, port 8888
  • Check "Also use this proxy for HTTPS" (optional)
  • SOCKS Host: leave blank

For SOCKS5 proxy:

  • SOCKS Host: enter proxy.16yun.cn, port 1080
  • Select SOCKS v5
  • Check "Proxy DNS when using SOCKS v5" (prevents DNS leaks)
  • HTTP Proxy: leave blank

Step 5: Exclude Local Addresses

In the "No proxy for" field, enter localhost, 127.0.0.1 so local addresses bypass the proxy.

Step 6: Save

Click "OK" to save. The settings take effect immediately -- no browser restart is required.

Verification

After setup, visit httpbin.org/ip to confirm the displayed IP address matches your proxy IP. Also visit a site you use regularly to ensure the proxy does not interfere with normal browsing.

Firefox Proxy Advantages

1. Independent of system proxy. Firefox proxy settings do not affect other browsers. Chrome can use the system proxy or direct connection while Firefox uses a different proxy, with no interference between them. This is especially useful in multi-task scenarios.

2. Built-in SOCKS5 with DNS proxy. Firefox supports SOCKS5 natively and includes a "Proxy DNS when using SOCKS v5" option. This prevents DNS leaks -- ensuring that domain names are resolved through the proxy rather than through local DNS, which could expose the sites you visit.

3. PAC auto-config support. Firefox supports PAC files that automatically decide whether to use a proxy based on the target domain. This is commonly used in enterprise environments for centralized proxy management.

PAC Proxy Configuration

PAC (Proxy Auto-Config) uses a JavaScript-based configuration file to determine whether each request should go through a proxy or connect directly. In Network Settings, select "Automatic proxy configuration URL", enter the PAC file URL, and Firefox will automatically evaluate the rules for every request.

Common Issues

Proxy configured but not working

Check the proxy address and port in the settings page. Firefox proxy settings take effect immediately -- no restart is needed. Make sure "Manual proxy configuration" is selected rather than "Use system proxy settings".

Does Firefox proxy affect other browsers?

No. Firefox proxy settings are completely independent. Chrome, Edge, and Safari are not affected by changes made in Firefox.

SOCKS5 proxy caveats

When configuring a SOCKS5 proxy, always check "Proxy DNS when using SOCKS v5". Without this, DNS requests are resolved through local DNS, potentially exposing the sites you visit even though the data traffic goes through the proxy.

How to disable the proxy

Go to the same settings page and select "No proxy". Firefox will revert to following the system proxy settings.

Firefox vs Chrome Proxy Comparison

AspectFirefoxChrome
Independent proxyBuilt-inRequires extension
SOCKS5 supportNativeRequires extension
DNS proxySupportedRequires extra config
PAC supportNativeFollows system settings
Configuration complexitySimpleSimple (extension learning)
Multi-profile managementManual (about:profiles)SwitchyOmega profiles

Privacy and Security

DNS over HTTPS (DoH). Firefox offers DNS over HTTPS, which encrypts DNS queries. Enable it in Settings -> Network Settings -> Enable DNS over HTTPS. This adds a layer of privacy on top of your proxy by ensuring DNS lookups are encrypted.

WebRTC protection. WebRTC can leak your real IP address even when a proxy is active. In Firefox, type about:config in the address bar, search for media.peerconnection.enabled, and set it to false to disable WebRTC and prevent IP leaks.

Multi-Profile Management (about:profiles)

While Firefox does not have a dedicated multi-profile proxy switcher like SwitchyOmega, you can achieve multi-proxy support by creating multiple Firefox profiles:

  1. Type about:profiles in the Firefox address bar
  2. Create a new profile dedicated to proxy browsing
  3. Configure the proxy in the new profile
  4. Launch the proxy profile when needed and the default profile for normal browsing

Each profile maintains its own proxy settings, allowing you to switch by opening different Firefox profiles.

Profile-Based Configuration (prefs.js)

Firefox proxy settings are stored in the user profile. For batch deployment or scripting, you can edit the configuration file directly:

  1. Close Firefox
  2. Open the Firefox profile directory (find it via about:support)
  3. Edit the prefs.js file and add these lines:
user_pref("network.proxy.type", 1);
user_pref("network.proxy.http", "proxy.16yun.cn");
user_pref("network.proxy.http_port", 8888);
user_pref("network.proxy.share_proxy_settings", true);
user_pref("network.proxy.no_proxies_on", "localhost, 127.0.0.1");
  1. Save the file and restart Firefox

This method is useful for deploying the same proxy configuration across multiple machines without manual setup.

Enterprise Deployment

In enterprise environments, IT administrators can manage Firefox proxy settings centrally:

  • CCK2: Firefox customization toolkit for preconfiguring proxy settings before deployment
  • Group Policy: Windows domain environments using Group Policy for Firefox configuration
  • autoconfig.cfg: Firefox auto-config script that applies proxy settings at startup

These approaches ensure all Firefox browsers in the organization use a uniform proxy configuration, reducing manual setup overhead.

Developer Tools Proxy Inspection

Firefox Developer Tools include network monitoring to confirm the proxy is active:

  1. Press F12 to open Developer Tools
  2. Switch to the "Network" tab
  3. Visit the target site
  4. Check the "Remote Address" column -- if it shows the proxy server IP instead of the target site IP, the request is going through the proxy

This method allows per-request proxy verification, which is more detailed than checking a single IP via httpbin.org.

Firefox Version Comparison

Firefox VersionSettings PathNotes
Firefox 78+Menu -> Options -> Network SettingsESR version same path
Firefox 90+Menu -> Settings -> Network SettingsMinor UI adjustment
Firefox 100+Same as aboveNo change
Firefox 130+ (current)Same as aboveCurrent version

Cross-Platform Notes

Firefox proxy settings are consistent across Windows, macOS, and Linux. The only difference is the menu label: Windows uses "Options", while macOS and Linux use "Preferences". The interface and options are identical.

Note: Firefox Sync does not synchronize proxy settings, so configure them separately on each device.

Performance Impact

Firefox proxy settings have minimal impact on browser performance. The proxy adds a small amount of network latency, but the browser overhead is negligible. If Firefox feels slower after enabling a proxy, the cause is typically the proxy node speed rather than the browser itself.

Firefox ESR

Firefox ESR (Extended Support Release) is widely used in enterprise environments. ESR proxy configuration is identical to the standard release, with a lower update frequency. This suits environments that prioritize stability over the latest features.

Container Tabs and Proxy

Firefox Multi-Account Containers allow different tabs to use separate session contexts. While containers do not directly support per-container proxy settings, you can create separate Firefox profiles -- one per container use case -- each with its own proxy configuration.

  • Chrome proxy setup guide
  • HTTP proxy vs SOCKS5 proxy comparison

Summary

Firefox is the only major browser with complete built-in proxy configuration. It supports HTTP, HTTPS, and SOCKS5 proxies without any extensions, including DNS proxy to prevent leaks. If you need per-browser proxy settings that do not affect other browsers, Firefox is the most convenient choice.

Proxy configuration does not have to be complicated. Choose the method that fits your use case: manual configuration for individual use, PAC for enterprise environments, or prefs.js editing for batch deployment. Always verify your setup by visiting httpbin.org/ip.

Need an enterprise proxy plan?

We can tailor architecture to your target domains, concurrency, and reliability goals.