If you are publishing any kind of service to the public internet, you absolutely want to make sure incoming requests are handled responsibly, and ultimately, protect yourself against repeated unauthorized access attempts.
In an example of a standard ssh service, this can be quite easy - just set up blocklistd or fail2ban to monitor the requests and block appropriately, but when it comes to blocking guest services (in this example I am protecting FreeBSD jails) there's a little more to it.
When I've set this up myself in various places I have found myself having to reference multiple different documents. I intend to write some notes for myself here for a complete solution, which I hope also help other people when trying to do something similar.
Read More