Menu

WOL from another network

Help
2007-05-04
2013-03-22
  • Bart Coninckx

    Bart Coninckx - 2007-05-04

    Hi,

    I would like to use this cool tool to wake up PC's in my lan, starting from a server in my DMZ. I've tested the tool in the trusted LAN and that works fine, but when I launch it from a DMZ server (in another network), the PC remains dead. To test I first openend UDP port 9 on the firewall, and later I opened everything, but no-go.

    Is this tool supposed to work from one network to another?

    Thx!

    B.

     
    • - 2007-05-04

      Hi,

      you must send the magic packet to your router/firewall address on port 9 and the router/firewall must forward that packet to the lans broadcast address.

      Cheers,
      gon

       
      • Bart Coninckx

        Bart Coninckx - 2007-05-04

        I see. I don't see that happening I'm afraid, I don't know of a standard function on a firewall or a router to accomplish that. Shame ... Thanks for you answers!

         
        • - 2007-05-04

          with iptables:

          iptables -t nat -A prerouting_rule -i $WAN -p udp --dport 9 -j DNAT --to-destination 192.168.0.255:9

          but a better approach is to logon to the router and wakeup the lan machine from there. some hardware routers have a wakeup function implemented.

          gon

           
    • Bart Coninckx

      Bart Coninckx - 2007-05-04

      Well, I have sniffed the incomming traffic for that PC and I do see a UDP packet on port 9. So it seems that the router forwards it. This seems to me to be expected behaviour: what else would the "-i" option serve for? Or am I missing something?

      Bart

       
    • - 2007-05-04

      wich machine, the one to wake up? you have to send the packet to the router

      example:
      java -jar wakeonlan.jar -i serveraddress XX:XX:XX:XX:XX:XX

      and the server must forward the package from the wan to 192.168.0.255 (broadcast address) on the lan (if 192.168.0.X is your lans ip range).

      gon

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.