I've been using traefik + authelia at my homelab. A pretty basic config. All is fine except for one of the services: my modem's web UI. Logging in is successful if I enter its local IP address in the URL bar, but when I reach it via traefik, by means of a hostname, I get an authentication error. My guess is the web app only lets me in if the my IP address is within private IP ranges. Traefik on the other hand lets him know my real IP and the web app refuses to let me in.
So my question is how do I configure traefik so that it spoofs my real IP just for this one service? Should I use a middleware? Thank you.
You probably just need to set the host header:
middlewares:
useHostIP:
headers:
customRequestHeaders:
Host: 1.2.3.4
2 Likes
Holy cow, you nailed it! It works!!
Thank you, I'm so grateful!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.