Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Feb 8 '11 at 10:54

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

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


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.