Skip to content
CMFA Guide

TUN mode and the system proxy

One switch decides whether only the browser is proxied or the whole device is. Without this distinction, most "this one app cannot connect" cases stay unexplained.

Two modes, one dividing line

System proxy: CMFA attaches its local HTTP proxy to VpnService. Apps only use it if they read the system proxy setting — browsers and most download managers do; many native apps, games and messengers do not.

TUN mode: CMFA creates a virtual network interface, takes over all IP traffic, and routes it by rule. Apps need no proxy support and are not aware of being proxied. The cost is one extra hop, and a small number of apps notice the network change.

In the UI both live under Override: "Route system traffic" is the TUN master switch, and "System proxy" is the HTTP-only path.

When TUN is required

SituationTUNWhy
Only the browser needs to reach outsideNot neededThe system proxy is enough, with one less hop
Games and proxy-unaware apps need itRequiredThey never read the system proxy setting
In-app push and WebView requests tooRequiredWebView frequently ignores the system proxy
Using the phone as a hotspotRequiredHotspot traffic does not enter the system proxy
Per-app routingRequiredAccess control only works fully under TUN

Scroll the table sideways

With TUN on, some banking apps restrict features when they detect a VPN. That is not a CMFA defect — exclude them in Access control.

Turning TUN on and proving it

  1. 01

    Open Override

    Gear icon on the Settings tab, or the Override entry at the top, depending on the build.

  2. 02

    Enable "Route system traffic"

    Described as routing all system traffic through VpnService. No restart needed; the service rebuilds itself.

  3. 03

    Enable "DNS hijacking" if needed

    Described as handling all DNS packets. Left off, some apps resolve around the core, and fake-ip stops applying. If pages load but apps fail, turn this on first.

  4. 04

    Exclude apps that must not be proxied

    Access control → mode "Disallow selected apps" → tick banking and intranet apps.

  5. 05

    Verify

    Open a site only reachable outside your network. Then open a proxy-unaware game — if both work, routing is correct.

Conflicts with other VPNs and Private DNS

Android allows exactly one active VpnService. Start another VPN client while CMFA runs and the system stops CMFA outright: the notification icon vanishes and traffic falls back to direct.

Since Android 9 there is Private DNS (Settings → Network → Private DNS). With a provider hostname set, the system forces DoT and bypasses the core's DNS handling, which shows up as broken resolution and dead fake-ip. Set it to Automatic or Off while using CMFA.

  • If two proxies must coexist, one takes TUN and the other is chained as an HTTP proxy.
  • VPN profiles pushed by corporate MDM rank higher and can suppress CMFA entirely.
  • "Always-on VPN" and "Block connections without VPN" live in system VPN settings; enabling either by accident cuts the device off.

TUN made it slower

TUN adds one userspace forwarding layer. On weak CPUs that is measurable during large downloads. For browsing, turning TUN off and using the system proxy is faster. If you keep it, disable "unified delay" and set the log level to warning to trim overhead.

TUN questions

It asks for VPN permission every time
You did not tick "Always allow". Some ROMs re-prompt on every start until you do. Clearing VPN authorisations in system settings resets the prompts.
Some apps report a network error under TUN
They detected a VPN or proxy. Exclude them through access control so they go direct. Not every app tolerates a TUN environment.
What does "Allow bypass" do?
It lets other apps bypass the VPN and connect directly. Off is stricter; on is more compatible but routing is no longer airtight.
Should "Block loopback" be on?
Off by default. On, it blocks 127.0.0.1, which stops local probing by some apps but also breaks development against local ports.