Re: NAT to a broadcast addess using iptables?



news@xxxxxxxxxxxxxxxxxx a écrit :

I'm afraid it is not possible to do this with iptables. Is your goal to
do some kind of remote wake-on-LAN ?

Indeed it is - exactly that.

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>
.



Relevant Pages

  • Re: [kde] kde] Kmail
    ... The captures then just show the arp transmission. ... the router still exists on the network. ... Regarding Kmail, there should be nothing showing in the Ethereal capture, ... KDE 3.4.2 B ...
    (KDE)
  • Re: ARP requests on my net?
    ... My router is the one which needs to know ... AFAIK, TCP/IP uses IP, not ARP. ... ARP should be in Level 2, the P2P LAN layer. ... layer 4, two levels above MACs. ...
    (Fedora)
  • Re: vlan and arp cache
    ... Router A is the default ... time a packet is received from client, the CAM table is updated. ... if the client's MAC address is not in the ARP ... The reason setting the ARP cache timeout and the CAM timeout to the same ...
    (comp.dcom.sys.cisco)
  • Re: netcut
    ... users use it on windows systems to prevent the other users on the same ... No, I do not know netcut, however: ... it seems to work by ARP poisoning. ... affecting your pc only but also the router it self by many ways like ...
    (comp.os.linux.security)
  • Re: Remote telnet through firewall failing - SOLVED
    ... An ARP broadcast would make sense when the router is ... The SCO server should respond to the request, ... > Thank you Mike, for your winning suggestion. ...
    (comp.unix.sco.misc)