[GH-ISSUE #3380] Routing rules in Xray configs do not work (domains set to Direct are still proxied) #2298

Closed
opened 2026-10-31 20:24:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @VyacheslavKokorin on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3380

Describe the bug

In the 3x-ui panel under Xray configs → Routing rules, the rules do not seem to work as expected.
Yes, I know that bypass can be configured in the client. But then what is the purpose of the Routing rules tab and all these rule settings in the panel, if they have no effect?

How to repeat the problem?

Open Xray configs → Routing rules in 3x-ui panel.
Add a domain (e.g., example.com) and set the action to Direct.
Save the configuration and restart the service.
Connect with NekoBox client in proxy mode.
Try to open example.com.

Expected action

Traffic to example.com should bypass the proxy and connect directly.

Received action

Traffic to example.com is still proxied, despite being configured as Direct in Routing rules.

3x-ui Version

2.6.2

Xray-core Version

25.7.26

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @VyacheslavKokorin on GitHub (Aug 25, 2025). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3380 ### Describe the bug In the 3x-ui panel under Xray configs → Routing rules, the rules do not seem to work as expected. Yes, I know that bypass can be configured in the client. But then what is the purpose of the Routing rules tab and all these rule settings in the panel, if they have no effect? ### How to repeat the problem? Open Xray configs → Routing rules in 3x-ui panel. Add a domain (e.g., example.com) and set the action to Direct. Save the configuration and restart the service. Connect with NekoBox client in proxy mode. Try to open example.com. ### Expected action Traffic to example.com should bypass the proxy and connect directly. ### Received action Traffic to example.com is still proxied, despite being configured as Direct in Routing rules. ### 3x-ui Version 2.6.2 ### Xray-core Version 25.7.26 ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:24:32 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MHSanaei commented on GitHub (Aug 25, 2025):

turn on sniffing in your inbound
and direct option is for tunneling

<!-- gh-comment-id:3219394513 --> @MHSanaei commented on GitHub (Aug 25, 2025): turn on sniffing in your inbound and direct option is for tunneling
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2298
No description provided.