https://gitlab.synchro.net/main/sbbs/-/issues/887#note_6760
I use fail2ban to achieve this. Follow here:
https://wiki.synchro.net/howto:fail2ban
I then added these lines to my /etc/fail2ban/jail.d/sbbs.conf jail config.
[sbbs-web]
enabled = true
filter = sbbs-web
action = iptables-allports[name=SBBS-web, protocol=all]
logpath = /var/log/sbbs.log
maxretry = 3
findtime = 21600
bantime = 21600
and then my /etc/fail2ban/filter.d/sbbs-web.conf:
[INCLUDES]
before = common.conf
[Definition]
failregex = : web.*HTTP.*\[<HOST>\].*!ERROR:
ignoreregex =
Remember to do a:
fail2ban-client reload
to reload your new configs.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net