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:
1
setup.sh
1
setup.sh
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user