Skip to content

[BUG]: Import / Reverse-Sync Existing Remote Node Configuration Into Master Panel #4293

Description

@neerro

Is your feature request related to a problem?

Problem

The new multi-node management system in 3x-ui works well when a brand-new node is added and managed entirely from the master panel.

However, there is currently no way to attach an already existing remote node with active inbounds/clients and import its configuration into the central/master server.

When an existing node is added:

existing inbounds are not synchronized to the master panel
existing clients are not imported
the remote node continues working independently
the master panel cannot fully manage already configured services

This forces administrators to:

delete existing configurations
recreate all inbounds manually
reconfigure clients again from scratch

For production environments this is risky and inconvenient.

Describe the solution you'd like

Expected Behavior

There should be a way to perform a reverse/full synchronization from the remote node into the master panel.

Example workflow:

Add existing remote node
Click "Import existing configuration" / "Sync from node"

Master panel fetches:

inbounds
clients
traffic stats
remarks
ports/listen
expiry/limits
settings JSON
Central database becomes synchronized with the current remote-node state
Further management can continue normally from the master panel

Why This Is Important

This is a common practice in clustered/panel-management systems.
Without reverse-sync/import support:
existing deployments cannot be migrated safely
onboarding nodes into centralized management is difficult
administrators must rebuild working configurations manually
production migration risk increases significantly

The recent full-mirror sync improvements already synchronize master → node very well.
Adding node → master bootstrap/import synchronization would complete the feature set and make node management practical for real-world deployments.

Suggested Implementation Ideas

Possible approaches:
one-time "Import from node" action
bidirectional sync mode
initial bootstrap sync during node registration
conflict resolution strategy (master priority / node priority)

Could also include:
dry-run preview
duplicate detection
optional overwrite behavior
Environment

3x-ui version: 3.0.0/3.0.1
Multi-node mode
Existing remote nodes with preconfigured inbounds/clients

Describe alternatives you've considered

No response

Checklist

  • This feature report is written entirely in English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions