#, #FreePBX Asterisk, # ? Telegram!

Asteriska - Fail2ban. Fail2ban - Linux, - IP .

Fail2ban - (Intrusion Prevention System), Brute-force ( ). Python, Fail2ban POSIX, (Firewall) , TCP Wrapper IPTABLES

, Fail2ban , -

Fail2ban Asterisk, IPTABLES .

IPTABLES - Linux, IP NAT. IPTABLES IP Linux . IPTABLES . (chains) , . , . , , .

IPTABLES, :

# iptables L

      (chains),   INPUT, FORWARD  OUTPUT,       ,  .
 IPTABLES    :

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination     

, IPTABLES . IPTABLES Fail2ban, , Fail2ban . Fail2ban , , , , IPTABLES . , SIP , Fail2ban , , , .

Fail2ban .
, /etc/fail2ban/jail.conf


[asterisk-iptables]
enabled  = true
filter   = asterisk
action   = iptables-allports[name=ASTERISK, protocol=all]
           sendmail-whois[name=ASTERISK, dest=root, sender=fail2ban@merionet.ru]
logpath  = /var/log/asterisk/security
maxretry = 5
bantime = 259200

, . , 3 IP-, 5 Asterisk, e-mail, .


?

 .

P.S. , :)

"",