Tips for securing a Linux box 0 ▲ Levi Durfee 216 days ago · Tech · hide · Fediverse post I typically run an Ansible Hardening Playbook on any new Linux installation. After that, there are a few more things I do. For SSH, I'll make sure password authentication is disabled root user is denied no X11 forwarding no keyboard-interactive auth is enabled restrict SSH to a specific username If it's a VM, I'll also make sure I allow only my IP access to port 22. I also typically install Tailscale, so my ACLs will let me get in that way, too. The rest of the world has no reason to talk to my server on port 22. In addition to the host firewall running the VM, I make sure to setup nftables on each Linux box. The rules I use aren't complicated, I essentially: allow Tailscale UDP rate limit ICMP allow SSH from my IP For a VM, there aren't many firewall rules you need. I don't usually bother with fail2ban because the ports aren't exposed to the public. As for disk encryption, my VMs always run on a ZFS mirrored pool with AES encryption. Because, managing encryption keys for each VM, and… Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town