559 IT Telegram . ?

. FreePBX 14 fail2ban.

fail2ban, - 0.8.14-11 . rpm -qa | grep fail2ban:

fail2ban-fpbx-0.8.14-11.sng7.noarch

, FreePBX Distro 14 fail2ban , " (jails) = 0.

fail2ban-client status, , :

[root@merionlab]# fail2ban-client status
Status
|- Number of jail: 0
`- Jail list:

, , - FreePBX SIP- - , IP-, . , Intrusion Detection FreePBX .

"" jails - /etc/fail2ban/jail.local, , , , , , .

, [asterisk-iptables]:

[asterisk-iptables]
enabled  = true
filter = asterisk-security
action   = iptables-allports[name=SIP, protocol=all]
           sendmail[name=SIP, dest=none@yourpbx.com, sender=none@yourpbx.com]
logpath  = /var/log/asterisk/fail2ban
maxretry = 5
bantime = 1800

, /var/log/asterisk/fail2ban, 5 ( SIP ) IP- 30 . email .

, /etc/fail2ban/jail.local 7 - [apache-tcpwrapper], [recidive], [ssh-iptables], [apache-badbots], [pbx-gui], [asterisk-iptables], [vsftpd-iptables]. .


, . fail2ban systemctl stop fail2ban /usr/lib/systemd/system/fail2ban.service:

[Unit]
Description=Fail2Ban Service
After=httpd.service

[Service]
Type=forking
ExecStartPre=/bin/mkdir -p /var/run/fail2ban
ExecStart=/usr/bin/fail2ban-client -x start
ExecStop=/usr/bin/fail2ban-client stop
ExecReload=/usr/bin/fail2ban-client reload
PIDFile=/var/run/fail2ban/fail2ban.pid
Restart=always

[Install]
WantedBy=default.target

fail2ban systemctl start fail2ban , systemctl enable fail2ban.

fail2ban. :

yum install sangoma-devel
yum update

fail2ban - rpm -qa | grep fail2ban:

fail2ban-fpbx-0.8.14-75.sng7.noarch

, fail2ban-client status jails fail2ban Intrusion Detection :

[root@merionlab]# fail2ban-client status
Status
|- Number of jail:      7
`- Jail list:           apache-tcpwrapper, recidive, ssh-iptables, apache-badbots, pbx-gui, asterisk-iptables, vsftpd-iptables
, , [DEFAULT] ignoreip /etc/fail2ban/jail.local

?