nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.22k stars 3.95k forks source link

Soften the brute force protection on shared links with password or without #42614

Open GVLLIFESTYLE opened 1 year ago

GVLLIFESTYLE commented 1 year ago

The protection block at to many requests pretty fast. Especially on public links it would be nice to be able to soften that or to exclude special public links from the protection. Especially if they have a password.

So yes after a few password attempts it can block the ip. But it my case even if the password is typed in correct it block after too many requests / downloads.

DanScharon commented 1 year ago

yes, currently the bruteforce protection is too quick in regards to public shares. I know this is meant to block trying to guess possible public URLs, but you just need 20 user who click on an expired share and their whole subnet is getting blocked

joshtrichards commented 2 months ago

But it my case even if the password is typed in correct it block after too many requests / downloads.

That part would sound like a bug. What makes you think this is brute force protection? Are you seeing log entries indicating brute force protecting is kicking in? (it logs at the INFO level aka 1).

their whole subnet is getting blocked

Just to clarify, brute force protection doesn't block based on subnet, but only individual IP addresses.

Multiple users won't impact each other, unless they're all coming from the same source IP address (which can happen admittedly in a remote larger office setting if using NAT).

Especially on public links it would be nice to be able to soften that or to exclude special public links from the protection. Especially if they have a password.

Since we control the random token generation, I suppose there could be case made here.

DanScharon commented 2 months ago

their whole subnet is getting blocked

Just to clarify, brute force protection doesn't block based on subnet, but only individual IP addresses.

Multiple users won't impact each other, unless they're all coming from the same source IP address (which can happen admittedly in a remote larger office setting if using NAT).

That's true for IPv4 but not for IPv6. In that case the whole /64 prefix is put on block. The reasoning I remember behind this decision was, that a device can easily pick another address within the same /64 prefix. Has this changed in the meantime?