mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5019] [Question]: inbounds configuration #3534
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3534
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RezaHaghgoo on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5019
What are you trying to do?
For creating reverse tunnel, is it correct ?:
on Iran server, we should create 2 inbounds. one for tunnel and another one for users.
settings of tunnel inbound: Protocol = vless, Port = 443, Transmission = ws, Host = [our panel domain], Security = TLS, SNI = [our panel domain].
settings of users inbound: (all same as tunnel inbound but) Port = 8443
What have you already tried?
No response
3x-ui version
3.2.8
How did you install 3x-ui?
install.sh script
Operating system
No response
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jun 6, 2026):
The configuration you described is not quite right for a reverse tunnel. The core issue is that an inbound is a listener — it accepts incoming connections but cannot initiate an outgoing tunnel to another server. Here is what each approach actually requires:
Option A — Simple transparent relay (Dokodemo-door / "Tunnel" protocol)
This is the simplest approach. On the Iran server you need one inbound only — no separate users inbound.
dokodemo-door)443)<iran-server-ip>:443and traffic is transparently forwarded to the foreign server.No VLESS configuration is needed on the Iran server at all with this approach.
Option B — Xray reverse proxy (bridge/portal)
For Xray's built-in reverse proxy the Iran server must create an outbound (not a second inbound) to connect to the foreign server. Here is the correct layout:
Foreign server (portal):
Iran server (bridge):
bridge-tag). This is thereverse.tagfield exposed by 3x-ui on VLESS clients (GetClientReverseTagsin the panel collects these for routing).bridge-tag) → Freedom outbound.The "tunnel inbound" you described (VLESS port 443 WS+TLS pointing to your panel domain) does not create an outgoing connection — that is exactly what the outbound in step 2 above does.
Summary of what was wrong: the "tunnel inbound" should be either a Tunnel-protocol inbound (Option A) or a VLESS outbound (Option B), not a second VLESS inbound.
For a detailed step-by-step walkthrough with screenshots, the maintainer has asked that configuration questions be continued in GitHub Discussions rather than Issues.