Three modes, three independent branches

godusevpn has rule, global and direct modes. They are three separate branches in the routing table; switching between them does not restart the core or drop the tunnel, and takes effect almost at once.

TUN brings traffic in, and the mode decides where it goes afterwards. So "TUN is on" does not mean "everything is proxied": in rule mode, a connection that matches a direct rule still leaves over the local network.

Rule mode starts with just three rules

From top to bottom: LAN and private addresses go direct; mainland China domains and IPs go direct; everything else goes through the proxy. Each of them can be changed, for example sending mainland sites through the proxy too, or sending the rest direct. One click restores the defaults.

The mainland rule uses the geosite-cn and geoip-cn rule sets from sing-box, bundled with the installer, so it works offline. Domains are checked first; a domain that is not on the list is then judged by the IP it resolves to.

DNS follows the rules

Deciding where a connection goes requires knowing which side its domain is on, so resolution is split too: mainland domains are looked up directly through the local encrypted resolver, which returns an address close to you; other domains are looked up through the proxy, so the local network does not see what you asked.

With fake-ip, a proxied domain only gets a placeholder address on your device, and the real lookup happens on the node side. That is why a blocked site is never resolved locally first in rule mode.

Where custom rule groups sit

To pin a service to one node, or keep an app always direct, add a rule group: give it a name, pick an exit (proxy, direct, reject, auto-select or a specific node) and add conditions. Conditions can be a domain suffix, a keyword, an IP range, a port, a process name, or a geosite or geoip category, and any one match is enough.

Custom groups come before the built-in mainland rule, so you can send a mainland site through the proxy. For a group whose exit is the proxy, DNS for its domains moves to the proxy side as well. A geosite category beyond the bundled ones is downloaded after connecting and applies from the next connection.

When to switch to global

In rule mode, mainland sites see your local address. That is what split routing means, not a leak. If you need every external connection to leave through the node, for example on public Wi-Fi you do not trust, use global mode.

Global mode with leak protection on is the strictest: apart from the tunnel itself and the LAN, nothing may bypass the tunnel, and traffic waits while the tunnel is down. The price is that mainland sites take the long way too, and both speed and metered traffic include the node multiplier.

Pick by situation

When unsure, start with rule mode, check where a few connections go on the connections page, then decide whether to switch.

  • Everyday use: rule mode, with mainland apps on the local network, which is faster and saves traffic
  • Public Wi-Fi, or not wanting to expose your local address: global mode, and confirm the home page shows leak protection on
  • Changing the exit for a single app or site: add a custom rule group in rule mode
  • Temporarily everything over the local network: direct mode; the tunnel stays, ready to switch back