Skip to content

Instantly share code, notes, and snippets.

View krull's full-sized avatar
🚀
I may be slow to respond. #AFK4life

Brendan Jocson krull

🚀
I may be slow to respond. #AFK4life
View GitHub Profile
@mpochron
mpochron / jail.local
Last active November 1, 2021 00:19
Maltrial - integration with Fail2ban
; /etc/fail2ban/jail.local
[maltrail-iptables]
enabled = true
filter = maltrail
bantime = 31536000
action = iptables-allports[name=MALTRAIL, protocol=all]
;action = vesta[name=MALTRAIL]
echo "logpath = /var/log/maltrail/$(ls -1t /var/log/maltrail | grep -E '^[^error.log]' | head -1)"
maxretry = 1