mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5337] [Feature]: "Cross-Node Inbound Cloning" to improve multi-node management efficiency #3740
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#3740
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 @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?
Before submitting
@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/addwithout anodeId. 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
nodeIdin the payload sent to the same/panel/api/inbounds/addendpoint, 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:
nodeIdin 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
AddInboundendpoint already acceptsnodeId.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.
@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:
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:
Showing a simple indicator next to each node option would help the user decide before committing:
If the port is busy, the backend
POST /panel/api/inbounds/addalready 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
I'm happy to help test once any of these are implemented. Thanks for driving this feature forward!
@rlex commented on GitHub (Aug 14, 2026):
https://github.com/MHSanaei/3x-ui/pull/6216 - started working on it.