Re: NAT to a broadcast addess using iptables?




Pascal Hambourg wrote:

The problem with sending unicast packets to a sleeping host is ARP
resolution. If your router supports the 'arp' or 'ip' commands, you
could try to add a static ARP entry for your target IP address on the
router :

$ arp -s <target_ip_addr> <target_mac_addr>

or

$ ip neigh add <target_ip_addr> lladdr <target_mac_addr> dev <lan_iface>

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. Hovever, if I
understand you correctly, there's no way to configure the router to
allow the directed subnet broadcast, 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?

.



Relevant Pages

  • Re: Pure IP & ARP broadcasts
    ... It actually communicates via the MAC address of the Nics (aka Layer2 ... what the ARP request does. ... A host has a packet to send, it has the IP# and nothing else. ... But if the owner of the IP# is not on that segment then the Router replies ...
    (microsoft.public.windows.server.networking)
  • Re: Tie UDP reply to incoming interface
    ... nothing to do with ARP). ... Of course when ISP A router has a packet for some ... and so will ISP B router for eth2, ...
    (comp.os.linux.networking)
  • Re: UPNP/SSDP
    ... otherwise it's just a glorified packet filter with a set of rules. ... neither a NAT nor a router are referred to as packet filters. ... a NAT router for broadband internet does not do this, ... router to route traffic b/w two or more private networks and the internet. ...
    (microsoft.public.windowsxp.general)
  • Re: Nmap questions concering my router
    ... has only one interface, ... as having a chunk of space in the computer much like a hotel room. ... >is) directly connected to my router, which i dont set up a NAT yet. ... Which IP address is the packet addressed to? ...
    (comp.security.firewalls)
  • Re: IIS5 Passive FTP Networking problem (long)
    ... or do away with the router entirely (and the hardware based ... > had the ability to run an FTP server behind it without changing the IP ... The NAT changes the PASV response ... translate the address fields of a packet. ...
    (microsoft.public.inetserver.iis.security)