Para ufw
, procure no comando limit
.
sudo ufw limit ssh
Na seção da página ufw
man no comando limit
:
RULE SYNTAX
[...]
ufw supports connection rate limiting, which is useful for protecting
against brute-force login attacks. ufw will deny connections if an IP
address has attempted to initiate 6 or more connections in the last 30
seconds. See http://www.debian-administration.org/articles/187 for
details. Typical usage is:
ufw limit ssh/tcp