Routing Rules Mode and Configuration
A practical guide to using Rule Mode, selecting Proxy Groups, updating rule sets, and verifying routing behavior in Clash Party.
This guide will teach you how to correctly use “Routing Rules” in Clash Party, helping you achieve common requirements like direct connection for local traffic, proxy for international traffic, and specific routing for services.
Select Proxy
Select the main node in Proxy Groups
Switch Mode
Set the proxy mode to 'Rule'
Verify
Test connectivity to confirm routing works
Subscription
Subscription imported and updated
Format Support
Subscription is in Clash format with rules
Nodes Visible
Nodes and groups appear in the main interface
Basic Concepts
- Rules: Determine traffic routing (Direct/Proxy/Reject) based on Domain, IP, Process, etc.
- Proxy Groups: The “destination” for matched rules, commonly “Proxy”, “Auto Select”, “Streaming”, etc.
- Profiles: Configuration provided by your service provider, usually containing Nodes, Rules, and Proxy Group definitions.
Info
Proxy Modes Explained
Clash Party generally provides the following modes (located on the main interface or settings page):
- Rule Mode: Automatically routes traffic according to the rule table (e.g., Local Direct, International Proxy).
- Global Mode: All traffic goes through the selected Proxy Group/Node.
- Direct Mode: No traffic goes through the proxy; everything is connected directly.
Tip
Step-by-Step Guide
Step 1: Select Default Outbound for Proxy Groups
- Open the Clash Party main interface and find “Proxy Groups”.
- In the “General/Main” group (often named Proxy, Selector, 🚀 Node Select, etc.), select your desired node or “Auto Select”.
- If your subscription includes groups like “Streaming”, “Social Media”, select different nodes for them to route traffic accordingly.
Step 2: Switch to “Rule Mode”
- Find “Mode” in the main interface or settings.
- Select “Rule”.
- Ensure “System Proxy” or “TUN Mode” is enabled (the app usually handles System Proxy automatically).
Step 3: Update Subscription and Rule Sets (If Applicable)
- If your subscription includes
rule-providers, use “Update All” to fetch the latest rules. - After updating, it is recommended to re-select the Proxy Group or restart the proxy to ensure changes take effect.
Step 4: Verify Rules
- Visit local websites (e.g., local news portals); they should connect directly with low latency.
- Visit international websites (e.g., Google); they should route through the proxy and load correctly.
- Visit an IP lookup site to confirm your exit IP matches your expectation (Local IP vs. Proxy IP).
Success
Common Usage
- Service-based Routing: Bind groups like “Streaming” or “Social Media” to stable or specific nodes.
- Region-based Routing: International domains/IPs go through Proxy, local domains/IPs go Direct (handled by rules in your subscription).
- Temporary Global Proxy: Switch to “Global Mode” and select a stable node for troubleshooting or specific needs.
Info
Advanced: Custom Rules via Configuration Override
Clash Party provides a powerful “Configuration Override” feature, allowing you to inject custom routing rules without modifying the subscription file.
We have written a detailed guide explaining rule syntax, types, and providing numerous practical examples:
👉 Custom Routing Rules & Syntax Guide
Quick Start
- Go to Settings > Configuration Override.
- Click New and select Rules type.
- Enter your rules in the editor, for example:
- DOMAIN-SUFFIX,google.com,Proxy - DOMAIN-KEYWORD,baidu,Direct - Save and enable.
Your custom rules will remain effective even after subscription updates.
Troubleshooting
- Rules do not seem to work:
- Check if “Rule Mode” is selected.
- Check if subscription contains Rules/Proxy Groups.
- Check if a node is selected in the Main Proxy Group.
- Check if Rule Sets are updated.
- Only browser works:
- Only “System Proxy” is enabled.
- For other apps, consider enabling TUN Mode.
- Connected but no internet:
- Try a different node.
- Check for port conflicts (do not run multiple proxy clients).
- DNS Issues:
- Flush DNS cache, switch networks, or restart the client.
- Ensure DNS configuration is correct if provided by subscription.
Advanced Suggestions (Optional)
- Regular Updates: Keep subscriptions and rule providers updated.
- Optimize Groups: Configure “Auto Select” or “Load Balance” groups for better availability.
- Community Rules: Common rule sets include ACL4SSR, Loyalsoldier, blackmatrix7 (usability depends on client support).
FAQ
Rule Mode vs. Global Mode?
"Rule Mode" is recommended for daily use. Use "Global Mode" when troubleshooting or if your subscription lacks rules.
What if my subscription has no rules?
You can ask your provider for a Clash subscription that includes rules and proxy groups, or temporarily use "Global Mode".
Can I run it with other proxy clients?
Not recommended. It may cause conflicts with System Proxy, TUN, or Ports (e.g., 7890/7891), leading to connection issues.
Do I need Administrator privileges?
Usually only when enabling TUN Mode or other system-level networking features. Standard System Proxy usage typically does not require it.