jellyfin / jellyfin-plugin-dlna

GNU General Public License v3.0
15 stars 12 forks source link

Increase IP TTL from 1 to 2 #73

Open Haennetz opened 1 week ago

Haennetz commented 1 week ago

Hey at the moment the DLNA packages on port 1900 (SDDP) have a TTL of 1. If you want to us the DLNA server in a multi VLAN environment the packages got dropped because after hitting the first routing instance the TTL will be decreased by 1 which results in a TTL of 0 and the package get dropped.

It would also be possible to make the TTL configurable. Thanks a lot for the effort.

Nullcaller commented 6 days ago

DLNA is kind of notorious for TTL values being low. IMO the best option is to use firewall(s) to change TTL value on DLNA packets. You can do it on routers in the prerouting chain, or probably on DLNA server hosts in the postrouting chain. Personally, I just have firewall rules set up across my entire home network that increment the TTL of any UDP packet passing through any router with a destination port of 1900, up by 7. This way, I don't ever have to worry about DLNA TTL. I also have similar rules for IGMP (identified by protocol field) and mDNS (identified by proto=UDP and port=5353).