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

Issue #15: Add support for rewriting target address #16

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.

Admittedly I'm kinda a noob at C programming but I hope I did this right?

accwebs commented 3 years ago

All good catches and call outs, thank you! I'll tweak, squash, and re-sign as a new commit (unless you prefer I wait and squash the history later).

accwebs commented 3 years ago

Should be updated. Once you're good with the changes, let me know and I'll squash the history down.

ajkavanagh commented 3 years ago

Should be updated. Once you're good with the changes, let me know and I'll squash the history down.

There's no need for you to squash the commits down; I can do this as part of the merge.

Thanks very much for the patch; I'll get it merged now.

accwebs commented 3 years ago

Thanks!