[GH-ISSUE #4589] [Bug]: Routing Rules Source IP and Domain Rules not working #3153

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

Originally created by @hamedhdd on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4589

Describe the bug

I've noticed that setting an ip to only source to be allowed to connect to an inbound not working and we still need to set iptables, also on mixed inbounds (http and socks) if we route connection to specific domains, it works on http but not on socks connections

How to reproduce the problem

1.Xray Configs
2. Routing Rules
3. add a new routing rules
4. Specify new Source Ip (to only allow connection from)
5. select inbound tag
6. Create
Also on Creating new rule,

  1. add Domain(s)
  2. Select Inbound tag
  3. Create
    on http connection only specified domains goes trough, but on same port with socks5 the rules doesn't applied

Expected behavior

It Expected to only allow connection from Source Ips when it specified (be applied to iptables)
And also on specify Domain rules both socks5 and http proxy connection only allow those domains and block anything else

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.1.0

Xray-core version

No response

How did you install 3x-ui?

install.sh script

Operating system

Debian 11

Which parts of the panel are affected?

No response

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @hamedhdd on GitHub (May 26, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4589 ### Describe the bug I've noticed that setting an ip to only source to be allowed to connect to an inbound not working and we still need to set iptables, also on mixed inbounds (http and socks) if we route connection to specific domains, it works on http but not on socks connections ### How to reproduce the problem 1.Xray Configs 2. Routing Rules 3. add a new routing rules 4. Specify new Source Ip (to only allow connection from) 5. select inbound tag 6. Create Also on Creating new rule, 1. add Domain(s) 2. Select Inbound tag 3. Create on http connection only specified domains goes trough, but on same port with socks5 the rules doesn't applied ### Expected behavior It Expected to only allow connection from Source Ips when it specified (be applied to iptables) And also on specify Domain rules both socks5 and http proxy connection only allow those domains and block anything else ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.1.0 ### Xray-core version _No response_ ### How did you install 3x-ui? install.sh script ### Operating system Debian 11 ### Which parts of the panel are affected? _No response_ ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:30:25 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dev-kamran2001 commented on GitHub (May 27, 2026):

Same, Routing Rules is completely ignored.

<!-- gh-comment-id:4557031217 --> @dev-kamran2001 commented on GitHub (May 27, 2026): Same, Routing Rules is completely ignored.
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#3153
No description provided.