Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FAQ entry for deleting IPs from rate limiter #2932

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,25 @@ Proceed as following for deleting an user:

.. _`github project`: https://github.com/Mailu/Mailu/


How to unblock an IP from rate limiter manually?
````````````````````````````````````````````````

To manually unblock an IP from the rate limiter do the following on your CLI:

.. code-block:: bash

# list the limited networks (this is not the IP, but only the network part according to AUTH_RATELIMIT_IP_V4_MASK
$ docker compose exec redis redis-cli -n 2 --scan --pattern 'LIMITER/auth-ip/*'

# remove from rate limiter
$ IP=8.8.8.8; docker compose exec redis redis-cli -n 2 --scan --pattern "LIMITER/auth-ip/${IP}/*" \
| xargs -r docker compose exec -T redis redis-cli -n 2 DEL

*Issue reference:* `2856`_.

.. _`2856`: https://github.com/Mailu/Mailu/issues/2856

Changes in .env don't propagate
```````````````````````````````

Expand Down