如何解除NextCloud禁用的IP地址?
- By : Will
- Category : Cloud storage
Cloud storage
1 前言
一个问题,一篇文章,一出故事。
笔者需要解除nextCloud密码暴力破解的名单,于是产生此文。
2 最佳实践
2.1 查询IP是否有暴力破解记录
select * from nextcloud.oc_bruteforce_attempts where ip like "10.168.0.26";
2.2 重置暴力破解记录
sudo -u apache php --define apc.enable_cli=1 /var/www/nextcloud/occ security:bruteforce:reset 10.168.0.26
以上命令与如下命令等效,
delete from nextcloud.oc_bruteforce_attempts where ip like "10.168.0.26";
参阅文档
=====================
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/bruteforce_configuration.html#troubleshooting
https://help.nextcloud.com/t/how-can-i-unblock-an-ip-blocked-through-brute-force-detection/5731/10https://github.com/nextcloud/bruteforcesettings
没有评论