Skip to content

Proxy Router Routing Rules: Direct, Block and Presets

Ask AI

Ready taskDo it with me, step by step

Chat assistants

Open in ChatGPTNew tabOpen in ClaudeNew tab

Coding agents

Claude CodeOpens the desktop appCodexOpens the desktop appCursorOpens the app from the web

Copy

View as MarkdownPlain text for AI tools
See the prompt
Read https://xproxy.io/document/proxy-router-routing.md, the XProxy guide "Proxy Router Routing Rules: Direct, Block and Presets". If you cannot open links, download them with curl. Then take me through it one step at a time: tell me exactly what to click or type, wait until I say it is done, and help me when what I see is different from the guide. Start by asking what I have (hardware, XProxy version, what I see now).
Other XProxy guides, each with a Markdown copy at its URL + .md, are listed in https://xproxy.io/llms.txt.

The app opens with the prompt filled in. Nothing runs until you press Enter.

Routing rules decide which sites skip the proxy and which are blocked, for all devices or for one. The main reason to use them is to save proxy data: heavy traffic that does not need a proxy goes out directly. Everything else keeps going through the device's proxy.

You need: the dashboard open and at least one device with a proxy (Devices).

Go direct and Block

  • Go direct: the site is reached from the router's own internet connection instead of the proxy. The site sees your real IP, not the proxy's.
  • Block: the connection is dropped. The app on the device sees a failed connection.

Step 1 of 3

Open Routing

Click Routing in the menu. Two boxes sit side by side: 1 Go direct and 2 Block. The Save & apply button 3 stays grey until you change something. The grey text 4 under the boxes lists what you can type.

These rules apply to every device that has a proxy. Devices without a proxy are not affected.

What can I type in a rule?

LineWhat it matches
example.comThe site and all its subdomains.
*.example.comThe subdomains of the site.
https://example.com/pageA URL: only the domain counts, because the path is encrypted. A note tells you the path was ignored.
1.2.3.4One IP address.
10.0.0.0/8A whole network.
domain:example.comSame as the plain site name.
full:www.example.comExactly this name, no subdomains.
keyword:trackerAny name that contains the word.
regexp:^ads[0-9]+\.example\.com$A pattern, for experts.
geosite:category-ads-allA ready-made group of sites. The group must exist on the router.
geoip:usA group of addresses by country. The group must exist on the router.
# a noteA comment. Ignored.
A “direct” rule that matches every site is refused. That includes 0.0.0.0/0, any network larger than /8, a pattern that matches everything and a one-letter keyword. It would show your real IP everywhere.

In what order are rules checked?

  1. The device's own rules (in its panel, see Rules for one device).
  2. The router-wide Go direct and Block lists on this page.
  3. The block presets you turned on.
  4. Everything else goes through the device's proxy.

The first rule that matches wins.

FakeDNS and IP rules. A device on FakeDNS (the default) is seen by the router by site name, not by address, so a rule written as an IP address, a network or geoip: may not match its connections. Name rules always do. This is safe: the traffic simply stays on the proxy. Use name rules, or set that device's DNS to DoH via proxy (see DNS mode).

Block presets

Presets are ready-made block lists. All three are off until you turn them on, and they apply to every device with a proxy.

The Block presets card with Ads and trackers and Anti-fraud scripts turned on, the warning under Anti-fraud scripts and the memory line (demo data)
1 Ads and trackers · 2 Anti-fraud scripts · 3 the warning that blocking anti-fraud scripts does not hide the device · 4 how much memory the router has left
PresetWhat it blocksGood to know
Ads and trackersBlocks ad and tracking networks.Blocks only what the list holds. If the list is missing from the router, the preset says Not available and blocks nothing: update the router.
Anti-fraud scriptsBlocks device-fingerprint and bot-detection vendors (30 domains).Blocking these does not hide the device. Sites then decide without their data and often ask for more checks or decline payments. Turn on only if you know you need it.
OS telemetryBlocks the diagnostics uploads of Windows, Android/Firebase, Xiaomi, Samsung and Apple (52 domains).Push messages, updates and connectivity checks are never blocked.

The Memory line shows how much memory the router has free. Each device that has its own rules runs its own copy of the lists, so many presets and many rules use memory. If the router runs low, a yellow warning appears: turn on fewer presets or remove rules. Click Save & apply after changing a preset.

Rules for one device

One device needs an exception? Open it on Devices and scroll to Routing rules for this device. It is the same editor, for that device only.

Routing rules for this device in the device panel: the Go direct box, the Block box, the preset tick boxes and the link to the router-wide rules (demo data)
1 Go direct · 2 Block · 3 presets for this device · 4 the router-wide rules
  • They are checked before the router-wide rules, and they stay with the device (by its hardware address) when its IP changes.
  • Click Save & apply in the panel. Empty boxes and no presets remove the device's rules.
  • If the router does not know the device's hardware address yet, the panel says so. Wait until the device has been seen on the network.

Save proxy data with Go direct

Mobile and other metered proxies charge or limit data. Heavy traffic that does not need a proxy can leave through the router's own connection with a Go direct rule.

Heavy trafficExample domains
Operating system updateswindowsupdate.com, delivery.mp.microsoft.com, swcdn.apple.com, swscan.apple.com
Browser and Android updates, downloadsdl.google.com, gvt1.com
App store picturesmzstatic.com (icons and screenshots, not the store login)
Video and streaming mediathe media domain of your streaming service, never its account or login domain
Big downloadsthe file host you download from
A direct site sees your real IP, and links your devices. Every device that uses the rule shows the same IP to that site. So never send direct the site or app whose account you manage, or its login, payment and anti-fraud domains. Use Go direct only for heavy traffic from services that have nothing to do with your accounts.

How to find the heavy sites: on Devices the Traffic column shows which device uses the most. Then turn on Record connections in Logs, filter by that device and see which sites repeat while it downloads. Turn the log off again afterwards.

FAQ

Do my devices go offline when I save?

For a few seconds: the proxy service restarts. Devices with a proxy stay protected during that time. They are offline, not direct.

The router got slow after I turned on presets

Look at the Memory line, then turn off presets you do not need or remove rules.

My IP rule does not match a device

The device is on FakeDNS, so the router sees names, not addresses. Use name rules, or set that device's DNS to DoH via proxy.

“Some lines were not accepted; nothing was changed.”

Read the red message under the box: it names the line and the reason. Fix or remove that line and save again.

What next?

See what the router blocked and which sites your devices opened.

Still stuck?A technician can look at your device with a one-time PIN, or chat with us on Telegram.