It's approximatively 4 Days I lost so far, trying to get Rootless Podman (similar to Docker) working and showing the Real Remote IP Addresses in Logs.
I read many Posts here as well as other Sources, but they don't appear to be working at all in my Case.
Something is seriously broken in Traefik. I tried also with the latest v3.0.1, nothing. It just will NOT work.
It seems to only work in bridged network mode (i.e. WITHOUT specifying network_mode: {anything}
in compose.yml
File). Then I get a Remote IP of 10.x.y.z in the Access Log and I can access the Dashboard Correctly.
This is where things stop working:
- Setting
network_mode: host
does NOT work (Traefik Dashboard yields 404 / Not Found) - Setting
network_mode: network_mode: "slirp4netns:port_handler=slirp4netns"
does NOT work (Traefik Dashboard yields 404 / Not Found) - Setting
network_mode: pasta
does NOT work (Traefik Dashboard yields 404 / Not Found)
(but in all of these cases the correct Remote IP Address is Logged )
So it's a Choice between a:
- Usable Proxy Server with 100% wrong Remote IP Logging
- 100% Useless Proxy Server with Correct Remote IP Logging
Yeah ... it's not Fun .
I tried:
- Podman 4.9.4 on Debian Bookworm 12 AMD64 with Podman Packages from Debian Test AMD64 (APT Pinning Method)
- Podman 5.0.3 on Fedora 40 AMD64
In a desperate Effort, I also attempted to run Caddy as an alternative and ... it works. Well kinda, because I still haven't managed to convert all of the Directives, etc. But using the file_server
module I could serve a HTML file without Issues, with SSL Certificates and correct IP Logged.
This should in theory match the Traefik Dashboard Configuration, although I think there is NO Forwarding going on in Caddy with this Basic file_server
Module (there were no headers
like X-Forwarded-*
logged in the Access Log, but it's not clear to me whether that is a logging Issue or a non-forwarding Issue).
In the case of traefik, there is an error related to lack of IP Address Detection (service \"dashboard\" error: unable to find the IP address for the container \"/traefik\": the server is ignored
).
In case of caddy, podman inspect caddy
also yields an empty IP Address, but caddy doesn't seem bothered by it .
Any idea what is going on here ? I can post the compose file if there is willingness to help, but I'd like some more productive replies rather than "Podman is not Supported" (as many times occurs over here unfortunately).