Well… it’s the default iirc (192.168.65.0/24). So that’s what docker uses if there is no explicit configuration.
Comment on Help with Getting My Reverse Proxy to Forward the Correct IP Address
ampersandrew@lemmy.world 1 day ago Yeah, that appears to be the case from a link someone else linked here, but I was unable to trace that from anywhere I could find in my containers before.
Ooops@feddit.org 1 day ago lemmyvore@feddit.nl 20 hours ago
Is it?! I always thought that Docker uses 172.16.0.0/16 by default for its networks. Did that get changed at some point?
Ooops@feddit.org 19 hours ago That’s what the documentation says. I don’t know if/when that changed as I barely use docker.
lemmyvore@feddit.nl 17 hours ago
Well I’ll be damned, there’s a 192.168. tucked away at the end of the 172. ranges:
docs.docker.com/engine/network/#automatic-subnet-…
{ "default-address-pools": [ { "base": "172.17.0.0/16", "size": 16 }, { "base": "172.18.0.0/16", "size": 16 }, { "base": "172.19.0.0/16", "size": 16 }, { "base": "172.20.0.0/14", "size": 16 }, { "base": "172.24.0.0/14", "size": 16 }, { "base": "172.28.0.0/14", "size": 16 }, { "base": "192.168.0.0/16", "size": 20 } ] }
ampersandrew@lemmy.world 1 day ago It appears to be, but I didn’t know that until today. And beyond that, I’ve been trying every permutation of both that IP and the IP of the server on my network in my Jellyfin proxy settings, and it still hasn’t helped to surface the origin IP address.
lemmyvore@feddit.nl 17 hours ago
I think I’ve figured it out. Apparently now Docker also adds an 192.168. range on top of 172. ranges for its bridge networks:
docs.docker.com/engine/network/#automatic-subnet-…
Copy that example to your
/etc/docker/daemon.jsonon the reverse proxy machine, without the 192.168 line, and restart docker, and the 192.168.65. addresses will go away.(Don’t forget to remove the trailing comma on the last address line.)