Iptables – Broadcast UDP over VPN

iptablesopenvpnudp

I have OpenVPN configured and have 5 dd-wrt router clients. I would like the machines on those routers to be-able to UDP Broadcast across all 5 networks.

I cannot bridge the interfaces(to my knowledge) because each router needs to be able to operate on its own should the VPN connection die (dhcp needs to work).

currently each router has its own /24 (eg 192.168.1.x) network. Is there a way to use IPTables to mangle the udp and forward them to all VPN Clients?

To summarize i need
1)to UDP broadcast to all routers and their clients
2)for all routers to be able to operate independently should the VPN go down

Best Answer

As @James say, you will probably want to investigate using multicast. A normal IP broadcast does not cross a router and a VPN termination point is (usually) routed rather than bridged, for network efficiency reasons.