[AsteriskBrasil] Fail2ban instalado mais nao bloqueia ataques

Alclicio Vieira alclicio em gmail.com
Sexta Abril 20 10:37:58 BRT 2012


Alguém tem o passo a passo de instalação do Fail2ban?

Em 20 de abril de 2012 10:36, Gustavo Fernandes
<gustavocearasc em hotmail.com>escreveu:

>  Srs,
>
> Instalei o Fail2ban para bloquear ataques no asterisk. Problema que o
> mesmo não esta bloqueando os ataques. Segue abaixo meus arquivos de
> configuração:
>
> jail.conf
>
> [asterisk-iptables]
>
> enabled  = true
> filter   = asterisk
> action   = iptables-allports[name=ASTERISK, protocol=all]
>            sendmail-whois[name=ASTERISK, dest=root, sender=
> gustavo.fernandes em tbmtextil.com.br]
> logpath  = /var/log/asterisk/full
> maxretry = 5
> bantime = 259200
>
>
> /etc/fail2ban/filter.d/asterisk.conf
>
> [Definition]
>
> #_daemon = asterisk
>
> # Option:  failregex
> # Notes.:  regex to match the password failures messages in the logfile.
> The
> #          host must be matched by a group named "host". The tag "<HOST>"
> can
> #          be used for standard IP/hostname matching and is only an alias
> for
> #          (?:::f{4,6}:)?(?P<host>\S+)
> # Values:  TEXT
> #
>
> failregex = NOTICE.* .*: Registration from '.*' failed for '<HOST>' -
> Wrong password
>             NOTICE.* .*: Registration from '.*' failed for '<HOST>' - No
> matching peer found
>             NOTICE.* .*: Registration from '.*' failed for '<HOST>' -
> Username/auth name mismatch
>             NOTICE.* .*: Registration from '.*' failed for '<HOST>' -
> Device does not match ACL
>             NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Peer
> is not supposed to register
>             NOTICE.* <HOST> failed to authenticate as '.*'$
>             NOTICE.* .*: No registration for peer '.*' \(from <HOST>\)
>             NOTICE.* .*: Host <HOST> failed MD5 authentication for '.*'
> (.*)
>             NOTICE.* .*: Failed to authenticate user .*@<HOST>.*
>             NOTICE.* .*: Registration from '\".*\".*' failed for '<HOST>'
> - No matching peer found
>             NOTICE.* .*: Registration from '\".*\".*' failed for '<HOST>'
> - Wrong password
> # Option:  ignoreregex
> # Notes.:  regex to ignore. If this regex matches, the line is ignored.
> # Values:  TEXT
> #
> ignoreregex =
>
> ALGUMA DICA?
>
>
>
>
> _______________________________________________
> KHOMP Inovação: External Board Series
> Módulos de 1/2 rack e 1U para todas as interfaces e soluções Asterisk e
> FreeSWITCH.
> Tenha a External Series Experience na sua aplicação. Visite www.khomp.com
> _______________________________________________
> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
> Contato (11) 3016-5200 – Site  www.digivoice.com.br
> ________
> YEALINK: Telefones IP e VídeoPhones IP com o melhor custo/benefício do
> mercado.
> email: yealink em commlogik.com.br | www.commlogik.com.br | (11) 5503-1011
> ______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para
> asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>



-- 
ALCLICIO VIEIRA,
ITIL® V3 Certification,
Crea-DF 10476 Telecom

Phone:55 (11) 3509-2505 - São Paulo
Phone:55 (61) 4063-7110 - Brasília
Phone:55 (62) 3416-7800 - Goiás
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20120420/be947d5d/attachment.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil