1

How to translate UDP unicast packet to a broadcast address via DNAT with iptables or something else?

migrated from stackoverflow.com Feb 8 '11 at 10:54

This question came from our site for professional and enthusiast programmers.

1

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.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.