How to translate UDP unicast packet to a broadcast address via DNAT with iptables or something else?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|||
|
|
migrated from stackoverflow.com Feb 8 '11 at 10:54
|
With iptables is not possible (AFAIK) unless you allow the broadcass traffic to pass to the router (IMHO a bad idea). DNAT is performed in PREROUTING, the packets are DNAT'ed to broadcast in this chain, and when these packets arrive to routing decision it's broadcast traffic wich is usually blocked and doesn't go to FORWARD. Other option is to set an static ARP entry wich translates the target unicast IP to broadcast ethernet address. |
||||
|
|