Add Mystic BBS f2b with systemd overrwrite
This commit is contained in:
3
fail2ban/systemd/howto.txt
Normal file
3
fail2ban/systemd/howto.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
https://docs.linuxfabrik.ch/monitoring-plugins/fail2ban.html
|
||||
|
||||
put into /etc/systemd/system/fail2ban.service.d/override.conf
|
||||
4
fail2ban/systemd/override.conf
Normal file
4
fail2ban/systemd/override.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
[Service]
|
||||
ExecStartPost=/usr/bin/sh -c "while ! [ -S /var/run/fail2ban/fail2ban.sock ]; do sleep 1; done"
|
||||
ExecStartPost=/usr/bin/chgrp fail2ban /var/run/fail2ban/fail2ban.sock
|
||||
ExecStartPost=/usr/bin/chmod g+w /var/run/fail2ban/fail2ban.sock
|
||||
Reference in New Issue
Block a user