Hardening is the difference between a server that is attacked and a server that is compromised. This guide locks down a GoAdmio machine in layers, from the outside in.
Layer 1: The firewall
Everything starts here: if a port is closed, its service cannot be attacked. Review the firewall (Restart Services » Firewall) and expose only what you use: web (80/443), mail ports if you host mail, the panel port 2025, and SSH. Every other open port needs a written reason.
Layer 2: SSH
SSH is the most-scanned door on the internet. Move to key-based authentication for root, disable password logins where your workflow allows, and keep shell access granted per account through Security » Manage Shell Access rather than handing out shells casually. Fail2Ban watches the guesses that remain.
Layer 3: The panel itself
Two-factor authentication on every privileged login, a strong admin password, and Brute-force protection confirmed running. The panel is the keys to every account on the box; treat its login accordingly.
Layer 4: PHP and the web layer
- Security » Disable PHP Functions — remove the dangerous built-ins (exec, shell_exec and friends) for accounts that do not need them.
- Security » Open Basedir Settings — fence PHP into its own account directories so one hacked site cannot read another’s files.
- Security » Bot Shield, Block Bad Bots and DDoS Protection — shed abusive traffic before it reaches applications.
- Current PHP versions via MultiPHP Manager; old versions are known vulnerabilities with a version number.
Layer 5: Assuming breach
Even good walls get climbed, so make intrusion survivable: ClamAV scanning, scheduled off-server backups (tested!), and per-account isolation that keeps one customer’s bad plugin from becoming everyone’s incident.
Keep it hardened
Hardening decays: ports get opened “temporarily”, passwords get shared “just this once”. A quarterly pass over the security checklist resets the drift.
Layered, boring, effective. The settings are documented in the docs, and more at goadmio.com.
