[GH-ISSUE #5980] [Bug]: Tunnel inbound does not accept nftables TPROXY TCP traffic #4146

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

Originally created by @Slikpro on GitHub (Jul 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5980

Describe the bug

Environment
3x-ui: 3.5.0
Xray-core: 26.7.11
OS: Debian 13 ARM
Device: NanoPi NEO3 Plus
Firewall: nftables
Traffic type: IPv4 TCP

Description:
A Tunnel inbound created by 3x-ui listens on the configured port, but does not accept TCP traffic redirected through Linux TPROXY.

The generated Xray configuration contains:

{
"listen": "0.0.0.0",
"port": 22222,
"protocol": "tunnel",
"settings": {
"allowedNetwork": "tcp",
"followRedirect": true,
"portMap": {}
},
"streamSettings": {
"security": "none",
"sockopt": {
"tproxy": "tproxy"
}
},
"tag": "in-22222-tcp"
}

The inbound is routed to a working SOCKS outbound.

nftables and policy routing

Traffic arriving from the LAN is redirected with:

meta l4proto tcp
meta mark set 0x1
tproxy ip to 127.0.0.1:22222
counter
accept

Policy routing:

100: from all fwmark 0x1/0x1 lookup 100
local default dev lo scope host

The TPROXY counter increases during client connection attempts, and:

ip route get 1.1.1.1 mark 0x1

returns a local route through table 100.

Xray is listening:

tcp LISTEN *:22222 users:(("xray-linux-arm6",pid=...,fd=...))

How to reproduce the problem

Install 3x-ui 3.5.0 with Xray-core 26.7.11 on Debian 13.
Create a working SOCKS outbound named Local-Proxy.
Create a Mixed inbound and confirm that it can use Local-Proxy.
Create a Tunnel inbound on port 22222.
Set:
Allowed network: TCP
Follow redirect: enabled
Sockopt TProxy: tproxy
Add an Xray routing rule from the Tunnel inbound tag to Local-Proxy.
Configure nftables to redirect TCP traffic arriving from the LAN interface to 127.0.0.1:22222 using TPROXY and firewall mark 1.
Add policy routing for mark 1 with a local default route through lo.
Configure another LAN device to use the 3x-ui host as its default gateway.
Generate an external TCP connection from that device without configuring an explicit proxy.
Observe the nftables counters and Xray debug log.

Expected behavior

When the nftables TPROXY rule redirects the client TCP connection to port 22222, Xray should:

Accept the connection on the Tunnel inbound.
Recover the original destination through followRedirect.
Create an inbound session with tag in-22222-tcp.
Dispatch the connection to the Local-Proxy outbound.
Connect to the upstream SOCKS proxy.
Record the inbound request in the debug or access log.

An expected log sequence would contain a Tunnel/dokodemo inbound request for the original external destination, followed by a dispatcher route to Local-Proxy.

Actual behavior

The client TCP SYN reaches eth0.
The nftables TPROXY rule matches it.
The TPROXY packet counter increases.
Firewall mark 1 is applied.
The policy-routing rule and table 100 are present.
Xray is listening on port 22222.
No user Tunnel/dokodemo inbound request appears in the Xray debug log.
No session with inbound tag in-22222-tcp is created.
No connection is dispatched to Local-Proxy.
The client TCP connection times out.
3x-ui reports zero traffic for this inbound.

Relevant logs

Jul 15 19:23:51 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2740964957] proxy/dokodemo: received request for 127.0.0.1:35772
Jul 15 19:23:51 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2740964957] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2045356361] proxy/dokodemo: received request for 127.0.0.1:52682
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [4256826338] proxy/dokodemo: received request for 127.0.0.1:52674
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [4256826338] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2045356361] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1102045541] proxy/dokodemo: received request for 127.0.0.1:52686
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1102045541] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] proxy/http: request to Method [CONNECT] Host [plugin.saby.ru:443] with URL [//plugin.saby.ru:443]
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] proxy/http: request to Method [CONNECT] Host [plugin.sbis.ru:443] with URL [//plugin.sbis.ru:443]
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] app/dispatcher: sniffed domain: plugin.saby.ru
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] app/dispatcher: default route for tcp:plugin.saby.ru:443
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] transport/internet/tcp: dialing TCP to tcp:192.168.2.44:10809
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] app/dispatcher: sniffed domain: plugin.sbis.ru
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] app/dispatcher: default route for tcp:plugin.sbis.ru:443
Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] transport/internet/tcp: dialing TCP to tcp:192.168.2.44:10809
Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [610705389] proxy/dokodemo: received request for 127.0.0.1:52702
Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [610705389] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2951431171] proxy/dokodemo: received request for 127.0.0.1:52704
Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2951431171] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2037784021] proxy/dokodemo: received request for 127.0.0.1:60692
Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2037784021] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3090433180] proxy/dokodemo: received request for 127.0.0.1:60708
Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3090433180] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2905120696] proxy/dokodemo: received request for 127.0.0.1:60718
Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2905120696] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2425069275] proxy/dokodemo: received request for 127.0.0.1:60730
Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2425069275] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2442073595] proxy/dokodemo: received request for 127.0.0.1:60740
Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2442073595] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2874637138] proxy/dokodemo: received request for 127.0.0.1:42606
Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2874637138] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3782003422] proxy/dokodemo: received request for 127.0.0.1:42608
Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3782003422] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [430557128] proxy/dokodemo: received request for 127.0.0.1:42614
Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [430557128] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1784232304] proxy/dokodemo: received request for 127.0.0.1:42626
Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1784232304] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1663883118] proxy/dokodemo: received request for 127.0.0.1:42638
Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1663883118] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1992688296] proxy/dokodemo: received request for 127.0.0.1:58514
Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1992688296] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3538381499] proxy/dokodemo: received request for 127.0.0.1:58522
Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3538381499] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1000379932] proxy/dokodemo: received request for 127.0.0.1:58528
Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1000379932] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3331886459] proxy/dokodemo: received request for 127.0.0.1:58530
Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3331886459] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]
Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1188238561] proxy/dokodemo: received request for 127.0.0.1:58540
Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1188238561] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789]

Screenshots

No response

3x-ui version

3.5.0

Xray-core version

26.7.11

How did you install 3x-ui?

install.sh script

Operating system

Debian 13

Which parts of the panel are affected?

Xray config generation

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 @Slikpro on GitHub (Jul 15, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5980 ### Describe the bug Environment 3x-ui: 3.5.0 Xray-core: 26.7.11 OS: Debian 13 ARM Device: NanoPi NEO3 Plus Firewall: nftables Traffic type: IPv4 TCP Description: A Tunnel inbound created by 3x-ui listens on the configured port, but does not accept TCP traffic redirected through Linux TPROXY. The generated Xray configuration contains: { "listen": "0.0.0.0", "port": 22222, "protocol": "tunnel", "settings": { "allowedNetwork": "tcp", "followRedirect": true, "portMap": {} }, "streamSettings": { "security": "none", "sockopt": { "tproxy": "tproxy" } }, "tag": "in-22222-tcp" } The inbound is routed to a working SOCKS outbound. nftables and policy routing Traffic arriving from the LAN is redirected with: meta l4proto tcp meta mark set 0x1 tproxy ip to 127.0.0.1:22222 counter accept Policy routing: 100: from all fwmark 0x1/0x1 lookup 100 local default dev lo scope host The TPROXY counter increases during client connection attempts, and: ip route get 1.1.1.1 mark 0x1 returns a local route through table 100. Xray is listening: tcp LISTEN *:22222 users:(("xray-linux-arm6",pid=...,fd=...)) ### How to reproduce the problem Install 3x-ui 3.5.0 with Xray-core 26.7.11 on Debian 13. Create a working SOCKS outbound named Local-Proxy. Create a Mixed inbound and confirm that it can use Local-Proxy. Create a Tunnel inbound on port 22222. Set: Allowed network: TCP Follow redirect: enabled Sockopt TProxy: tproxy Add an Xray routing rule from the Tunnel inbound tag to Local-Proxy. Configure nftables to redirect TCP traffic arriving from the LAN interface to 127.0.0.1:22222 using TPROXY and firewall mark 1. Add policy routing for mark 1 with a local default route through lo. Configure another LAN device to use the 3x-ui host as its default gateway. Generate an external TCP connection from that device without configuring an explicit proxy. Observe the nftables counters and Xray debug log. ### Expected behavior When the nftables TPROXY rule redirects the client TCP connection to port 22222, Xray should: Accept the connection on the Tunnel inbound. Recover the original destination through followRedirect. Create an inbound session with tag in-22222-tcp. Dispatch the connection to the Local-Proxy outbound. Connect to the upstream SOCKS proxy. Record the inbound request in the debug or access log. An expected log sequence would contain a Tunnel/dokodemo inbound request for the original external destination, followed by a dispatcher route to Local-Proxy. ### Actual behavior The client TCP SYN reaches eth0. The nftables TPROXY rule matches it. The TPROXY packet counter increases. Firewall mark 1 is applied. The policy-routing rule and table 100 are present. Xray is listening on port 22222. No user Tunnel/dokodemo inbound request appears in the Xray debug log. No session with inbound tag in-22222-tcp is created. No connection is dispatched to Local-Proxy. The client TCP connection times out. 3x-ui reports zero traffic for this inbound. ### Relevant logs ```shell Jul 15 19:23:51 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2740964957] proxy/dokodemo: received request for 127.0.0.1:35772 Jul 15 19:23:51 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2740964957] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2045356361] proxy/dokodemo: received request for 127.0.0.1:52682 Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [4256826338] proxy/dokodemo: received request for 127.0.0.1:52674 Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [4256826338] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2045356361] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1102045541] proxy/dokodemo: received request for 127.0.0.1:52686 Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1102045541] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] proxy/http: request to Method [CONNECT] Host [plugin.saby.ru:443] with URL [//plugin.saby.ru:443] Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] proxy/http: request to Method [CONNECT] Host [plugin.sbis.ru:443] with URL [//plugin.sbis.ru:443] Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] app/dispatcher: sniffed domain: plugin.saby.ru Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] app/dispatcher: default route for tcp:plugin.saby.ru:443 Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2226134787] transport/internet/tcp: dialing TCP to tcp:192.168.2.44:10809 Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] app/dispatcher: sniffed domain: plugin.sbis.ru Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] app/dispatcher: default route for tcp:plugin.sbis.ru:443 Jul 15 19:23:56 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3603576478] transport/internet/tcp: dialing TCP to tcp:192.168.2.44:10809 Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [610705389] proxy/dokodemo: received request for 127.0.0.1:52702 Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [610705389] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2951431171] proxy/dokodemo: received request for 127.0.0.1:52704 Jul 15 19:24:01 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2951431171] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2037784021] proxy/dokodemo: received request for 127.0.0.1:60692 Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2037784021] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3090433180] proxy/dokodemo: received request for 127.0.0.1:60708 Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3090433180] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2905120696] proxy/dokodemo: received request for 127.0.0.1:60718 Jul 15 19:24:06 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2905120696] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2425069275] proxy/dokodemo: received request for 127.0.0.1:60730 Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2425069275] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2442073595] proxy/dokodemo: received request for 127.0.0.1:60740 Jul 15 19:24:11 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2442073595] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2874637138] proxy/dokodemo: received request for 127.0.0.1:42606 Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [2874637138] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3782003422] proxy/dokodemo: received request for 127.0.0.1:42608 Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3782003422] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [430557128] proxy/dokodemo: received request for 127.0.0.1:42614 Jul 15 19:24:16 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [430557128] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1784232304] proxy/dokodemo: received request for 127.0.0.1:42626 Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1784232304] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1663883118] proxy/dokodemo: received request for 127.0.0.1:42638 Jul 15 19:24:21 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1663883118] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1992688296] proxy/dokodemo: received request for 127.0.0.1:58514 Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1992688296] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3538381499] proxy/dokodemo: received request for 127.0.0.1:58522 Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3538381499] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1000379932] proxy/dokodemo: received request for 127.0.0.1:58528 Jul 15 19:24:26 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1000379932] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3331886459] proxy/dokodemo: received request for 127.0.0.1:58530 Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [3331886459] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1188238561] proxy/dokodemo: received request for 127.0.0.1:58540 Jul 15 19:24:31 NanoPi-NEO3-Plus /usr/local/x-ui/x-ui[1665]: INFO - XRAY: [1188238561] app/dispatcher: taking detour [api] for [tcp:127.0.0.1:62789] ``` ### Screenshots _No response_ ### 3x-ui version 3.5.0 ### Xray-core version 26.7.11 ### How did you install 3x-ui? install.sh script ### Operating system Debian 13 ### Which parts of the panel are affected? Xray config generation ### 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:37:30 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 15, 2026):

Duplicate of #5977, which contains the same report (same environment, same reproduction steps, same generated Xray config) opened about 11 minutes earlier by the same reporter. That issue already has a detailed root-cause investigation pointing at a silently non-fatal IP_TRANSPARENT setsockopt failure in Xray-core's transport/internet/sockopt_linux.go (not a 3x-ui config-generation bug), and tags @MHSanaei.

The raw INFO-level log excerpt included here is useful supporting evidence — it confirms the only proxy/dokodemo lines are the internal [api] loopback requests, with none for the LAN traffic. Please add it, along with the journalctl -u x-ui | grep -i "IP_TRANSPARENT\|failed to apply socket options" output and a fresh ss -tlnp | grep 22222 requested on #5977, as a comment there so all follow-up stays in one thread.

Closing this copy in favor of #5977.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4984645641 --> @github-actions[bot] commented on GitHub (Jul 15, 2026): Duplicate of #5977, which contains the same report (same environment, same reproduction steps, same generated Xray config) opened about 11 minutes earlier by the same reporter. That issue already has a detailed root-cause investigation pointing at a silently non-fatal `IP_TRANSPARENT` setsockopt failure in Xray-core's `transport/internet/sockopt_linux.go` (not a 3x-ui config-generation bug), and tags @MHSanaei. The raw INFO-level log excerpt included here is useful supporting evidence — it confirms the only `proxy/dokodemo` lines are the internal `[api]` loopback requests, with none for the LAN traffic. Please add it, along with the `journalctl -u x-ui | grep -i "IP_TRANSPARENT\|failed to apply socket options"` output and a fresh `ss -tlnp | grep 22222` requested on #5977, as a comment there so all follow-up stays in one thread. Closing this copy in favor of #5977. *This reply was generated automatically; a maintainer may follow up.*
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#4146
No description provided.