I am using a setuo with Wordpress on nginx. Because the system also hosts Nextcloud, I have a setup with a gateway-host (listening on port 443) and a virtual host for Wordpress.
The gateway addresses the Wordpress host as 127.0.0.1:81
If there is an invalid login, instead of logging the IP listed as X-Forwarded-For I see the localhost in the message-log.
I have set the WP_FAIL2BAN_PROXIES to either 127.0.0.1 or to the actual local IP 192.168…
Neither of the settings made WP-fail2ban log under the “forwarded-for” IP address.
Any Idea what I might have gotten wrong?