Add fail2ban
This commit is contained in:
parent
45b4cf7c69
commit
b4b2594550
13
fail2ban/install.sh
Normal file
13
fail2ban/install.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
MYSTIC_DIR="$1"
|
||||
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" action.d/mysticbbs.conf > /etc/fail2ban/action.d/mysticbbs.conf
|
||||
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" filter.d/mysticbbs.conf > /etc/fail2ban/filter.d/mysticbbs.conf
|
||||
|
||||
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" jail.d/mysticbbs.conf > /etc/fail2ban/jail.d/mysticbbs.conf
|
||||
|
||||
mkdir -p /etc/systemd/system/fail2ban.service.d
|
||||
cp systemd/override.conf /etc/systemd/system/fail2ban.service.d/override.conf
|
||||
|
@ -1 +1,3 @@
|
||||
https://docs.linuxfabrik.ch/monitoring-plugins/fail2ban.html
|
||||
|
||||
put into /etc/systemd/system/fail2ban.service.d/override.conf
|
Loading…
Reference in New Issue
Block a user