如何解除NextCloud禁用的IP地址?

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

没有评论

发表回复

Cloud storage
如何部署基于Nginx部署NextCloud?

1 前言 一个问题,一篇文章,一出故事。 以往使用LAMP环境部署的NextCloud已经工作良久, …

Cloud storage
如何修复NextCloud通讯录图片损坏问题?

1 前言 一个问题,一篇文章,一出故事。 笔者最近需要测试升级NextCloud,发现通讯录显示损坏 …

Cloud storage
如何迁移NextCloud数据目录?

1 前言 一个问题,一篇文章,一出故事。 笔者需要迁移NextCloud的默认数据目录“/var/w …