Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

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

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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