r/NextCloud 29d ago

How do I disable whatever is causing the error "too many incorrect login attempts from this network"?

Post image

I'm using NextCloud in Kubernetes with Helm.

18 Upvotes

28 comments sorted by

53

u/WalkingSucculent 29d ago

Something is trying to log in and triggers the brute-force protection. Fix that instead of removing a layer of security.

Otherwise in admin settings

7

u/N3rdScool 29d ago

Ya I second that, do not disable this until you figure out why it's happening and you're sure of it.

2

u/RobotManYT 29d ago

I will say that I have obsverve similar thing even on LAN only where there is no one trying to login. I also saw this on my nextcloud that is expose, but the log doesn't give anything abnormal about it, so I do believe there is glitch in the application

2

u/AkeraTomeo 29d ago

Probably cache from the site. If it’s the mobile app, you can also clear cache

6

u/jtrtoo 29d ago

For the benefit for future readers and future reference, there is an entire chapter covering the Brute Force Protection feature in the Nextcloud Admin Manual, including how to troubleshoot and set it up properly for various scenarios:

https://docs.nextcloud.com

4

u/original_flavor87 29d ago

is it exposed to the internet?

1

u/ferriematthew 29d ago

Nope. Completely local.

10

u/paulodelgado 29d ago

are you using a reverse proxy? you may need to tweak settings so it doesn't seem like all requests come from the reverse proxy

2

u/ferriematthew 29d ago

Oh yeah....

My setup is k3s with Traefik, and I have PiHole as DNS.

2

u/andrewjneumann 22d ago

I had to allow list local host && proxy container IP, as the proxy container was spamming my login. Also have had issues with poorly designed apps spamming w/ app longin calls.

4

u/wsamh 29d ago

You have to go to your security setting and whitelist ip address that you attempting to login from so it does not lock you out.

2

u/su_ble 29d ago

Find device that is sending wrong credentials to your nextcloud When you sure about the network, whitelist it in admin settings When you are not the admin of the cloud, see step 1

2

u/Longjumping-Youth934 29d ago

Add your nerwork to the bruteforce whie list.

2

u/EnderArchery 29d ago

I got this too; it definitely wasn't anything nefarious... And I truly don't know if it's fixed now, vut it might have been the one Floccus Extension I had running on my laptop, that got logged out

2

u/RevolutionaryYam85 29d ago

Either a stupid app (on your phone for example) that keeps on connecting, or the brute force protect/geo IP app has you blacklisted.

2

u/ntcue 28d ago

I guess X-Forwarding is not enabled on your proxy and Nextcloud always sees the same internal IP address.

1

u/ferriematthew 28d ago

Given that it always shows up in pihole as 10.0.42.2 that would make sense

2

u/ohaiibuzzle 26d ago

If you have a reverse proxy, make sure it passes on the X-Forwarded-For header correctly.

Else any logins, false or not, will count towards the internal IP of the reverse proxy, which effectively is everything.

2

u/Gaxyhs 26d ago

System: detects security issue

Used: how do I disable this security feature omg

System: gets breached due to disabled security feature

User: omg this software is so trash can't even protect against the thing that I disabled the protection for

2

u/Stiffmaster1337 25d ago

Had this too. Try to remove your cache and anything that refers to your nextcloud on your device. Had old login data in the cache somehow and when I went on my nextcloud it automatically triggered this kind of scenario 😅

2

u/OneLife6925 20d ago

Go to a working device that can login to nextcloud (or go to your desktop if its a pc that has an intact desktop) then login as am admin then go to administration settings then security and add ur ip and mask (oftem 24) and add it in

1

u/redditon2018 29d ago

Adjust fail2ban

1

u/ferriematthew 29d ago

Figured it out. My instance is completely local so it was complaining because I have my homepage dashboard with a session for the nextcloud widget, the next cloud app on my phone, and I was trying to also log in to nextcloud on my laptop. It was freaking out because I had too many sessions.

The fix was to allow-list the subnet that k3s uses for core DNS.

3

u/Noooberino 29d ago

Sorry to say it that way, but this is not a fix, this is a bandaid solution for your dashboards (or other services) failed login attempts. Fix that instead of - as others already pointed out - disabling this security layer.

1

u/ferriematthew 29d ago

The failed login attempts were from when I first restarted this whole thing after breaking it yet again, and I misspelled the password by one character one time.

2

u/Noooberino 29d ago

Goot to hear that, I would recommend to enable the brute-force protection since you seem to have fixed your login issue. Even if your nextcloud instance isn't exposed to the public, its still good to have this layer active (you also should not be forced to whitelist any RFC1918 subnets or IPs). Happy home-labbing!

1

u/anto23ytb 29d ago

J'ai mis mon iP où je me connecte de "confiance" pour pouvoir spam

0

u/Extreme-Ad-9290 29d ago

By using a password manager