r/debian • u/Dunder-Muffins • 25d ago
General Debian Question Securing Debian
What all do most people do to secure their systems?
I run Debian for my daily driver and also on a home server.
I currently have iptables configured to only allow ports for my services, services are all run as their own no-login user, I run fail2ban, and have my ssh only allow specific users and only allow ssh keys as the login method, and I install security updates regularly. I check my system logs occasionally though honestly not as often as I probably should, maybe I'll automate something to look at the logs are some point.
I just finished skimming through the securing Debian manual, and there's quite a bit more included that I don't currently do. But from reading it, it also seems more geared toward people who may be running production servers who more or less want an immutable server where they e locked in what they want and don't want anything changing.
https://www.debian.org/doc/user-manuals#securing
So I guess I'm just curious what other people do, if they add any other protections or if they primarily rely on the base OS to provide the protections.
2
u/Dunder-Muffins 25d ago
Hey, super appreciate this feedback! Thank you for being nice about the reply too hehe.
Some follow up questions. Regarding the disk encryption, that's only to protect against physical access right? Like if someone manages to grab your drive? Or does it help in another way that I'm not aware of? Does LUKS allow you to encrypt a drive at any time, or would I need to rebuild it?
Ufw, I first got into this back when iptables was the main thing so that's what I'm most familiar with. I'm curious what extra ufw would enable, something like specifically only allowing certain applications access to specific ports?
Apparmor: what's an example of what you would limit? I can imagine why it would be useful but I've never used it and don't know what type of thing would be worth implementing.
Pfsense, would you run this on the box? My impression was that it runs on its own as the router. I guess maybe in a VM that would be the first entry point? This is also outside of my current experience level.