|
|
|
@ -333,8 +333,17 @@ action = iptables-multiport[name=Named, port="domain,953", protocol=tcp]
|
|
|
|
|
logpath = /var/log/named/security.log
|
|
|
|
|
ignoreip = 168.192.0.1
|
|
|
|
|
|
|
|
|
|
# Multiple jails, 1 per protocol, are necessary ATM:
|
|
|
|
|
# see https://github.com/fail2ban/fail2ban/issues/37
|
|
|
|
|
[asterisk]
|
|
|
|
|
|
|
|
|
|
enabled = false
|
|
|
|
|
filter = asterisk
|
|
|
|
|
action = iptables-multiport[name=asterisk-tcp, port="5060,5061", protocol=tcp]
|
|
|
|
|
iptables-multiport[name=asterisk-udp, port="5060,5061", protocol=udp]
|
|
|
|
|
sendmail-whois[name=Asterisk, dest=you@example.com, sender=fail2ban@example.com]
|
|
|
|
|
logpath = /var/log/asterisk/messages
|
|
|
|
|
maxretry = 10
|
|
|
|
|
|
|
|
|
|
# Historical support (before https://github.com/fail2ban/fail2ban/issues/37 was fixed )
|
|
|
|
|
[asterisk-tcp]
|
|
|
|
|
|
|
|
|
|
enabled = false
|
|
|
|
|