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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
-
2007-05-04
wich machine, the one to wake up? you have to send the packet to the router
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.
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
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!
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
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
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