Here is an example of how to defend against bruteforce attacks on an ssh port. Please note, that ssh allows 3 login attempts per connection and the address lists are not cleared upon a successful login, so it is possible to blacklist yourself accidentally.
https://help.mikrotik.com/docs/displa...
Watch video Bruteforce protection - MikroTik firewall rules online without registration, duration hours minute second in high quality. This video was added by user MikroTik 17 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 30,663 once and liked it 670 people.