Virtualizor

Harden a Virtualizor master and its KVM nodes

Secure Virtualizor: restrict admin panel access by IP, enforce 2FA, use SSL, firewall node ports, secure SSH, protect API keys and isolate VPS network traffic.

AdvancedVirtualizor admin2 min read

A compromised Virtualizor master gives an attacker control over every VPS on your platform. A few hardening steps on the panel and the host nodes greatly reduce that risk. This checklist is for administrators running their own Virtualizor installation.

Before you start

  • Root access to the master and nodes, and out-of-band access (IPMI) in case a firewall change locks you out.
  • A list of your fixed admin IPs or VPN ranges.

Protect the admin panel

  • Restrict by IP: in Configuration → Master Settings (or security settings), limit admin panel login on port 4085 to your office or VPN IPs.
  • Two-factor authentication: require it for all admin accounts.
  • Separate staff accounts: no shared root login – create admin users with ACLs; see users and ACLs.
  • Valid SSL: install a certificate for the panel hostname in Configuration → SSL Settings so browsers never teach staff to ignore warnings.
  • Session timeout: shorten idle sessions.

Firewall the nodes

PortPurposeAllow from
4081–4083End-user panel and APIEveryone (customers), or your billing system only for the API
4084–4085Admin panelAdmin IPs only
Master–slave communicationPanel portsMaster and slave IPs only
VNC rangeCustomer consolesAs required by your noVNC setup
22SSHAdmin IPs only

Apply rules with firewalld, nftables or CSF on each node, and test from outside before closing your session.

Secure SSH on nodes

  • Use SSH keys and disable password login (PasswordAuthentication no).
  • Disable direct root login or restrict it to keys (PermitRootLogin prohibit-password).
  • Enable Fail2Ban for SSH; see Fail2Ban jail settings.

Protect API credentials

  • Create separate API keys per integration (WHMCS, scripts) and restrict each to its source IP.
  • Rotate keys when staff change, and delete unused keys.

Isolate VPS traffic

  • Enable IP and MAC anti-spoofing so a VPS cannot use addresses that are not assigned to it.
  • Rate-limit outbound traffic per plan to limit damage from compromised VPS.
  • Monitor abuse reports and suspend VPS that send spam or attack others.

Keep everything patched

Apply panel updates and host security updates regularly, and reboot nodes for kernel updates in planned windows; see updates and maintenance.

Monitor

  • Review admin login logs and task logs for actions you did not expect.
  • Alert on unusual CPU, network or disk activity on nodes.
  • Keep off-site backups of VPS and the master's database.

Troubleshooting

  • Locked out after IP restriction: use IPMI or SSH from an allowed IP to edit the setting.
  • Customers cannot open VNC after firewalling: allow the VNC/noVNC ports again.
  • WHMCS stopped provisioning: the API port or key IP restriction now blocks the billing server.

Next steps

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.