IP address detection / Traefik config #29
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have been using the Wordfence plugin for security and to blacklist known malicious IPs. Unfortunately, since moving to Abra, the plugin does not detect anymore the IP of visitors and rather detects the internal network IP from docker I assume. Since then I've been getting a lot of spam and the blacklist does not work obviously.
Here is a screenshot of the various options for IP detection, all of which do not work. Basically, it comes down to (I imagine) configuration of the proxy/Traefik I guess to ensure that X-Forwarded-For is correctly set. Has anyone else run into this problem? Any ideas which configuration needs to be adjusted? I googled around but realized I don't yet know enough about Traefik / abra to do this on my own yet and I wonder if anyone else has also faced this.
https://wordpress.org/support/article/administration-over-ssl/#using-a-reverse-proxy
😱
https://github.com/docker-library/wordpress/issues/383
😱
docker run -it --entrypoint="" wordpress:latest cat /etc/apache2/apache2.conf
😱
Random braindump for this fix is:
apache2.conf
to pass ipscompose.forwardip.yml
with an additionalapache2.conf.tmpl
When I ran into this (for Mailu? don't remember), it turned out that with Traefik + swarm, you had to use
host
network mode to get the real source IPs for any app.It looks like it might alternatively be possible with some
iptables
rules:"host" mode networking seems to have fixed this 😌 staying tuned for news
Think it's sorted, yep! Well Done 👏