Elektrine lite

← Feed

@ampersandrew@lemmy.world

2026-10-11 17:02 UTC

Help with Getting My Reverse Proxy to Forward the Correct IP Address 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.

Replies (3)

  • @Ooops@feddit.org 2026-10-11 20:20

    the 192.168.65.1 address that manifested out of nowhere Or it’s indeed the internal virtual lan your docker config uses… Is that an actual problem or are you really just trying to fix the logs? That should be doable via headers so the real origin is preserved independent of proxying.

    Open ##5147969

  • @lemmyvore@feddit.nl 2026-10-11 17:29

    Just to understand better: When you say “when accessed from outside my home network”, what kind of access is that? Port forward? VPN? Is 192.168.1.1 your router? What’s your LAN netmask? NPM listens on 192.168.10.201 ports and Jellyfin/Komga on 192.168.10.202 ports? A connection from the outside comes through the router, gets forwarded to 192.168.10.201:443, the proxy sends it to 192.168.10.202:8096, and it shows up in the Jellyfin logs as coming from 192.168.65.1? If all of the above is correct I would look at the network interfaces that are up on the mini-PC and the NAS, as well as inside the containers of the proxy and of Jellyfin, and see if there isn’t a 192.168.65.1 up on there somewhere for whatever reason. You can also try making a manual request (wget, curl, nc) from the proxy container to Jellyfin and see what it shows up as. May also want to see what’s the DNS situation in your LAN and on those machines. You mentioned “names” being used, how are those defined and resolved? Last but not least are the containers you mentioned using docker bridge networks or ipvlan?

    Open ##5149358

  • @Decronym@lemmy.decronym.xyz 2026-10-12 07:30

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread: Fewer Letters More Letters DNS Domain Name Service/System NAS Network-Attached Storage NAT Network Address Translation VPN Virtual Private Network nginx Popular HTTP server [Thread #126 for this comm, first seen 12th Oct 2026, 07:30] [FAQ] [Full list] [@Two9A@hachyderm.io] [Source code]

    Open ##5149514