brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: lynis audit system gives a security report with a hardening score for your server

Security
~/tips/tip-security-lynis-audit-system-report

sudo lynis audit system

Audits a Linux host read-only and lists warnings and suggestions with a hardening index.

I like one tool that checks the whole host and tells me what to look at next. Lynis does that without changing anything.

sudo apt install lynis
sudo lynis audit system

Lynis runs tests on boot, SSH, kernel settings, file permissions, packages and more. At the end it prints warnings, suggestions with test IDs and a hardening index. Details of each test go to /var/log/lynis.log.

Treat the score as a to-do list and not as a grade. Some suggestions do not fit every server, and the packaged version in the distribution can be older than the current release.

Further reading: lynis manual page

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link