diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.local/10asterisk b/root/etc/e-smith/templates/etc/fail2ban/jail.local/10asterisk index fa56648..36c8bd1 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.local/10asterisk +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.local/10asterisk @@ -9,7 +9,7 @@ $OUT .= "\n[$_]\n"; $OUT .= "enabled = true\n"; $OUT .= "port = $port\n"; - $OUT .= "logpath = /var/log/asterisk/full\n"; + $OUT .= "logpath = /var/log/asterisk/full /var/log/asterisk/nethcti.log\n"; $OUT .= "maxretry = $maxretry\n"; $OUT .= "action = $action\n\n" diff --git a/root/etc/fail2ban/filter.d/asterisk_nethserver.conf b/root/etc/fail2ban/filter.d/asterisk_nethserver.conf index 6dcd985..deb1be8 100644 --- a/root/etc/fail2ban/filter.d/asterisk_nethserver.conf +++ b/root/etc/fail2ban/filter.d/asterisk_nethserver.conf @@ -22,5 +22,6 @@ failregex = ^%(__prefix_line)s%(log_prefix)s failed to authenticate as ' ^%(__prefix_line)s%(log_prefix)s tried to authenticate with nonexistent user '.*'$ ^%(__prefix_line)s%(log_prefix)s failed to pass IP ACL as '.*'$ ^%(__prefix_line)s%(log_prefix)s "Rejecting unknown SIP connection from :.*"$ + ^%(__prefix_line)s *.send HTTP 401 response to :.*$ ignoreregex =