After failing the password 3 times NextCloud doesn’t let me join it again on my pc, Is there a way to change the amount of tries you can do and the amount of time the block lasts?
Hope there’s a solution, thank you!
Afaik no. But you can disable the App “Password Policy” entirely, if you are using Nextcloud only on your local network. I would not recommand doing this if your server is publicly available.
I changed the amount of tries to 10 and after failing the password 3 times, after the 4th I can’t no longer acess NextCloud site. I also eliminated the data records of the login attempts and I still can’t acess NextCloud.
To me this looks like the connection is getting blocked at the operating system / network level. Are you using Fail2ban on your server and did you configure it to work with Nextcloud? If so, you would have to unban your IP in Fail2ban. Also, if you would like to increase the number of possible login attempts before your IP gets banned you would have to adjust this value in Fail2ban as well.
On a standard Debian you would configure it via command line and the config file would be in /etc/fail2ban/jail.d/. On the TurnKey ISOs you may also be able to configure it via Webmin | TurnKey GNU/Linux, but I can’t help with that.
In order to unban your IP you can use the command line client, which should work in any case:
Open the Fail2ban client:
fail2ban-client -i
Show a list of all Jails:
status
Show banned IP addresses of a jail:
status <Jail>
Unban banned IP addresses:
set <Jail> unbanip <IP-ADDRESS>
The above commands can also be entered directly without opening the Fail2ban client first:
So yes, you can increase the value for maxretry in /etc/fail2ban/jail.d/nextcloud.local to your liking and then restart fail2ban by entering: systemctl restart fail2ban. What I don’t know is whether TURNKEY maybe will overwrite the config with future updates, otherwise it should be persistent.