mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Issue]: Jellyfin binds to all interfaces when using any loopback address other than 127.0.0.1 or [::1] #4978
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lucasmz-dev on GitHub (Jul 19, 2023).
Please describe your bug
The title is very self-explanatory, it's pretty much it. If you use any other loopback address in 127.0.0.0/8, like 127.0.0.2 even, Jellyfin seems to believe it's not a valid IP or something, instead, it defaults to binding to every interface.
This caused a security problem for me, I use port 80 and 443, and because it was binding to every interface and IP it saw, it also binded to a bunch of public IPv6 addresses, this usually wouldn't be that big of an issue, however my router is kind of crap and does not have a stateful firewall, and since I trusted Jellyfin with firewall rules, it opened those ports directly to the open web; anyone pasting my IP on their browser would directly get into Jellyfin's page.
I use a reverse proxy because it has a lot of benefits, and I need to host other stuff in the same IP on the web, so I set Jellyfin to use 127.0.1.1, but didn't realize until weeks, maybe a month later what was going on.
Jellyfin Version
10.8.z
if other:
No response
Environment
Jellyfin logs
@cvium commented on GitHub (Jul 20, 2023):
Duplicate of #6272