Changing TTL of packets

Started by marjohn56, January 01, 2020, 04:35:11 PM

Previous topic - Next topic
I ( and a few others ) have a need to be able to change the TTL of incoming packets on a specific interface. The reason for this is the Sky Q app. It appears that this app sends out an SSDP packet with a TTL of 1 to discover the existence of a Sky Q receiver on the same network, which is fine providing its on the same network, but if you use VLANs then even if you use something like PIMD to relay those packets across to the other VLAN(s) it will not get there due to the TTL.


Now it appears that you can do this with iptables on Linux but I'm yet to find a solution for FreeBSD, anyone have any ideas?
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

You may be able to solve the issue with a proxy and a quick google search brings up that one: https://gist.github.com/02strich/5504767

I was thinking more along the lines of ng_patch... possible?
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

I've got this working on a VM using my QNAP running Ubuntu and  using this Python script https://github.com/alsmith/multicast-relay


So it's a solution for me..
OPNsense 25.7a - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member