Explainer6 November 20267 min read

When your proxy stops working, where does your traffic go?

When a proxy fails, does your traffic quietly go direct? Fail-closed and kill switches explained, what our extension leaves off, and what ProxyDesk does.

A proxy can fail in two ways. Loudly: the page does not load and you get an error. Or quietly: the page loads anyway, from your own connection, and nothing tells you. The quiet way is usually the worse one, because you find out later, from a log or from a site that saw your home address when it was meant to see the proxy's.

The short answer for our two tools: ProxyDesk always fails loudly. There is no setting for it; it refuses the connection. Our browser extension gives you the choice with two switches, Block traffic if the proxy fails and Kill switch, and both are off until you turn them on.

Fail open and fail closed, in plain words

Fail open means that when the proxy is gone, traffic carries on without it. Fail closed means that when the proxy is gone, traffic stops. Neither is wrong in general. Failing open keeps a page working. Failing closed keeps you from sending something from an address you did not mean to use. What matters is knowing which one you have, before it happens.

ProxyDesk: closed, every time

ProxyDesk gives your apps one local address, 127.0.0.1:11080 for SOCKS5 and 127.0.0.1:18080 for HTTP, and sends each new connection through one of your proxies. For each connection it tries up to three proxies from your list. A proxy that fails is taken out of the rotation and tested again after 5 minutes, then after waits that double up to 30 minutes, until it passes. If no proxy can take the connection, ProxyDesk refuses it. It never falls back to your own connection.

We built ProxyDesk's engine from its source, put one proxy behind it, and then stopped that proxy, to see exactly what an app gets back:

$ curl -x socks5h://127.0.0.1:11080 https://api.ipify.org
curl: (97) cannot complete SOCKS5 connection to api.ipify.org. (1)

$ curl -x http://127.0.0.1:18080 https://api.ipify.org
curl: (7) CONNECT tunnel failed, response 502

The number at the end of the SOCKS5 line is the reply code ProxyDesk sent. It was 1 here because ProxyDesk tried the proxy and the attempt failed. Once the failed proxy is out of the rotation and nothing is left to try, the code becomes 2, "connection not allowed by ruleset". A plain http:// request through the HTTP address gets a 502 with the text no healthy upstream available. A Python script using requests gets a ProxyError for every request, with nothing fetched. None of them reached the site from our own address.

Each refused connection also lands in ProxyDesk's Activity list with its cause, so afterwards you can see what was refused and why. The ProxyDesk guide shows where.

The one thing ProxyDesk cannot do is cover apps you did not point at it. Only programs set to use its two local addresses go through it; the rest of your computer connects as it always has. It also carries no UDP, so anything that uses UDP goes around it.

The extension: two switches, both off by default

In the extension's Settings, under Connection safety:

  • Block traffic if the proxy fails. In the extension's own words: if the proxy rejects your login or cannot be reached, the browser loads nothing instead of going direct. Connect again to retry.
  • Kill switch. Blocks all browser traffic right now, whether or not a proxy is on, until you switch it off. It is also a button at the top of the popup, and the extension offers a keyboard shortcut for it, Alt+Shift+K, which you can change in the browser's shortcut settings.

Both start off. So do the extension's other safety settings: failover, WebRTC leak protection and reloading tabs when the proxy changes.

Both switches block the same way. The extension points the browser at a proxy address on your own machine, port 9 on 127.0.0.1, where nothing listens. Every request fails there, including sites on your bypass list, so nothing reaches a website by any route. In Chrome that shows up as Chrome reporting it cannot reach the proxy; our post on Chrome proxy errors explains that message. The popup says Traffic blocked, names the switch that did it, and offers the way back: Turn off kill switch, or Reconnect.

What happens with them off

With Block traffic if the proxy fails off, the extension does not step in when the proxy fails. The popup turns red and says which failure it saw: the proxy rejected the credentials, or the proxy was unreachable. It leaves your routing as it was, so what the browser then does with the failed requests is up to the browser. Sites on your bypass list keep loading directly, as they always do. If you want to be sure nothing goes direct, turn the switch on rather than relying on the browser.

With the Kill switch off, nothing changes. It only acts while it is on.

Failover, also off by default, sits next to them. When the connected proxy stops answering or refuses the login, it tests the proxies in your fallback order and the first that works takes over; one round tries at most three. With Block traffic if the proxy fails also on, the browser stays blocked until a proxy passes its test, so pages do not go direct in between. While the kill switch is on, failover does not run at all, and neither do tests.

Which ones to turn on

  • Block traffic if the proxy fails, when a page leaving from your own address would cost you something. Add failover if you would rather carry on through another proxy than stop.
  • Kill switch, for the moments when the browser should load nothing at all: while you swap proxies, or before you open tabs that must not load from your own address.
  • Neither, for a browser that uses the proxy for a few listed sites, where the bypass list or Allow only already decides what goes where.

What none of these switches cover

  • Other apps. The extension only changes this browser's proxy. For scripts and desktop tools, ProxyDesk covers the apps you point at it, and fails closed for them.
  • WebRTC. A page can ask the browser for a direct route that goes around the proxy. That is a separate setting, and WebRTC leaks in plain words covers what it stops and what it does not.
  • Private windows, unless you allow the extension there. Without that, a Firefox private window connects directly with your own IP.

Quick answers

Does the extension send my traffic direct when the proxy fails? Not by choice. With Block traffic if the proxy fails on, a failed proxy blocks every request in the browser. With it off, the extension leaves your routing as it was and tells you what failed, and the browser decides what to do with the failed requests. Turn the switch on if you want to be certain.

Does ProxyDesk ever send traffic from my own IP? Not for apps pointed at it. When no proxy works, it refuses the connection. Apps that are not pointed at ProxyDesk never used it in the first place.

Where is the kill switch? In the popup and in Settings, under Connection safety. Turning it on blocks everything in the browser at once, and proxy tests wait until you turn it off.

Do failed connections cost anything? Failed connections bill zero: timeouts, resets and errors from our own gateway. Anything the target site sends back is traffic, because inside an HTTPS tunnel the meter cannot see a status code. A connection that ProxyDesk or the extension blocks on your own machine never reaches a proxy at all. The honesty page explains how the meter counts.

Next step

The browser extension guide and the ProxyDesk guide cover setup step by step. The extension page and the ProxyDesk page list what each one does.

Got a follow-up question?

Ask it in Discord. The answer helps whoever reads the thread next.

Join the Discorddiscord.gg/eanHcCQT7n
Start with $5Ask in Discord