In case I choose neko box. How do I set up such routing rule that I want to proxy only…
- 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?
- 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:
Type Value Outbound Tag Domain example.comproxy*Default (match all else) directproxyis 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):
-
Click Add Rule
- Type:
Domain - Value:
example.com - Outbound: Choose your proxy node (tag, e.g., "proxy")
- Type:
-
Another Rule:
- Type:
Default - Outbound:
direct
- Type:
🔁 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-boxstyle 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
What How Only proxy specific site? Use Domain → example.com → proxyAll else direct? Add fallback rule Default → directApp 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!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.