antiblock
Cyphriun
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Morfo69

Proteger Servidor Contra Ataques Brute Force Ssh E Outros Ataques

2 posts in this topic

Olá, a fim de proteger a nossa máquina contra ataques de Brute Force SSH vamos usar sshguard de portas do FreeBSD, vo ser rápido mas breve :
 
  cd /usr/ports /security/sshguard -pf  make install clean ; rehash
 
O  sshguard funciona lendo os arquivos de log. Também irá proteger o nosso servidor de:
 
   sendmail, exim, dovecot, cucipop, UWimap bruteforce attacks   proftpd, vsftpd, pure-ftpd, FreeBSD ftpd bruteforce attacks
 
 
Para configurar o sshguard , edita o ficheiro em "/etc/pf.conf" e adiciona as seguintes linhas:
 
  table <sshguard> persist  block in quick on $ext_if proto tcp from <sshguard> to any port 22 label "SSH bruteforce atempt"
 
 
Depois, edita o ficheiro "/etc/syslog.conf" e adiciona a  seguinte linha:
 
 auth.info;authpriv.info     |exec /usr/local/sbin/sshguard
Agora reinicia o serviço syslog :
 
 /etc/rc.d/syslogd restart
 
 
Para verificares se o IP do atacante é adicionado à tabela sshguard do teu PF Firewall :
 
  pfctl -Tshow -tsshguard
 
Projeto sshguard,

Share this post


Link to post
Share on other sites
antiblock
https://arwen2.global/

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this