The proxy stops working when the VPN is on
A debugging proxy, a VPN, an antivirus that scans HTTPS and a corporate proxy all compete for the same traffic. How to find which one took it, and how to chain them.
Why they conflict
A VPN client, an HTTPS-scanning antivirus and a corporate proxy each sit between the app and the network, like the debugging proxy. The one that intercepts first, or wrote the system setting last, wins. Turn one of them off, or chain them.
Find who took the traffic
-
Turn the VPN off. If requests appear, it is the VPN.
-
Check the system proxy with both running.
# macOS scutil --proxy # Linux, GNOME gsettings get org.gnome.system.proxy mode gsettings get org.gnome.system.proxy.https host# Windows Get-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | Select-Object ProxyEnable, ProxyServer, AutoConfigURLIt should show the debugging proxy's address, such as
127.0.0.1:7070. Another address or a PAC URL (ProxyAutoConfigURLStringon macOS,AutoConfigURLon Windows) means the VPN rewrote the setting. -
Check who issued the certificate. Click the icon left of the address, open the certificate details and look at Issued by. An antivirus or company name instead of the debugging proxy's root means someone else decrypts HTTPS.
A VPN on the same computer
Order. In Solpuga, start capture first, then connect the VPN. If a VPN is already connected when capture starts, a VPN badge with the same advice appears in the window's title bar.
The VPN replaced the system proxy. Corporate VPNs often push a PAC file or proxy on connect and rewrite the system setting. If the VPN does it on every reconnect, point the app at the debugging proxy by hand.
The VPN client runs a local proxy. Many circumvention clients do not create
a tunnel. They run a proxy on your computer and write its address into the
system settings. You can tell such a client by the 127.0.0.1 address that
appears there once it is on. The debugging proxy writes its own address there,
and whichever wrote last gets the traffic.
To make both work, chain them. The app sends requests to the debugging proxy, and the debugging proxy forwards them to the VPN client's proxy. In Solpuga, turn the VPN client on first, then start capture. Solpuga remembers the client's proxy and sends traffic through it.
Per-app split tunnelling. With the debugging proxy on, it opens the server connections, not the browser. It is not on the tunnel list, so internal addresses stop opening. Add it to the VPN's app list.
No local network access. Some VPNs block incoming LAN connections. The computer works, but a phone cannot reach the proxy. Turn on the client's Allow local network access option.
A VPN on the phone
A phone VPN takes all traffic, and the Wi-Fi proxy setting stops applying. Turn it off while debugging. Other steps are in the guide on traffic from a phone.
An antivirus that scans HTTPS
It decrypts HTTPS with its own root certificate, so there are two interceptors in a row. Connections fail, or the browser shows the antivirus's certificate. Turn scanning off or exclude the debugging proxy. In Kaspersky this is Encrypted connections scanning, in ESET SSL/TLS protocol filtering; elsewhere look for "HTTPS", "SSL" or "encrypted connections".
A corporate proxy
If the internet is reachable only through a corporate proxy, the debugging proxy must send requests through it.
If it asks for a password or domain authentication (NTLM, Kerberos) the
debugging proxy cannot pass, put a local authenticating proxy, such as px or
Cntlm, in between. It listens on 127.0.0.1 and asks for no password.
If the company decrypts HTTPS, the debugging proxy must trust the company's root certificate or skip upstream certificate verification.
See it on your own traffic
In Solpuga the chain is turned on by Settings → Proxy →
Use the system proxy as upstream, on by default. The proxy or PAC file the
system had when Solpuga set itself as the system proxy, such as the company's
or a circumvention client's, becomes its upstream. A setting a VPN writes later
is not picked up. A proxy that asks for authentication (put px or Cntlm in
between), SOCKS and automatic detection (WPAD) are not used as upstream.
Upstream certificates are not verified while Strict TLS validation is off,
which is the default, so a corporate proxy that decrypts HTTPS works. Known
conflicts are listed in the system requirements, other options
in Settings.
Related
- Why an HTTPS proxy does not see an app's trafficThe proxy is set up and the certificate is installed, yet the app's requests are missing or die in the TLS handshake. Six scenarios, with a network-level diagram of each and what it looks like in the proxy.
- How to see the traffic from an iPhone or an Android phonePhone and computer on one Wi-Fi, a proxy in the network settings, a root certificate with full trust. Four steps, and the five things that break them.
- ERR_CERT_AUTHORITY_INVALID through a proxy — how to fix itChrome does not trust the proxy's root certificate. Where to install it on macOS, Windows and Linux, and which browsers and tools ignore the system store.