updated f2b jails and auto reloading f2b on instal
This commit is contained in:
@@ -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)
|
source <(curl --retry 7 --retry-delay 5 -s "$repo"/raw/branch/"$branch"/CMS/"$CMS"/"$webserv"-conf.sh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
##------------##
|
||||||
|
# Services #
|
||||||
|
##------------##
|
||||||
|
|
||||||
|
systemctl reload fail2ban
|
||||||
|
|
||||||
##-------##
|
##-------##
|
||||||
# Done #
|
# Done #
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ enabled = true
|
|||||||
port = http,https
|
port = http,https
|
||||||
protocol = tcp
|
protocol = tcp
|
||||||
filter = nextcloud
|
filter = nextcloud
|
||||||
maxretry = 20
|
maxretry = 15
|
||||||
bantime = 900
|
bantime = 900
|
||||||
findtime = 900
|
findtime = 900
|
||||||
logpath = /var/log/nextcloud/SITEname
|
logpath = /var/log/nextcloud/SITEname
|
||||||
|
|||||||
@@ -1,2 +1,10 @@
|
|||||||
[sshd]
|
[sshd]
|
||||||
|
enable = false
|
||||||
|
|
||||||
|
[ssh-server]
|
||||||
enabled = true
|
enabled = true
|
||||||
|
filter = sshd
|
||||||
|
port = ssh
|
||||||
|
logpath = %(sshd_log)s
|
||||||
|
backend = %(sshd_backend)s
|
||||||
|
protocol = tcp
|
||||||
@@ -571,7 +571,7 @@ fi
|
|||||||
# Services #
|
# Services #
|
||||||
##------------##
|
##------------##
|
||||||
|
|
||||||
systemctl reload sshd postfix postfix@-
|
systemctl reload sshd fail2ban postfix postfix@-
|
||||||
|
|
||||||
|
|
||||||
##-------##
|
##-------##
|
||||||
@@ -579,4 +579,4 @@ systemctl reload sshd postfix postfix@-
|
|||||||
##-------##
|
##-------##
|
||||||
|
|
||||||
msg " Done installing!"
|
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
|
||||||
Reference in New Issue
Block a user