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.

1

Select Proxy

Select the main node in Proxy Groups

2

Switch Mode

Set the proxy mode to 'Rule'

3

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

Whether you can use routing rules directly depends on whether your subscription is in Clash format and contains rules and proxy groups. If your subscription only provides a simple node list, Rule Mode will not work effectively. In that case, use “Global Mode” or request a Clash subscription with rules from your provider.

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

“Rule Mode” is recommended for most scenarios. If your subscription lacks rules or you need to route everything through a specific node temporarily, switch to “Global Mode”.

Step-by-Step Guide

Step 1: Select Default Outbound for Proxy Groups

  1. Open the Clash Party main interface and find “Proxy Groups”.
  2. In the “General/Main” group (often named Proxy, Selector, 🚀 Node Select, etc.), select your desired node or “Auto Select”.
  3. If your subscription includes groups like “Streaming”, “Social Media”, select different nodes for them to route traffic accordingly.

Step 2: Switch to “Rule Mode”

  1. Find “Mode” in the main interface or settings.
  2. Select “Rule”.
  3. Ensure “System Proxy” or “TUN Mode” is enabled (the app usually handles System Proxy automatically).
If you have applications that do not follow the System Proxy (like some CLI tools or games), you may need to enable TUN Mode (if supported). Enabling TUN usually requires Administrator/System privileges; follow the prompts in the app.

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

  1. Visit local websites (e.g., local news portals); they should connect directly with low latency.
  2. Visit international websites (e.g., Google); they should route through the proxy and load correctly.
  3. Visit an IP lookup site to confirm your exit IP matches your expectation (Local IP vs. Proxy IP).

Success

Verification Successful! If access to both local and international sites behaves as expected, routing is working correctly.

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

If your client or subscription supports “Custom Rules/Override”, you can add extra Domain/IP rules (e.g., forcing a domain to Direct). If not available, contact your provider for a subscription with updated rules.

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

  1. Go to Settings > Configuration Override.
  2. Click New and select Rules type.
  3. Enter your rules in the editor, for example:
    - DOMAIN-SUFFIX,google.com,Proxy
    - DOMAIN-KEYWORD,baidu,Direct
    
  4. 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.