Firefox's Built-In Proxy Advantage
Firefox is unique among major browsers because it includes its own proxy settings, independent of the operating system. This means you can configure a proxy in Firefox without affecting Chrome, Safari, or any other application on your computer. This isolation makes Firefox an excellent choice for proxy users who want dedicated proxy browsing alongside their normal browser.
Method 1: Manual Proxy Configuration
Accessing Proxy Settings
There are three ways to reach Firefox proxy settings:
- Menu: Settings → General → Network Settings → Settings...
- Address bar: Type
about:preferences#generaland scroll to Network Settings - Quick access: Type
about:preferencesthen search for "proxy"
HTTP/HTTPS Proxy Setup
In the Connection Settings dialog:
- Select Manual proxy configuration
- Enter the following:
HTTP Proxy: gate.hexproxies.com Port: 8080- Check Also use this proxy for HTTPS
This routes both HTTP and HTTPS traffic through the Hex Proxies gateway. Firefox will prompt for authentication on your first request — enter your Hex Proxies username and password. Check "Remember" to cache credentials for the session.
Separate HTTP and HTTPS Proxies
For advanced configurations, you can specify different proxies for each protocol:
HTTP Proxy: gate.hexproxies.com Port: 8080
HTTPS Proxy: gate.hexproxies.com Port: 8080
SOCKS Host: gate.hexproxies.com Port: 1080This is useful when your proxy provider assigns different ports for different protocols.
Method 2: SOCKS5 Proxy Configuration
SOCKS5 is preferred for users who need full protocol coverage (not just HTTP/HTTPS), UDP support, and minimal header modification.
Setup Steps
- Open Connection Settings
- Select Manual proxy configuration
- Leave HTTP Proxy and HTTPS Proxy fields empty
- Enter in SOCKS Host:
SOCKS Host: gate.hexproxies.com Port: 1080- Select SOCKS v5
- Check Proxy DNS when using SOCKS v5
The "Proxy DNS" checkbox is critical — without it, DNS queries bypass the proxy and resolve through your ISP, leaking your real location.
SOCKS5 vs HTTP Proxy Comparison
- SOCKS5 handles all traffic types (TCP/UDP), does not modify headers, and provides better anonymity
- HTTP proxy only handles HTTP/HTTPS, may add X-Forwarded-For headers, but supports content caching
- For web scraping and anonymity, SOCKS5 is generally superior
- For content filtering and caching, HTTP proxy has advantages
Method 3: PAC File (Proxy Auto-Configuration)
PAC files let you define complex routing rules using JavaScript. Firefox natively supports PAC files — no extensions needed.
Creating a PAC File for Hex Proxies
Create a file named proxy.pac with the following content:
function FindProxyForURL(url, host) {
// Bypass proxy for local addresses
if (isPlainHostName(host) ||
host === "localhost" ||
host === "127.0.0.1") {
return "DIRECT";
}
// Route specific domains through Hex Proxies
if (dnsDomainIs(host, ".targetsite.com") ||
dnsDomainIs(host, ".example.com")) {
return "PROXY gate.hexproxies.com:8080; DIRECT";
}
// Default: direct connection
return "DIRECT";
}Loading the PAC File in Firefox
- Open Connection Settings
- Select Automatic proxy configuration URL
- Enter the file path:
file:///Users/you/proxy.pac(macOS/Linux) orfile:///C:/Users/you/proxy.pac(Windows) - Click Reload then OK
For remote PAC files, enter the URL: https://your-server.com/proxy.pac
Method 4: about:config Advanced Tweaks
Firefox's about:config editor provides fine-grained proxy control beyond the GUI.
Useful Proxy-Related Preferences
Type about:config in the address bar and search for these keys:
network.proxy.type
0 = Direct (no proxy)
1 = Manual proxy configuration
2 = PAC file
4 = Auto-detect (WPAD)
5 = System proxy settings
network.proxy.http → gate.hexproxies.com
network.proxy.http_port → 8080
network.proxy.ssl → gate.hexproxies.com
network.proxy.ssl_port → 8080
network.proxy.socks → gate.hexproxies.com
network.proxy.socks_port → 1080
network.proxy.socks_version → 5
network.proxy.socks_remote_dns → true
network.proxy.no_proxies_on → localhost, 127.0.0.1Disabling WebRTC IP Leak
WebRTC can reveal your real IP even when using a proxy. Disable it in Firefox:
media.peerconnection.enabled → falseOr limit it to proxy connections only:
media.peerconnection.ice.default_address_only → true
media.peerconnection.ice.no_host → trueHex Proxies Integration
Session Management
Control IP rotation through your username format:
Rotating (new IP every request):
Username: YOUR_USERNAME
Password: YOUR_PASSWORD
Sticky (same IP for session):
Username: YOUR_USERNAME-session-firefox01
Password: YOUR_PASSWORDChange the session identifier (firefox01) to rotate to a new sticky IP.
Geographic Targeting
Append a country code to target specific locations:
Username: YOUR_USERNAME-country-us
Username: YOUR_USERNAME-country-de-session-sess01Storing Credentials
Firefox stores proxy credentials in its built-in password manager. To manage saved proxy passwords:
- Navigate to
about:logins - Search for "gate.hexproxies.com"
- Edit or delete saved proxy credentials as needed
Firefox Multi-Account Containers Integration
Firefox Multi-Account Containers can be combined with proxy settings for isolated browsing contexts. While containers do not natively support per-container proxies, the Container Proxy extension adds this capability:
- Install Multi-Account Containers and Container Proxy extensions
- Create a container named "Hex Proxies"
- Assign your Hex Proxies proxy settings to that container
- Tabs opened in the "Hex Proxies" container route through the proxy while other tabs connect directly
Troubleshooting
"The proxy server is refusing connections"
- Verify the host and port are correct in Connection Settings
- Check that your Hex Proxies plan is active
- Test connectivity: open a terminal and run
curl -x http://gate.hexproxies.com:8080 https://httpbin.org/ip
Authentication popup keeps appearing
- Clear saved passwords for the proxy host at
about:logins - Re-enter credentials and check "Remember this password"
- Verify your username/password in the Hex Proxies dashboard
Proxy works for HTTP but not HTTPS
- Ensure you checked "Also use this proxy for HTTPS" or separately configured the HTTPS proxy field
- Verify
network.proxy.sslandnetwork.proxy.ssl_portare set inabout:config
WebRTC IP leak
- Set
media.peerconnection.enabledtofalseinabout:config - Alternatively, install the uBlock Origin extension which can block WebRTC leaks
FAQ
Does Firefox use system proxy settings by default?
No. Firefox uses its own proxy settings by default (set to "Use system proxy settings" initially, but this can be changed). You can configure Firefox independently of your OS proxy.
Can I quickly switch between proxy and direct connection?
Yes. Use the FoxyProxy extension for one-click proxy switching, or create bookmarklets that toggle network.proxy.type between 0 (direct) and 1 (manual).
Does Firefox support authenticated SOCKS5 proxies?
Yes. When you configure a SOCKS5 proxy with authentication, Firefox will prompt for credentials on the first connection and can save them in the password manager.
How do I configure a proxy for only private browsing windows?
Firefox does not natively support per-window proxy settings. Use Multi-Account Containers with the Container Proxy extension for isolated proxy contexts, or run a separate Firefox profile with distinct proxy settings.