Re: NAT to a broadcast addess using iptables?



news@xxxxxxxxxxxxxxxxxx a écrit :

But, the magic packet can be sent to either the mac address of the
target or the broadcast ethernet address. As I planned for the latter,
I didn't think that ARP resolution is a problem.

Correct. This is the advantage of the IP directed broadcast address which is translated into the ethernet broadcast address without ARP resolution.

Hovever, if I
understand you correctly, there's no way to configure the router to
allow the directed subnet broadcast,

Indeed, I'm afraid no.

so you're saying that I'd have to
direct a packet to a specific IP address and use a static arp entry to
force the packet to go to a specific mac address?

Yes. You could also set the static ARP entry so that the chosen unicast IP address resolves into the broadcast ethernet address.
.