A fresh Proxmox VE install works out of the box, but "works" and "hardened" are two different things. During my internships I set up several Proxmox hypervisors, and these are the eight steps I now apply every time, before the first VM goes live.
1. Keep the web UI off the user network
The management interface listens on port 8006. It should only be reachable from a dedicated admin VLAN, never from the users' network and never from the Internet. If you need remote access, go through a VPN (WireGuard works great) rather than exposing the port.
2. Turn on the Proxmox firewall
The built-in firewall is disabled by default at datacenter level. Enable it, set the input policy to DROP, then allow only SSH (22) and the web UI (8006) from your admin subnet. Add the rules before switching the policy, or you will lock yourself out.
3. Lock down SSH
- Key-based authentication only:
PasswordAuthentication no - No direct root login:
PermitRootLogin prohibit-passwordat minimum,noif you use a personal account withsudo - Restart with
systemctl restart sshand test from a second session before closing the first one.
4. Stop doing everything as root@pamCreate named users in the pve realm, give them only the roles they need (PVEVMUser, PVEAuditor...), and enable TOTP two-factor authentication. Keep root@pam for emergencies.
5. Prefer unprivileged LXC containers
Unprivileged is the default, and it is tempting to untick it when a bind mount fails. Fix the UID/GID mapping instead: a privileged container that gets compromised is much closer to being root on the host.
6. Fix the repositories
Without a subscription, disable the enterprise repository and enable no-subscription. Leaving the enterprise repo active without a licence makes apt update fail, and updates silently stop.
7. Back up somewhere else
Schedule backups of VMs and containers to a separate target, ideally Proxmox Backup Server. Then actually restore one, once. A backup you have never restored is a hope, not a backup.
8. Audit the host
Run Lynis after installation (lynis audit system). It will not make the host secure by itself, but it is very good at pointing out the settings you forgot.
That is my baseline, not a complete security policy. What do you add on every install? A reverse proxy in front of 8006? Fail2ban on the web UI?
This is an English adaptation of my French guide, which goes into more detail with every command: Sécuriser son serveur Proxmox VE. I'm a cybersecurity student in France.
