Page 1 of 1

WOL over net

Posted: Mon Nov 16, 2009 1:13 pm
by dorijan
Hi to all..
I saw there is a way to send a magic packet to some mac address with shell...
I am wondering is there a way that I could send some packet to some port and trigger WOL?

thx to everyone...

Re: WOL over net

Posted: Mon Nov 16, 2009 1:17 pm
by mrz

Re: WOL over net

Posted: Mon Nov 16, 2009 1:18 pm
by normis
Mrz meant to say "you can't" . you can only send to a MAC in the same network

Re: WOL over net

Posted: Mon Nov 16, 2009 1:40 pm
by Chupaka
dorijan, you mean, 'port knocking' for powering on a machine with known MAC address?..

Re: WOL over net

Posted: Mon Nov 16, 2009 1:55 pm
by dorijan
I know you can send magic packet only broadcast space, not over routed network. So I want to be able to somehow initialize magic packet (maybe firewall rule) over routed network so I dont have to logon to mikrotik and initialize /tool wol mac=xxxxxxx
Maybe port triggering would do it...

Re: WOL over net

Posted: Mon Nov 16, 2009 2:01 pm
by normis
how can you connect to a port, if the machine is powered down :) ?

Re: WOL over net

Posted: Mon Nov 16, 2009 2:11 pm
by dorijan
I meant to connect to some port on mikrotik, and then mikrotik sends magic pocket :)

Re: WOL over net

Posted: Mon Nov 16, 2009 2:39 pm
by Chupaka
well, you may add some rule to firewall to match necessary packet, and then in Scheduler check whether rule's packet count is > 0. then send WOL and reset the counter

Re: WOL over net

Posted: Mon Nov 16, 2009 2:48 pm
by dorijan
Chupaka, that is the answer...Ill do it that way :)
thank you

Re: WOL over net

Posted: Tue Nov 17, 2009 1:03 am
by dssmiktik
It's way easier:

example LAN segment is: 192.168.1.0/24

create static arp entry to resolve IP -> broadcast
/ip arp add address=192.168.1.254 comment="" disabled=no interface=LAN mac-address=FF:FF:FF:FF:FF:FF
create a NAT rule to forward packet on specific to this IP (effectively sending it to broadcast MAC)
/ip firewall nat add chain=dstnat action=dst-nat to-addresses=192.168.1.254 to-ports=7 protocol=udp dst-port=7000
tell your WoL client to send a packet to <your IP> port 7000. packet comes in, get's forwarded to broadcast MAC out LAN interface to port 7.

Works great.

Re: WOL over net

Posted: Tue Feb 04, 2014 6:02 pm
by ecarlevaro
Thanks dssmiktik!

That was exactly what I was looking for!
Your solution is simply and powerful!

I have spend more than 6 hours figuring out how to solve this problem!.
I have hosts that are in network 192.168.1.0/24 connected to a Mikrotik in network 192.168.100.0/24 through a router, and I need to turn on a server that is connected to a Mikrotik at network 192.168.100.0/24 from the 192.168.1.0/24 clients.

Thanks!

Re: WOL over net

Posted: Fri Jul 01, 2016 12:28 pm
by BobcatGuy
all we need now is to be able to WOL to wake up the Mikrotik devices that I accidently did system shutdown. :(

I know, power cycle it..... but its 44km drive to get to it.
perhaps wait for a power failure  (off/on) on the next thunderstorm tomorrow afternoon, that might fix my problem.  Unless anyone else has an easier solution?

Re: WOL over net

Posted: Fri Jul 01, 2016 1:01 pm
by pe1chl
I don't think MikroTik devices support wakeup by WOL.
This discussion is about using MikroTik devices to send WOL packets to other devices (e.g. PC) to wake them.

Re: WOL over net

Posted: Fri Jul 01, 2016 3:40 pm
by normis
all we need now is to be able to WOL to wake up the Mikrotik devices that I accidently did system shutdown. :(

I know, power cycle it..... but its 44km drive to get to it.
perhaps wait for a power failure  (off/on) on the next thunderstorm tomorrow afternoon, that might fix my problem.  Unless anyone else has an easier solution?
Most RouterBOARD devices will turn back on after a minute or so. 

Re: WOL over net

Posted: Fri Jul 01, 2016 5:14 pm
by nickshore
Most RouterBOARD devices will turn back on after a minute or so. 

I've just shutdown a 951ui to test this, and it hasn't restarted after 10 mins

Which models do this ?

Nick

Re: WOL over net

Posted: Fri Jul 01, 2016 11:19 pm
by savage
all we need now is to be able to WOL to wake up the Mikrotik devices that I accidently did system shutdown. :(

I know, power cycle it..... but its 44km drive to get to it.
perhaps wait for a power failure  (off/on) on the next thunderstorm tomorrow afternoon, that might fix my problem.  Unless anyone else has an easier solution?
Most RouterBOARD devices will turn back on after a minute or so. 
Never seen that in my life with MT.  Not on one single device.