Working: 837 Wake On Lan over internet using NAT (837)

Discussion in 'Cisco' started by Richard Antony Burton, Jan 5, 2004.

  1. Ok, had chance to play with this since I got back from Christmas. The
    problem I had was that I was using an 837 and NAT, so I couldn't send
    anything to the broadcast address of the LAN directly from outside. It came
    out fairly easy in the end.

    Use the perl code supplied by Walter Roberson (thanks!):
    http://groups.google.ca/groups?selm=bs125b$do5$

    Add "ip directed-broadcast" to the internal Ethernet interface.
    Create a rule to broadcast the incoming UDP packet to the LAN (you can use
    any port, doesn't have to be 7):
    e.g.: ip nat inside source static udp 192.168.1.255 7 interface Dialer0 7

    Now run the perl code as follows:
    ../wol.pl <mac_addr> <external_ip> <port>
    e.g.: ./wol.pl 00-04-61-49-ff-e5 81.20.5.18 7

    Remember here you are using the single external IP address you have, not any
    broadcast address you may think up. This will reach your router and be
    broadcast across your LAN. You can test it working by using this monitor
    tool on a Windows box on your LAN:
    http://www.depicus.com/wake-on-lan/wake-on-lan-monitor.asp or write your own
    for another platform, pretty simple. To test you will need to send the
    packet from outside, so get a freind to help or connect to a remote machine
    to send it.

    Richard.
     
    Richard Antony Burton, Jan 5, 2004
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.