Rule Example
Conditions, Order, and Policy
This rule sends requests matching example.com and its subdomains to PROXY. The latter is a policy reference and must match a name in the active configuration. It is not a server address, and this line alone cannot establish a connection.
DOMAIN-SUFFIX,example.com,PROXY
GEOIP,CN,DIRECT
FINAL,PROXY
This example illustrates rule syntax. GEOIP checks the geographic location associated with an address, while FINAL handles requests that did not match earlier rules. The actual route also depends on DNS results, rule order, and the selected policy.
Read the Global Routing and Rules Guide →
Connection Triggers
Test Manually Before Enabling Conditions
Start by checking On Demand in Settings. Keep connections manual while confirming that the server and configuration work. Then enable conditions and observe when the system establishes a connection. Condition matching and rule-based routing operate at different levels and should be tested separately.
Settings
On Demand
Home
Global Routing
Connectivity Test
If connections restart repeatedly, note the network conditions and toggle actions. Don’t change the configuration and server at the same time. Narrow the trigger conditions first, then decide whether rules also need adjustment.
See Settings and Maintenance →
Use Your Existing Server Details
Type Determines the Parameter Format
After selecting Type, check the corresponding fields. The same address and port do not mean two protocols are compatible. Passwords, keys, transport settings, and TLS requirements must match the server details; don’t infer missing parameters from the protocol name.
- Shadowsocks / VMess / VLESS
- Trojan / HTTP / SOCKS5
- WireGuard / Hysteria2
Manual entry makes it easier to check each field, while QR codes and share links reduce typing. Whichever method you use, check Type and the key fields after importing, then test the connection.
See Protocol Terms →
Import an Existing Configuration
Identify the Content Before Choosing an Import Option
After importing a subscription, check that all entries are present, that your previous selection is still available, and whether any parameters changed during the update. Seeing servers in a list does not mean they’ve been verified. Select an entry and test an actual request.
Subscribe
Add Server
Scan QR Code
Import from Cloud JSON
These import options handle different content types. If recognition fails, confirm the format provided by the source and that you used the matching option. Check for extra spaces or line breaks from copying, and never publicly share a complete URL that contains credentials.
Follow the Guide to Import an Existing Subscription →
Configuration Maintenance
Save, Select, and Restore
After editing a configuration, confirm that it was saved and is selected. General contains global settings, Rule defines request matching, and Hosts specifies name resolution. Content from one section cannot be moved arbitrarily to another.
[General]
[Rule]
DOMAIN-SUFFIX,example.com,PROXY
FINAL,DIRECT
[Hosts]
This is an example of how to read configuration sections, not a complete connection setup. Keep a copy before making changes, then check the file contents after syncing across devices. If the result differs from what you expect, restore a known working state and compare changes one at a time.
Read the Configuration Management Guide →
Troubleshoot by Layer
Check Test Results Separately from Actual Requests
First confirm that the device’s basic network connection works, then check server authentication and run a connection test. If the test succeeds but a request to a specific destination fails, check Global Routing, DNS, and rules. Don’t assume both symptoms have the same cause.
Home → Connectivity Test
Data
Settings → Diagnostics
Traffic in Data only indicates that requests are being made. When comparing destinations or networks, keep the configuration and server selection the same and note the error text. Change one variable at a time to link results to a specific change.
Read the Connection Troubleshooting Guide →