Ask HN: What should I do before exposing a home server to the internet?
I'm thinking about putting together a home server and giving it a static IP, for some basic stuff like hosting web projects and maybe a ProtonMail bridge
I know very little about system security, but I know that opening up a vanilla distro with all the default daemons and open ports could be inadvisable
So what's a good strategy for a hobbyist to secure their server? Is there a fire-and-forget firewall I could set up? A minimal distribution that has nothing outside of what you need for this type of hosting? Is there a step-by-step guide out there for locking things down?
(
5 comments
| 2 points
| on HN
)
this will give a partial threat profile but will also show you just how sketchy the net is outside of a secure space.
Re. fail2ban - nearly all ssh scanning attempts in the wild seem to be from unsophicated attackers using some pieces of obsolete software. I disabled all but a couple of modern ciphers/mac/kex algorithms and hardly ever see any password bruteforce attempts in my logs (not that they have any chance of working - I disable password authentication as well). Mostly a bunch of "no matching key exchange method found" which I regard a minor nuisance.
so you "knock" on port 666 lets say with a majic packet of some sort this opens a secured SSH port, then drops it on command or idle time to live expires