by slap_shot · 6y ago · 0 comments
As a follow up, what is increased benefit (if any) if port 22 is only accessible by a certain IP address (e.g. my home address)?
So far I haven’t had any issues, fail2ban works, and it seems safe.
I do have my home IP added to the whitelist and others set to drop.
I was told in a networking class this is the second best way to protect ssh other than not running ssh.
Any thoughts on this setup as well? Maybe oversights that I’m not seeing?
Filtering ssh connections at firewall level helps, and certainly reduces log entries for port scans and can halt less sophisticated attackers, but it doesn't mitigate attack vectors like a DDoS or a well funded actor.