Is there a script to block attacks as SSH attacks or else?

Here is a quick overview how to secure your network (and device):