Skip to content

Instantly share code, notes, and snippets.

@nerdegem
Last active October 10, 2023 20:50
Show Gist options
  • Select an option

  • Save nerdegem/0ebbf27e32cc22854eb675f25c550f73 to your computer and use it in GitHub Desktop.

Select an option

Save nerdegem/0ebbf27e32cc22854eb675f25c550f73 to your computer and use it in GitHub Desktop.
HDHomeRun TTL Mangling with IPTables on OpenWRT
If you have a HDHomeRun tuner behind an OpenWRT device such as a cheap Gl-inet router (and within the 3 hop limit), you can very easily break the TTL packet setting that is now set on these devices with a simple shell command.
Based upon this work https://stuff.purdon.ca/?page_id=472
I figured out I could just add
iptables -t mangle -A FORWARD -s <hdhrip> -j TTL --ttl-set 64
iptables -t nat -A POSTROUTING -j MASQUERADE
to the existing rules and it would do what was required. Just add this command, replacing the <hdhrip> with the IP address of the HDHomerun box(s), into your startup scripts, and off you go - HDHomerun DVB TV via the internet once again.
@nerdegem

Copy link
Copy Markdown
Author

Also this seems to be useful

iptables -t mangle -A FORWARD -j TTL --ttl-inc 5

https://unix.stackexchange.com/questions/605497/overriding-ip-packet-ttls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment