No description
| README.md | ||
On some instances, there might be the wrong ip-address shown in
https://yourdomain.com/settings/admin/loggingwhen a login failed. This is either caused by a missing trusted_proxy in Nextcloud or caused by ipv6 not being disabled correctly or caused by the docker network not being configured correctly for ipv6. Follow these steps to resolve it:
- First, check the admin overview in
https://yourdomain.com/settings/admin/overviewif there is an ip-address shown as brute-force throttled, that should be added to the trusted_proxies list. If so, you can add it withsudo docker exec --user www-data -it nextcloud-aio-nextcloud php occ config:system:set trusted_proxies 2 --value="ip.address.that.is.shown"- of course you need to adjustip.address.that.is.shownto the one that is shown in the admin overview. After a reboot of the Nextcloud container, there should not be any further throttling and the correct ip-address should be logged in the Nextcloud logs when login fails. If that should not be the case, see below:If the above is not successul, you can now try to correctly configure the docker network for ipv6:
- Stop your containers from the AIO interface
- Enable ipv6 in your docker daemon if not already done by following https://github.com/nextcloud/all-in-one/blob/main/docker-ipv6-support.md
- After the docker daemon started correctly run
sudo docker network disconnect nextcloud-aio nextcloud-aio-mastercontainerto disconnect the mastercontainer from the nextcloud-aio network.- now remove the nextcoud-aio network by running
sudo docker network rm nextcloud-aio- Then run
sudo docker network create nextcloud-aioin order to recreate the nextcloud-aio network- Finally run
sudo docker network connect nextcloud-aio nextcloud-aio-mastercontainerto connect the mastercontainer to the network again.- At last, open the AIO interface and start your containers again
- Now when failing a login, the correct remote ip-address should be logged.
- If still not the correct ip-address should be logged, feel free to create a new discussion here: https://github.com/nextcloud/all-in-one/discussions/new?category=questions