Locking down a fresh Linux server: What you actually need to do before bots find it
(unknownuniverse.uk)
Good guide as a base. Few thought...
I'd use unattended-upgrades instead of the script. A long know mehod and does similar, and the script doesn't reboot for a kernel CVE. I'd pair it alongside out-of-band console and an uptime check.
Fail2ban needs rsyslog enabled (or proper logging) or it silently reads nothing.
And lastly Journald needs retention set, or you can loose logs in reboots.
Also I'm not sure if 'core' is enough anymore for a public operating and accessed server, but it's absolutely vital as a start.