Skip to content
Skip to Content

Server hardening

How the setup hardens every connected server, in short, with a link to every change in detail.

When you connect a server, the setup hardens it before anything else runs on it. In short:

AreaWhat the setup does
AccessCreates the openpanel user, which signs in only with a key OpenPanel holds.
SSHMoves SSH to a random port, turns password and root sign-in off, allows only openpanel, and limits sign-in attempts.
FirewallTurns on ufw: every incoming connection is refused except SSH on its new port, HTTP and HTTPS, and ports Docker publishes stay closed too. See Firewall.
Brute forcefail2ban bans an address for an hour after repeated failed SSH sign-ins.
UpdatesInstalls every pending update, and turns on automatic security updates.
PasswordsReplaces the passwords of root, openpanel and the user you connected with by one new random password, for your provider's web console only. SSH never accepts it.
LogsKeeps the system log across restarts, and rotates container logs.
The agentInstalls the signed OpenPanel agent, which only connects out, runs under a systemd unit that keeps the rest of the system read-only to it, and signs in with a key that never leaves the server.

The setup keeps a way in open at every moment: each change is checked from a new connection before the old one closes, and the SSH and firewall changes are put back if the check fails.

What OpenPanel changes on your server lists every change in detail, and The setup steps says what can fail at each step.

After a disconnect

A clean disconnect removes the agent, OpenPanel's containers, key and settings, and turns password sign-in back on. The firewall and automatic updates stay: they only protect the server. See Disconnect and force disconnect.

On this page

Ask AI about this page

Was this helpful?