[GH-ISSUE #6005] [Feature]: Dedicated line transfer function #4158

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

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

Shenzhen-Hong Kong dedicated line, used as a transit with two IPs

Describe the solution you'd like

Transfer Forwarding Function Special Dual IP

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @a671271260 on GitHub (Jul 16, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6005 ### Is your feature request related to a problem? Shenzhen-Hong Kong dedicated line, used as a transit with two IPs ### Describe the solution you'd like Transfer Forwarding Function Special Dual IP ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

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

Based on the source, this looks largely achievable today with existing generic building blocks, but the request doesn't describe what's actually missing, so it's hard to scope as a concrete feature. Confirmed in the repo:

  • Forwarding/relay to a landing server: the panel has a Tunnel inbound protocol (Xray's dokodemo-door), a transparent port-forwarder. Set Rewrite address / Rewrite port (optionally Port Mapping) to redirect incoming connections to your landing/exit server. Defined as Tunnel Protocol = "tunnel" in internal/database/model/model.go and frontend/src/schemas/protocols/inbound/tunnel.ts; documented as "Port forwarding / traffic redirect" in docs/content/docs/en/config/inbounds.mdx.
  • Choosing which of the two IPs the relayed traffic leaves from: the sidebar's Outbounds page (/outbound) has a Send Through field on each outbound (placeholder "local IP") that binds that outbound's egress traffic to a specific local IP address — this is what you'd use on a dual-IP dedicated-line box. See frontend/src/pages/xray/outbounds/OutboundFormModal.tsx:413-415.
  • Tying the two together: the sidebar's Routing page (/routing) lets you add a rule matching inboundTag to a specific outboundTag (frontend/src/schemas/routing.ts), so the Tunnel inbound's tag can be routed to the outbound bound to whichever local IP you want to use for that leg.

In other words: a Tunnel inbound pointed at your landing server, plus a custom outbound with Send Through set to one of your two local IPs, plus a routing rule binding the two, should already give IP-specific relay/transit forwarding without any panel changes.

If that doesn't cover what you have in mind, please describe the concrete gap, for example:

  1. A dedicated one-click "relay/transit" setup wizard instead of wiring inbound + outbound + routing manually?
  2. Automatic load-balancing or failover across the two IPs, rather than a fixed IP per outbound (related to the balancer feature request in #4928)?
  3. Some specific limitation of the dedicated line itself that the setup above doesn't handle?

Without a concrete use case a maintainer can't scope this into an implementable feature — please add details (and, ideally, a mockup of what the panel UI/flow should look like) when you get a chance.

@MHSanaei

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

<!-- gh-comment-id:4994629196 --> @github-actions[bot] commented on GitHub (Jul 16, 2026): Based on the source, this looks largely achievable today with existing generic building blocks, but the request doesn't describe what's actually missing, so it's hard to scope as a concrete feature. Confirmed in the repo: - **Forwarding/relay to a landing server**: the panel has a `Tunnel` inbound protocol (Xray's `dokodemo-door`), a transparent port-forwarder. Set `Rewrite address` / `Rewrite port` (optionally `Port Mapping`) to redirect incoming connections to your landing/exit server. Defined as `Tunnel Protocol = "tunnel"` in `internal/database/model/model.go` and `frontend/src/schemas/protocols/inbound/tunnel.ts`; documented as "Port forwarding / traffic redirect" in `docs/content/docs/en/config/inbounds.mdx`. - **Choosing which of the two IPs the relayed traffic leaves from**: the sidebar's `Outbounds` page (`/outbound`) has a `Send Through` field on each outbound (placeholder "local IP") that binds that outbound's egress traffic to a specific local IP address — this is what you'd use on a dual-IP dedicated-line box. See `frontend/src/pages/xray/outbounds/OutboundFormModal.tsx:413-415`. - **Tying the two together**: the sidebar's `Routing` page (`/routing`) lets you add a rule matching `inboundTag` to a specific `outboundTag` (`frontend/src/schemas/routing.ts`), so the Tunnel inbound's tag can be routed to the outbound bound to whichever local IP you want to use for that leg. In other words: a `Tunnel` inbound pointed at your landing server, plus a custom outbound with `Send Through` set to one of your two local IPs, plus a routing rule binding the two, should already give IP-specific relay/transit forwarding without any panel changes. If that doesn't cover what you have in mind, please describe the concrete gap, for example: 1. A dedicated one-click "relay/transit" setup wizard instead of wiring inbound + outbound + routing manually? 2. Automatic load-balancing or failover across the two IPs, rather than a fixed IP per outbound (related to the balancer feature request in #4928)? 3. Some specific limitation of the dedicated line itself that the setup above doesn't handle? Without a concrete use case a maintainer can't scope this into an implementable feature — please add details (and, ideally, a mockup of what the panel UI/flow should look like) when you get a chance. @MHSanaei *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#4158
No description provided.