[[Solved]] FluentAuth Redirect for Backend Problem
I am replacing all login forms with FluentForm. But since the latest update, I can no longer login to the Wordpress backend. When I sign in, FluentAuth redirects to wp-login.php and I get a Forbidden message. I would like to redirect users based on their role to /wp-admin/, their FluentCart account or the FluentCommunity. But even if the login is successful, every user gets the same redirection to wp-login.php and a Forbidden message.
PS: it would be great, if we also could redirect users based on a FluentCRM tag.
After some research I identified Fail2Ban as the culprit. I run all website behind Cloudflare and despite I told NGINX to ditch the Cloudflare IPs and use the real IPs only, Fail2Ban seemed to ignore that even when I told it to respect that. It always identified the X-Forwarded-For header as invalid. As a result I replaced it with CrowdSec. Everything works smoothly again since. I added it to my field notes: https://littlebig.co/field-notes/securing-wordpress-behind-cloudflare-with-crowdsec/