How can i block some IP Address that trying to bruteforce system

How can i block some IP Address that trying to bruteforce system.

Maybe you can look the app Geo Blocker or use failtoban.

Dear devnull

I’m already try geo blocker but not working for me.
Can you have the way that only block specific ip address.


If you are using linux (ubuntu e.g.) for your nextcloud server you may think of firewall rules such as ufw

then you may block ip adresses for the whole system by

sudo ufw deny from {ip-address-here} to any

see here for further information:

or if you “only” want to harden your NC instance then you may prefer to install fail2ban as devnull already mentioned

alternative using security by community
by crowdsec instead of fail2ban
Wechsel von fail2ban zu crowdsec - Carsten Rieger IT-Services

Dear chrissi55

also trying to block ip from os but still not working as picture in below.

Thx you

maybe the order of the DENY and ALLOW rules?!

Your “DENY” is not at the top of your rules files, correct?
Is there a file in /etc/ufw/user.rules ?

also see this post having the same problem as yours

I am not using docker but as described here in “docker worlds” some things are different

1 Like

Dear chrissi55

Great!!! change order of ufw is working for me.

Thank you bro,