Now, go to your IP Blocked event in mystic -cfg, and prefix the Shell command with sudo. The shell command should now look like the following:
sudo ufw deny from @IP@
Just to give a little more context around this.. Here is a snippet from my mis log just now.. normally the BBS is still processing each connection request and blocking it once an IP is on the blacklist.
Using the IP block will allow the firewall of the server to block it, so Mystic never see's it. Also, just wanted to show proof of my previous configuration actually working ;)
+ 2021.08.28 13:47:57 TELNET 1-Closing terminal process (5)
+ 2021.08.28 13:47:57 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:57 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:57 TELNET 1-Auto banning IP 188.148.147.88
+ 2021.08.28 13:47:57 TELNET 1-Blocked connection
+ 2021.08.28 13:47:57 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:57 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:57 TELNET 1-Blocked connection
+ 2021.08.28 13:47:58 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:58 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:58 TELNET 1-Blocked connection
+ 2021.08.28 13:47:58 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:58 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:58 TELNET 1-Blocked connection
+ 2021.08.28 13:47:58 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:58 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:58 TELNET 1-Blocked connection
+ 2021.08.28 13:47:59 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:59 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:59 TELNET 1-Blocked connection
+ 2021.08.28 13:47:59 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:59 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:59 TELNET 1-Blocked connection
+ 2021.08.28 13:47:59 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:47:59 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:47:59 TELNET 1-Blocked connection
+ 2021.08.28 13:48:00 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:48:00 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:48:00 TELNET 1-Blocked connection
+ 2021.08.28 13:48:00 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:48:00 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:48:00 TELNET 1-Blocked connection
+ 2021.08.28 13:48:00 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:48:00 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:48:00 TELNET 1-Blocked connection
+ 2021.08.28 13:48:01 TELNET > Connect on slot 1/255 (188.148.147.88)
+ 2021.08.28 13:48:01 TELNET 1-HostName c188-148-147-88.bredband.tele2.se
+ 2021.08.28 13:48:01 TELNET 1-Blocked connection
+ 2021.08.28 13:48:04 EVENT Running event: Firewall Ban Linux
+ 2021.08.28 13:48:04 EVENT Cmd: sudo /usr/sbin/ufw deny from 188.148.147.88
+ 2021.08.28 13:48:04 EVENT Res: 0
|15Z|07ylone
--- Mystic BBS v1.12 A47 2021/08/19 (Linux/64)
* Origin: bbs.planetcaravan.org:23 ssh:1337 (21:3/150)