udp-redux / udp-broadcast-relay-redux

Small daemon to relay udp broadcast / multicast packages on a different subnet.
GNU General Public License v2.0
138 stars 34 forks source link

Support destination IP override? #15

Closed accwebs closed 3 years ago

accwebs commented 3 years ago

In the case of trying to forward broadcast packets over tun-based VPNs, the tun interfaces unfortunately don't support broadcast packets. A workaround is to rewrite the outbound packet's destination address to be the remote router's IP address. And then that router would rewrite the packet's destination address to the broadcast address.

I have this working on a fork. About to raise a PR in case you see this as useful.

accwebs commented 3 years ago

PR #16

accwebs commented 3 years ago

Oh, forgot to mention I was planning to raise a PR to openwrt/packages to get this added as a package to that OS distro. Admittedly I don't really know what I'm doing there but I found an old never-merged PR where someone added a package Makefile for an old version of this software (prior to multiple repo forks). So I've resurrected that. We'll see what the Openwrt maintainers say.

accwebs commented 3 years ago

PR merged. Thanks :-)

accwebs commented 3 years ago

Here's the PR to OpenWRT. We'll see if it goes anywhere.

https://github.com/openwrt/packages/pull/15343

accwebs commented 3 years ago

Package formula exists in OpenWRT now :-)