[GH-ISSUE #5337] [Feature]: "Cross-Node Inbound Cloning" to improve multi-node management efficiency #3740

Closed
opened 2026-10-31 20:34:37 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @xingshuwen03-prog on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5337

Hi author, thank you for developing and maintaining such a great panel! During my daily multi-node usage, I noticed a pain point affecting management efficiency, and I hope you can consider adding a practical little feature.

When using the main panel to manage multiple sub-nodes, the "Clone" function in the inbound list can currently only duplicate within the same node.
For example: If I have a configured VLESS inbound on the main panel (Node 1) and click clone, the newly generated inbound is strictly bound to Node 1. If I want to clone this exact VLESS inbound to the linked Node 2, it's currently impossible. I have to switch to Node 2 and manually recreate it from scratch.

I hope a "Select Target Node" dropdown menu can be added to the confirmation modal when clicking "Clone" on an inbound.
This way, users can directly copy and deploy the inbound configuration from Node A (including protocols, advanced settings, client lists, etc.) to Node B.

Describe the solution you'd like

I hope a "Select Target Node" dropdown menu can be added to the confirmation modal when clicking "Clone" on an inbound.
This way, users can directly copy and deploy the inbound configuration from Node A (including protocols, advanced settings, client lists, etc.) to Node B.

Alternatives you've considered

No response

Concrete use case

The multi-node architecture is very common now, and this feature would be highly practical:Massive time-saving: When an admin adds a new server (sub-node) or wants multiple servers to share exactly the same configurations (same protocols, reality/camouflage settings, and client lists), manually filling out the forms node by node is tedious and error-prone.

Better multi-node management experience: Breaking the configuration barrier between nodes gives the panel a true "one-click config distribution" capability. For admins managing multiple VPSs, this would be a game-changing experience upgrade.

Unfortunately, I don't have the coding skills to submit a PR myself, but I sincerely hope you can consider implementing this feature."

I hope you can consider this suggestion when you have time. Thanks again for your hard work!

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

Multi-node (sub-nodes)

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 @xingshuwen03-prog on GitHub (Jun 15, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5337 ### Is your feature request related to a problem? Hi author, thank you for developing and maintaining such a great panel! During my daily multi-node usage, I noticed a pain point affecting management efficiency, and I hope you can consider adding a practical little feature. When using the main panel to manage multiple sub-nodes, the "Clone" function in the inbound list can currently only duplicate within the same node. For example: If I have a configured VLESS inbound on the main panel (Node 1) and click clone, the newly generated inbound is strictly bound to Node 1. If I want to clone this exact VLESS inbound to the linked Node 2, it's currently impossible. I have to switch to Node 2 and manually recreate it from scratch. I hope a "Select Target Node" dropdown menu can be added to the confirmation modal when clicking "Clone" on an inbound. This way, users can directly copy and deploy the inbound configuration from Node A (including protocols, advanced settings, client lists, etc.) to Node B. ### Describe the solution you'd like I hope a "Select Target Node" dropdown menu can be added to the confirmation modal when clicking "Clone" on an inbound. This way, users can directly copy and deploy the inbound configuration from Node A (including protocols, advanced settings, client lists, etc.) to Node B. ### Alternatives you've considered _No response_ ### Concrete use case The multi-node architecture is very common now, and this feature would be highly practical:Massive time-saving: When an admin adds a new server (sub-node) or wants multiple servers to share exactly the same configurations (same protocols, reality/camouflage settings, and client lists), manually filling out the forms node by node is tedious and error-prone. Better multi-node management experience: Breaking the configuration barrier between nodes gives the panel a true "one-click config distribution" capability. For admins managing multiple VPSs, this would be a game-changing experience upgrade. Unfortunately, I don't have the coding skills to submit a PR myself, but I sincerely hope you can consider implementing this feature." I hope you can consider this suggestion when you have time. Thanks again for your hard work! ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? Multi-node (sub-nodes) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [x] 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 (Jun 15, 2026):

This is a valid gap in the current multi-node workflow. Here is what the code actually does today.

Current clone behavior (InboundsPage.tsx, confirmClone):

The "Clone" action uses a simple confirmation dialog — it does not open the full inbound form. It constructs a new inbound object (protocol and transport settings copied, clients cleared, port randomised, enabled=false) and posts it directly to POST /panel/api/inbounds/add without a nodeId. The result is always a local-panel inbound, regardless of which node the source inbound belongs to.

Existing "Deploy To" capability (InboundFormModal.tsx, line 521):

The inbound creation form ("Add" button) already has a "Deploy To" node selector. When nodes are connected and the protocol is eligible, a dropdown appears listing available nodes. Selecting one sets nodeId in the payload sent to the same /panel/api/inbounds/add endpoint, and the node-sync job then pushes that inbound to the target node.

The "Deploy To" selector is disabled in edit mode (line 523), so once an inbound is created — including after a clone — its target node cannot be changed through the UI.

Current workaround:

Instead of cloning, use the "Add" button to open the full inbound form, select the target node in "Deploy To", then manually fill in the protocol, transport, and security settings to match the source inbound. This is exactly the manual process the request describes as tedious.

What implementation would require:

The clone flow would need to either:

  • (a) Open the full inbound form in add-mode pre-populated with the source inbound's data, so the user can select a target node before confirming — consistent with the existing "Deploy To" UX.
  • (b) Inject a node selector into the existing simple confirmation dialog and include the chosen nodeId in the payload sent to /panel/api/inbounds/add.

Option (a) is more consistent with the existing form UX. Either approach is self-contained to the frontend; the backend AddInbound endpoint already accepts nodeId.

Related closed issue: #4455 requested the same capability. It was closed by a maintainer as "completed", likely reflecting the addition of the "Deploy To" field to the create form. The clone-specific gap was not addressed by that change.

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

<!-- gh-comment-id:4705718368 --> @github-actions[bot] commented on GitHub (Jun 15, 2026): This is a valid gap in the current multi-node workflow. Here is what the code actually does today. **Current clone behavior** (`InboundsPage.tsx`, `confirmClone`): The "Clone" action uses a simple confirmation dialog — it does not open the full inbound form. It constructs a new inbound object (protocol and transport settings copied, clients cleared, port randomised, enabled=false) and posts it directly to `POST /panel/api/inbounds/add` **without a `nodeId`**. The result is always a local-panel inbound, regardless of which node the source inbound belongs to. **Existing "Deploy To" capability** (`InboundFormModal.tsx`, line 521): The inbound creation form ("Add" button) already has a "Deploy To" node selector. When nodes are connected and the protocol is eligible, a dropdown appears listing available nodes. Selecting one sets `nodeId` in the payload sent to the same `/panel/api/inbounds/add` endpoint, and the node-sync job then pushes that inbound to the target node. The "Deploy To" selector is **disabled in edit mode** (line 523), so once an inbound is created — including after a clone — its target node cannot be changed through the UI. **Current workaround:** Instead of cloning, use the "Add" button to open the full inbound form, select the target node in "Deploy To", then manually fill in the protocol, transport, and security settings to match the source inbound. This is exactly the manual process the request describes as tedious. **What implementation would require:** The clone flow would need to either: - (a) Open the full inbound form in add-mode pre-populated with the source inbound's data, so the user can select a target node before confirming — consistent with the existing "Deploy To" UX. - (b) Inject a node selector into the existing simple confirmation dialog and include the chosen `nodeId` in the payload sent to `/panel/api/inbounds/add`. Option (a) is more consistent with the existing form UX. Either approach is self-contained to the frontend; the backend `AddInbound` endpoint already accepts `nodeId`. **Related closed issue:** #4455 requested the same capability. It was closed by a maintainer as "completed", likely reflecting the addition of the "Deploy To" field to the create form. The clone-specific gap was not addressed by that change. *This reply was generated automatically; a maintainer may follow up.*
Author
Owner

@jshir700 commented on GitHub (Jun 17, 2026):

Great proposal, this is exactly the direction the panel needs. Here are a few enhancements I'd suggest building on top of this idea:

1. Multi-select target nodes

A single-node dropdown is already a big improvement, but a multi-select would be even better. When provisioning a new node, I typically need to clone the same 6 reference inbounds to it one by one. With multi-select, I could:

  1. Open inbound A → select target nodes [Node2, Node3, Node4] → confirm → done
  2. Open inbound B → select same targets → done
  3. ...

This cuts the operation from "6 clones × 1 target = 6 clicks" to "6 clones × 1 selection = 6 clicks with zero re-selection".

2. Port conflict indicator in the selector

When cloning to a different node, the source port might already be in use there. Since the frontend already has the full inbound list, it can check this client-side with no backend call:

function isPortAvailableOnNode(port: number, nodeId: number | null): boolean {
  return !dbInbounds.some(
    (ib) => ib.port === port && ib.nodeId === nodeId && ib.id !== sourceInbound.id
  );
}

Showing a simple indicator next to each node option would help the user decide before committing:

Icon Meaning
✅ Source port is available on this node
⚠️ Source port is in use — will auto-assign a random port
❌ Node offline (disabled)

If the port is busy, the backend POST /panel/api/inbounds/add already returns a 400 on conflict. The frontend can catch this and retry with a random port, so the user never sees a cryptic error — just a note: "Port 41881 was in use on Node3, assigned random port 45123 instead."

3. Keep existing clone behaviour: clear clients

The current clone already empties the clients array (raw.clients = []), and I think this should stay. Cloning a node should copy the infrastructure (protocol, transport, security, stream settings) but leave identity (UUIDs, passwords) to be created fresh per node. Copying clients across nodes would create duplicate UUIDs and subIds.

A separate "Clone with clients" toggle could be added later if there's demand, but the default should keep clients empty.

Summary of proposed additions

Feature #5337 (original) Suggested additions
Target node selector Single-select Multi-select ✅
Port conflict handling Not mentioned Client-side check + auto-random + indicators ✅
Clients during clone Copy clients Keep empty (current behaviour) ✅
Default selection Not specified Pre-select the inbound's current node ✅

I'm happy to help test once any of these are implemented. Thanks for driving this feature forward!

<!-- gh-comment-id:4727452312 --> @jshir700 commented on GitHub (Jun 17, 2026): Great proposal, this is exactly the direction the panel needs. Here are a few enhancements I'd suggest building on top of this idea: ## 1. Multi-select target nodes A single-node dropdown is already a big improvement, but a **multi-select** would be even better. When provisioning a new node, I typically need to clone the same 6 reference inbounds to it one by one. With multi-select, I could: 1. Open inbound A → select target nodes [Node2, Node3, Node4] → confirm → done 2. Open inbound B → select same targets → done 3. ... This cuts the operation from "6 clones × 1 target = 6 clicks" to "6 clones × 1 selection = 6 clicks with zero re-selection". ## 2. Port conflict indicator in the selector When cloning to a different node, the source port might already be in use there. Since the frontend already has the full inbound list, it can check this **client-side** with no backend call: ```ts function isPortAvailableOnNode(port: number, nodeId: number | null): boolean { return !dbInbounds.some( (ib) => ib.port === port && ib.nodeId === nodeId && ib.id !== sourceInbound.id ); } ``` Showing a simple indicator next to each node option would help the user decide before committing: | Icon | Meaning | |------|---------| | ✅ | Source port is available on this node | | ⚠️ | Source port is in use — will auto-assign a random port | | ❌ | Node offline (disabled) | If the port is busy, the backend `POST /panel/api/inbounds/add` already returns a 400 on conflict. The frontend can catch this and retry with a random port, so the user never sees a cryptic error — just a note: _"Port 41881 was in use on Node3, assigned random port 45123 instead."_ ## 3. Keep existing clone behaviour: clear clients The current clone already empties the clients array (`raw.clients = []`), and I think this should stay. Cloning a node should copy the **infrastructure** (protocol, transport, security, stream settings) but leave **identity** (UUIDs, passwords) to be created fresh per node. Copying clients across nodes would create duplicate UUIDs and subIds. A separate "Clone with clients" toggle could be added later if there's demand, but the default should keep clients empty. ## Summary of proposed additions | Feature | #5337 (original) | Suggested additions | |---------|-----------------|-------------------| | Target node selector | Single-select | Multi-select ✅ | | Port conflict handling | Not mentioned | Client-side check + auto-random + indicators ✅ | | Clients during clone | Copy clients | Keep empty (current behaviour) ✅ | | Default selection | Not specified | Pre-select the inbound's current node ✅ | --- *I'm happy to help test once any of these are implemented. Thanks for driving this feature forward!*
Author
Owner

@rlex commented on GitHub (Aug 14, 2026):

https://github.com/MHSanaei/3x-ui/pull/6216 - started working on it.

<!-- gh-comment-id:5297553660 --> @rlex commented on GitHub (Aug 14, 2026): https://github.com/MHSanaei/3x-ui/pull/6216 - started working on it.
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#3740
No description provided.