CMP Docs

Use a connector when the panel or cloud you want to manage is on a private network, for example 192.168.2.210 in your office or 10.0.0.5 in your data centre, and can't be reached from the internet.

How it works#

The portal never connects to your network. A small agent, the connector, runs on a machine inside it and does the calling:

Portal  <── the connector calls out ──  Connector machine  ── calls inside your network ──>  Your panel
(internet)        (HTTPS only)          (inside your network)                              (private address)
  1. The connector keeps a connection open out to the portal over HTTPS.
  2. When the portal needs the panel, it hands the request to the connector over that connection.
  3. The connector sends it to the panel over your local network, and passes the answer back.
  • Nothing to open: the connector only makes outgoing connections, so you don't change your firewall or forward any port.
  • Only what you allow: it calls only the addresses in its allow list. The portal can't use it to reach anything else on your network.
  • Your data stays put: it relays exactly the API calls the portal would otherwise make directly.

Before you start#

  • You need to be an Owner or Admin.

  • You need a Linux machine inside the network with:

    • Python 3.8 or newer (almost every distribution has it);
    • systemd 247 or newer (Ubuntu 22.04, Debian 11, RHEL 9 or later; check with systemctl --version);
    • outgoing HTTPS access to the internet.
  • That machine must be able to reach the panel. Check this first, from the machine itself:

    curl -kI https://192.168.2.210:4083/
    

    Any HTTP answer, such as 200 or 302, is fine. Connection refused or a timeout means the machine can't reach the panel; fix that first (see Troubleshooting).

1. Create the connector#

  1. Go to Cloud accounts › Connectors.
  2. Under Add a connector, enter a Name, for example Mumbai office, and select Create connector.
  3. The Install the agent card shows the connector's token and the exact commands, with your portal's address filled in.

2. Install the agent#

Run these on the machine inside your network, copying them from the Install the agent card.

  1. Download the agent:

    sudo curl -fsSL https://<portal>/connector/cmp-connector.py -o /usr/local/bin/cmp-connector.py
    
  2. Create the configuration file /etc/cmp-connector.json, then make it readable by root only with sudo chmod 600 /etc/cmp-connector.json:

    {
      "portal": "https://<portal>",
      "token": "cmpc_…",
      "allow": ["https://192.168.2.210:4083", "https://192.168.2.210:4085"]
    }
    

    In allow, list each address the portal may reach, as scheme, host and port, exactly as in the panel URL. A Virtualizor client area is usually on port 4083 and its admin panel on 4085.

  3. Create the service and start it. The card shows this unit file:

    sudo tee /etc/systemd/system/cmp-connector.service >/dev/null <<'UNIT'
    [Unit]
    Description=Cloud portal connector
    After=network-online.target
    Wants=network-online.target
    
    [Service]
    ExecStart=/usr/bin/python3 /usr/local/bin/cmp-connector.py --config ${CREDENTIALS_DIRECTORY}/config
    LoadCredential=config:/etc/cmp-connector.json
    Restart=always
    RestartSec=5
    DynamicUser=yes
    
    [Install]
    WantedBy=multi-user.target
    UNIT
    sudo systemctl daemon-reload
    sudo systemctl enable --now cmp-connector
    

    The agent runs as a temporary user with no rights on the machine. systemd hands it a private copy of the configuration, so the file itself stays readable by root only.

Check that it worked: within a minute, the connector shows Online on the Connectors page, with the machine's name and the agent's version. On the machine, sudo journalctl -u cmp-connector -f shows the agent's log.

3. Connect the panel or cloud through it#

Follow the guide for your cloud, entering its internal address, the one the connector's machine uses:

Under Reach it, choose the connector. The portal checks the credentials through the connector before saving them.

One connector can serve every panel in its network. For panels in separate networks, run one connector in each.

Status#

Status Meaning
Waiting for the agent The agent has never connected. Check the token and the portal address in the configuration file.
Online The agent was in touch in the last 90 seconds.
Offline The agent stopped connecting. Check the service with sudo systemctl status cmp-connector.

What works through a connector#

Everything the portal does through the panel's or cloud's API works through a connector: finding servers, power actions, reinstalling, backups and the rest.

The exception is the browser console: your browser connects to the console directly, so it only works from inside the network. Use the panel's own console, or SSH from inside your network.

Change the token#

If the token was exposed, replace it:

  1. Create a new connector.
  2. Put its token in /etc/cmp-connector.json and run sudo systemctl restart cmp-connector.
  3. Move your cloud accounts to the new connector: disconnect each one, then connect it again choosing the new connector.
  4. Delete the old connector.

Delete a connector#

  1. Disconnect the cloud accounts that use it.
  2. Select Delete next to the connector. Its token stops working straight away.
  3. On the machine, remove the agent: sudo systemctl disable --now cmp-connector.

Troubleshooting#

Read the agent's log on the machine first: sudo journalctl -u cmp-connector -f.

What you see Cause and fix
the portal does not accept this token The connector was deleted, the token is incomplete, or it was created on a different portal. Create a new connector on this portal and put its token in the configuration file.
Permission denied: '/etc/cmp-connector.json' The service was installed from older steps. Replace the unit file with the one above, then run sudo systemctl daemon-reload && sudo systemctl restart cmp-connector.
could not reach … Connection refused The connector's machine can't reach the panel: nothing listens on that address and port, or a firewall rejects it. Check with curl -kI from the machine, then check the panel's address, port and firewall.
refused … not on the allow list The portal asked for an address you didn't list. If it's your panel, add it to allow (scheme, host and port) and restart the agent.
certificate verify failed Tick The panel uses a self-signed certificate when connecting the panel.
The panel did not return API data … it sent its sign-in page The panel refused the API key. For Virtualizor, the form, the port and the key must match: see Connect a Virtualizor account.
The connector stays Waiting for the agent Check that the service is running and that the machine can reach the portal: curl -I https://<portal>/up.

With the API#

  • GET /api/v1/organizations/{id}/connectors lists connectors.
  • POST /api/v1/organizations/{id}/connectors creates one. Only this response includes the token.
  • DELETE /api/v1/organizations/{id}/connectors/{connector} deletes one.

Last updated 2 December 2026