some updates for buster

This commit is contained in:
2019-10-21 16:00:06 +02:00
parent 4ce386eeed
commit 67b84ed088
17 changed files with 117 additions and 110 deletions

View File

@@ -2,14 +2,14 @@
# TODO check if root
echo -e '\033[35m
echo '\033[35m
______ _ _____ __
/ ____/___ _(_) /__ \ / /_ ____ _____
/ /_ / __ `/ / /__/ // __ \/ __ `/ __ \
/ __/ / /_/ / / // __// /_/ / /_/ / / / /
/_/ \__,_/_/_//____/_.___/\__,_/_/ /_/
\033[0m'
echo -e "\033[35;1mInstalling fall2ban \033[0m"
echo "\033[35;1mInstalling fall2ban \033[0m"
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
@@ -17,10 +17,10 @@ if [ "$EUID" -ne 0 ]; then
fi
sleep 2
apt-get --yes --force-yes install fail2ban
apt-get --yesinstall fail2ban
cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
# ToDo ask for email and configure jail.local with it
touch /var/log/auth.log
systemctl enable fail2ban
systemctl restart fail2ban
echo -e "\033[92;1mfail2ban installed and configured\033[Om"
echo "\033[92;1mfail2ban installed and configured\033[Om"