You can also use the occ client:
$ php occ security:bruteforce:reset <ip-adresse>
If you have an reverse proxy runnig you may want to add some special things to your nextcloud config.php:
'trusted_proxies' => array('192.168.1.1'),
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
While 192.168.1.1 is the local IP address of your reverse proxy.