我想在fail2ban(Debian Jessie)中创建对abuseipdb.com的自动报告。
这是我的/etc/fail2ban/action.d/abuseipdb.conf
:
[Definition]
actionstart =
actionstop =
actioncheck =
actionban = curl --data 'key=<apikey>' --data 'category=<category>' --data 'ip=<ip>' --data-urlencode 'comment=<matches>' --user-agent 'fail2ban v0.8.12' 'https://www.abuseipdb.com/report/json'
actionunban =
[Init]
apikey = xxxx
我编辑了我/etc/fail2ban/jail.conf
:
...
# Here we use a combination of Netfilter/Iptables and IPsets
# for storing large volumes of banned IPs
#
# IPset comes in two versions. See ipset -V for which one to use
# requires the ipset package and kernel support.
[ssh-iptables-ipset4]
enabled = true
port = ssh
filter = sshd
banaction = iptables-ipset-proto4
abuseipdb[category=18]
logpath = /var/log/auth.log
maxretry = 3
...
但它没有正确报告。任何人都可以帮我修复配置吗?