updated f2b jails and auto reloading f2b on instal

This commit is contained in:
2020-07-31 14:33:36 +02:00
parent 640cc1cd1a
commit 978ff48e07
4 changed files with 16 additions and 3 deletions

View File

@@ -228,6 +228,11 @@ if curl --retry 2 --retry-delay 1 --output /dev/null --silent --head --fail "$re
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/CMS/"$CMS"/"$webserv"-conf.sh)
fi
##------------##
# Services #
##------------##
systemctl reload fail2ban
##-------##
# Done #

View File

@@ -3,7 +3,7 @@ enabled = true
port = http,https
protocol = tcp
filter = nextcloud
maxretry = 20
maxretry = 15
bantime = 900
findtime = 900
logpath = /var/log/nextcloud/SITEname

View File

@@ -1,2 +1,10 @@
[sshd]
enable = false
[ssh-server]
enabled = true
filter = sshd
port = ssh
logpath = %(sshd_log)s
backend = %(sshd_backend)s
protocol = tcp

View File

@@ -571,7 +571,7 @@ fi
# Services #
##------------##
systemctl reload sshd postfix postfix@-
systemctl reload sshd fail2ban postfix postfix@-
##-------##
@@ -579,4 +579,4 @@ systemctl reload sshd postfix postfix@-
##-------##
msg " Done installing!"
for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; break; done
for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; break; done