Fixed F2B failing to start after install

Added command to create vsftpd log , because fail2ban wil crash without it
Also added vsftpd user list because the vsftpd service wil spam errors without it
This commit is contained in:
Bram Prieshof
2020-07-01 12:50:31 +02:00
parent 770ddea9de
commit 21e3b28263

View File

@@ -61,6 +61,7 @@ echo "y" | ufw enable
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/fail2ban/jail.local -O /etc/fail2ban/jail.local wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/fail2ban/jail.local -O /etc/fail2ban/jail.local
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/fail2ban/jail-vsftp.local -O /etc/fail2ban/jail.d/vsftp.local wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/fail2ban/jail-vsftp.local -O /etc/fail2ban/jail.d/vsftp.local
wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/fail2ban/filter-vsftpd.local -O /etc/fail2ban/filter.d/vsftpd.local wget -q -t7 "$mrepo"/raw/branch/"$mbranch"/config/fail2ban/filter-vsftpd.local -O /etc/fail2ban/filter.d/vsftpd.local
touch /etc/vsftpd.user_list /var/log/vsftpd.log
#Restarting and enableing services #Restarting and enableing services
systemctl enable vsftpd sshd fail2ban systemctl enable vsftpd sshd fail2ban