Network ports and connections
This page lists all vStack HCP services that accept or open network connections: management VM and node ports, connection directions, connections outside the cluster and the accounts that the installation creates. How the network segments are built — Cluster network (SDN); how to restrict access — Secure cluster configuration.
Nodes and the management VM exchange data over segments that are not routed to user networks: the cluster network, the storage network and the isolated networks segment. The routed network — the public access network — carries the Center web interface and API, SSH, virtual machine (VM) consoles and the service connections of the management VM to the nodes: component installation, image distribution, VM transfer. That is why you restrict access to this network to the networks of administrators and of systems that work through the API.
Network segments
| Segment | Who is in it | What it carries | Routing |
|---|---|---|---|
| Public access network | nodes, the external interface of the management VM (.250), floating addresses of pools (.201 and up), the default gateway | the Center web interface and API, SSH to the management VM and nodes, VM consoles, service connections of Center to the nodes | yes; access only from the networks of administrators and of systems that work through the API |
| Cluster network | nodes, the management VM (.250), the floating address of the cluster manager (.1); 172.17.127.0/24 by default | message broker, metrics, commands to the cluster manager | no |
| Storage network | nodes | node disks for pools (iSCSI), cluster manager exchange between nodes | no |
| Isolated networks segment | nodes, floating addresses of pools (.201 and up) for NVMe-oF | isolated VM networks (VXLAN, Geneve); disks of VMs that run on a node other than the node of their pool (NVMe-oF/TCP) | no |
| Router service isolated network | the management VM (0.9.0.250), Edge routers; 0.9.0.0/16 | commands to routers, packages for routers | within the cluster |
| VM networks | VMs, Edge routers | tenant traffic | as the customer decides |
Management VM: inbound ports
| Port | Service | Listens on | Who connects | Access |
|---|---|---|---|---|
| 443/tcp | web server: web interface, API /.api/, VM console /.wss/, OS image upload from a file /.upload/ | all VM addresses | administrators, systems through the API, Edge routers | TLS 1.2 and 1.3; user session; lists of allowed networks for the API and image upload (api_fw) and for the VM console (wss_fw) |
| 80/tcp | web server | all VM addresses | — | redirect to 443 only |
| 22/tcp | SSH | all VM addresses | administrators | SSH sign-in |
| 123/udp | ntpd time service | all VM addresses | — | time synchronization of the VM itself |
| 5672/tcp | RabbitMQ message broker | 127.0.0.1; the address in the cluster network; the address in the router service isolated network | Center services; node controllers; Edge routers | a separate broker account and virtual host for each service |
| 8086/tcp | InfluxDB metrics | the address in the cluster network | node metric services, Center | account with a password |
Only on 127.0.0.1, not reachable from outside the VM: the cluster HTTPS endpoint 8080 (the web server publishes it externally on 443), PostgreSQL 5432, the RabbitMQ management interface 15672, the Erlang service ports 4369 and 25672, the InfluxDB backup service 8088.
The web server serves the web interface files and passes to the HTTPS endpoint only requests with the /.api/, /.wss/ and /.upload/ paths; for /.api, /.wss and /.upload without the trailing slash, it responds with 404. The endpoint returns the cluster map /.api/.status only with a valid user session and only what this user is allowed to see. Grafana and the /grafana/ path are removed in 3.3: the Center web interface shows node and VM charts itself, and the upgrade from 3.2 removes Grafana from the management VM.
Node: ports that are always open
| Port | Service | Listens on | Who connects | Purpose |
|---|---|---|---|---|
| 22/tcp | SSH | all node addresses | administrators; the management VM | administration; installation and update of node components |
| 123/udp | ntpd time service | all node addresses | — | node time synchronization |
| 514/udp | syslogd | all node addresses; accepts messages from the storage network | neighboring nodes | cluster logs |
| 1040/udp | cluster manager ccrd | node address in the storage network | cluster managers of neighboring nodes | leader election and agreement on the cluster state |
| 1041/tcp | cluster manager command executor runner | node address in the storage network | cluster manager of the leader | opening and closing pools, floating addresses, node fencing |
| 1100/tcp | cluster manager, control endpoint | the .1 floating address of the cluster network, only on the leader | Center; utilities on the nodes | state of nodes and services, commands to the cluster |
| 3260/tcp | node iSCSI target | node address in the storage network and 127.0.0.1 | neighboring nodes | nodes serve each other the disks that pools are built from |
| 4420/tcp | NVMe-oF/TCP target (SPDK) | floating address of the pool in the isolated networks segment | hypervisor of the node where the VM runs | disks of a VM that runs on a node other than the node of its pool |
| 4789/udp | VXLAN | node address in the isolated networks segment | nodes | transport of isolated VM networks |
| 9103–9105/tcp | metrics of the storage, cluster and node services | 127.0.0.1 | only the services of the node itself | — |
Open only when the corresponding feature is used:
| Port | Service | When |
|---|---|---|
| 6081/udp | Geneve | isolated networks of the Geneve type |
| 10000/tcp | NDMP | backup by external software over NDMP |
The NRPE agent (5666/tcp), the telegraf metric collector and the vmagent collector (8429/tcp) are not configured on the nodes by Center 3.3: the node controller itself writes the node metrics to InfluxDB on the management VM, and the VM metric service writes the VM metrics.
Node: ports open while VMs run and during operations
| Port | When open | Service | Listens on | Who connects |
|---|---|---|---|---|
| 10001–65530/tcp — VM graphical console; 2050–65535/tcp — text console | while the VM is running; the numbers are assigned to the VM at creation | bhyve hypervisor | node address or floating address of the pool in the public access network | the management VM: the user gets the console through 443 using a one-time link that is valid for 300 s |
| 221–238/tcp | VM live migration, on the receiving node | bhyve hypervisor | node address | source node |
| 201–218/tcp | cold migration of a VM and moving its disks, distribution of OS images across pools | storage controller | all node addresses; the port closes after the first connection or after a timeout of 30–300 s | sending node; the management VM |
The 201–218 and 221–238 ranges are set by Center parameters (sndrcv_port_min, sndrcv_port_max, LM_PORT_MIN, LM_PORT_MAX). Both are below 1024, so a port scanner shows them under the names of other services from /etc/services.
Connection directions
The direction is from the side that opens the connection.
| From | To | Port | Segment | Purpose |
|---|---|---|---|---|
| administrators, systems through the API | management VM | 443/tcp | public access | web interface, API, VM console, image upload from a file |
| node controllers: VM, network, storage, node | management VM | 5672/tcp | cluster | Center commands, responses and events |
| node metric services: the node controller, the VM metric service | management VM | 8086/tcp | cluster | metrics |
| Center | cluster manager leader, address .1 | 1100/tcp | cluster | cluster state, commands to pools and nodes |
| management VM | nodes | 22/tcp | public access | deployment of the node controller configuration |
| management VM | node, VM console port | 10001–65530, 2050–65535 | public access | VM console for the user |
| management VM | node | 201–218/tcp | public access | distribution of OS images across pools |
| node | node | 1040/udp, 1041/tcp | storage | cluster manager |
| node | node | 3260/tcp | storage | disks for pools |
| node | node that serves the pool | 4420/tcp | isolated networks | VM disks |
| node | node | 201–218/tcp, 221–238/tcp | public access | VM and disk transfer |
| node | node | 4789/udp, 6081/udp | isolated networks | isolated VM networks |
| node | node | 514/udp | storage | cluster logs |
| Edge router | management VM, 0.9.0.250 | 5672/tcp, 443/tcp | router service isolated | commands to the router, packages for the router |
Connections outside the cluster
After installation, the cluster uses default addresses (public NTP pools, the vStack repository); set your own — vStack support does this during installation. Neither the management VM nor the nodes send telemetry to the vendor.
| From | To | Port | Purpose | Where it is set |
|---|---|---|---|---|
| management VM, nodes | time servers | 123/udp | time synchronization | the ntp_servers parameter of the management VM, on the nodes — the time service settings; set by vStack support |
| management VM, nodes | DNS | 53/udp, 53/tcp | name resolution | when the management VM is deployed; on the nodes — during installation |
| management VM, nodes | vStack repository or customer mirror | 443/tcp | updates | when the management VM is deployed; on the nodes — the --repo-url option of the update script |
| management VM | OS image library source | 443/tcp | download of guest OS images | registered by an administrator; not set by default |
| management VM | mail server | 25/tcp or the configured port | emails about security event log events, only over STARTTLS or TLS | off until a mail server is set — Receive log events by email |
| Windows VMs | KMS server | 1688/tcp | Windows activation | the KMS_HOST Center parameter |
Accounts that the installation creates
| Where | Account | How it is set |
|---|---|---|
| node | root SSH keys | the installer places the key that the management VM uses to access the nodes |
| management VM | service accounts: PostgreSQL (mgmt — the database owner; postgres — only locally through a Unix socket), RabbitMQ (admin and one for each service), InfluxDB (admin and the metric write account) | passwords are generated during installation: 24 characters, stored in a directory accessible only to root, and in the service configuration files with 0600 permissions |
| Center | superadmin — the built-in account with the Cluster master role for the whole cluster; no other roles are assigned to it | a vStack engineer hands over the password of the first account when the cluster is delivered; change it at the first sign-in. After 4 failed sign-in attempts, the account is locked for 30 minutes, like any other account |
Access restriction tools
| Where | Tool | What it does |
|---|---|---|
| customer switches and firewalls | segment separation | service segments are not routed to user networks; customer switches and firewalls restrict access to the nodes |
| management VM | pf firewall, the pf_enabled parameter | off after installation. When on, it filters the external interface: it allows 443, 80, ICMP and SSH from the pf_admin_nets networks; for SSH, it limits the connection rate and blocks sources that exceed the limit |
| management VM | web server network lists api_fw and wss_fw | restrict where the API and image upload from a file (api_fw) and the VM console (wss_fw) can be reached from; an empty list means no restriction |
| Edge router | router firewall | applies tenant rules in the specified order; there are no rules by default; set a deny-all rule first, then the allow rules — Configure firewall rules |
The pf_enabled, pf_admin_nets, api_fw and wss_fw parameters are management VM deployment settings, and vStack support changes them. How to apply these tools — Secure cluster configuration.