Tag Archives: hosts.deny

Atualize o hosts.deny para bloquear tentativas de brute force

2 Sep

Here I show a sinple script to block IPs that try brute force at your host, preventing you from use a alternative ssh port, as example. The script runs over /var/log/messages and detect via regex brute force attemps, and add IPs to /etc/hosts.deny Code: #!/bin/bash cp /etc/hosts.deny /var/tmp/hosts.deny # Jun 8 00:39:43 mintaka sshd[23332]: User […]