Hi, folks! I’ve learned a lot these past 8-9 months in self-hosting, but I’m not sure what’s going on with my reverse proxy setup. At this point, I’m only running Nginx Proxy Manager, Jellyfin, and Komga, separated from my home network via VLANs and firewall rules. My home network is 192.168.1.X and hosted services are on 192.168.10.X. Yet when I look at access logs for Jellyfin or Komga, both are reporting access from 192.168.65.1 when accessed from outside my home network. I don’t have a 65 subnet, so this is strange. The reverse proxy is run on a mini PC at .10.201, and Jellyfin and Komga are hosted on a NAS at .10.202; all of them run via Docker containers.

The instructions for Jellyfin for reverse proxy just say to list the address for the reverse proxy, which I did using IPv4 and the domain, and various configurations of only one or the other, as well as the 192.168.65.1 address that manifested out of nowhere. I haven’t observed any kind of change in IP address reporting after making changes here. I haven’t begun to try to configure Komga for the reverse proxy, because I figure until I get it working for Jellyfin and understand how to do it, it probably doesn’t matter; I only listed it here as evidence that two different services were reporting the same phantom IP address. I did ask for help on this issue on a Discord server a little while ago, and some of those folks suggested looking at the Docker networks. I left network settings on basically default for all three of these applications, and they all seem to generate something like a 172.17.0.X address, not the 192.168.65.1 that I’m seeing in logs.

I know there are supposed to be extra headers on network packets that these services can be aware of if they know it’s going through a reverse proxy first, and I figure this is important for proper monitoring of folks accessing my hosted services, so i want to get this figured out before I start running a few more apps. Any help anyone can offer would be appreciated. A lot of times, the documentation for this stuff is written up with an assumption of more understanding than the person reading it might have. Or maybe I just glanced right by something obvious and stupid.

  • lemmyvore@feddit.nl
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 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
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      That’s what the documentation says. I don’t know if/when that changed as I barely use docker.

      • lemmyvore@feddit.nl
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        Well I’ll be damned, there’s a 192.168. tucked away at the end of the 172. ranges:

        https://docs.docker.com/engine/network/#automatic-subnet-allocation

        {
          "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 }
          ]
        }