Skip to content
TheChatArchiveThe Chat Archive
chatgpt-4o-latest-20250326· OpenAIHugging Face LMArena Human Preference 140K

In case I choose neko box. How do I set up such routing rule that I want to proxy only…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-30b-a3b’s answer.
  1. User

    In case I choose neko box. How do I set up such routing rule that I want to proxy only example.com site and all other traffic to be direct?

  2. Assistant

    If you choose NekoBox (formerly NekoRay) or a similar NekoRay/nekoray-based client, you’re in luck — it has a GUI built on top of Sing-box or Xray/V2Ray core, so setting precise routing rules like “proxy only example.com and send everything else directly” is totally doable.

    Let me walk you through how to do this step-by-step 👇


    ✅ Goal:

    Only proxy example.com; everything else should go DIRECT.


    🧰 Tools we're using:

    • NekoBox/nekoray (Sing-box or Xray core)
    • Subscription already loaded (or node manually added)
    • Built-in GUI for routing profiles

    🚦 Steps to set custom routing rules in NekoBox:

    1. Launch NekoBox

    Open the app. Make sure you have:

    • A working proxy node
    • The node is converted properly

    Optional: Make the node default outbound for easier config if needed.


    2. Open Routing Config

    • Go to Settings (右下角设置齿轮) → Routing(路由)
    • Select or create a custom route profile.

    3. Create a Routing Rule

    You want to define:

    • example.com → via PROXY
    • everything else → DIRECT

    Here’s an example using Domain rules:

    💡 Rule Logic:

    TypeValueOutbound Tag
    Domainexample.comproxy*
    Default(match all else)direct

    proxy is whatever your node tag is called. You can find it in the node editor.


    4. How to enter rules (GUI mode)

    You can usually enter this under the “Routing” section like this:

    Example (GUI route editor):

    1. Click Add Rule

      • Type: Domain
      • Value: example.com
      • Outbound: Choose your proxy node (tag, e.g., "proxy")
    2. Another Rule:

      • Type: Default
      • Outbound: direct

    🔁 Make sure order is correct. Rules are top-down priority.


    5. Apply & Activate the Routing

    • Save your rule profile
    • In main screen, go to your proxy node settings
    • Choose your route config under Routing Settings (or similar)
    • Connect to the node!

    🧪 Testing

    Once connected:

    • Open browser.
    • Access https://example.com → should go through proxy (check IP with F12 Tools or IP check site).
    • Open other domain e.g., https://google.com → should go direct (your normal ISP IP).

    🔄 Alternate: Use JSON if needed (Advanced)

    If you want to manually edit, here’s a raw sing-box style config:

    {
      "route": {
        "rules": [
          {
            "domain": ["example.com"],
            "outbound": "proxy"
          },
          {
            "outbound": "direct"
          }
        ]
      }
    }
    

    Paste this in the raw routing config editor if GUI doesn’t give you fine control.


    ▶ Summary

    WhatHow
    Only proxy specific site?Use Domain → example.com → proxy
    All else direct?Add fallback rule Default → direct
    App used?NekoBox / NekoRay
    Engine?Sing-box (or Xray if selected)

    ✅ You now have the equivalent of a “bypass all except selected domains” rule — similar to Shadowrocket’s capability — on Windows via NekoBox 🎉.

    Let me know if you want to extend this for multiple domains, apps, GeoIP, or wildcard matching!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.