Community discussions

MikroTik App
 
jklpl
just joined
Topic Author
Posts: 9
Joined: Wed Mar 14, 2012 3:16 pm

MagicPacket (WOL) from Internet not working

Fri Sep 07, 2012 4:54 pm

Hi all

I need to run WOL through the Internet so I add to ip firewall:

/ip firewall nat
add action=src-nat chain=srcnat disabled=no src-address=192.168.100.0/24 to-addresses=\
IPEX

add action=dst-nat chain=dstnat disabled=no dst-address=IPEX dst-port=7 protocol=udp \
to-addresses=192.168.100.255 to-ports=7

add action=dst-nat chain=dstnat disabled=no dst-address=IPEX dst-port=9 protocol=udp
to-addresses=192.168.100.255 to-ports=9

I tired WakeOnLanGui (windows) and wakeonlan (from debian repo). Packets aim in rules (ip firewall counter is ticking).

Not working so I tested:
/tool wol interface=ether1 mac=00:22:44:66:88:BB
It works.

How to override problem?
How to run tool wol after for example "ping -s 888" ?? ;)

Regards
 
User avatar
maximan
Trainer
Trainer
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Re: MagicPacket (WOL) from Internet not working

Fri Sep 07, 2012 6:44 pm

I guess you must to use EoIP or BCP to make Wol over internet.

M.
 
raduladans
just joined
Posts: 2
Joined: Fri Oct 05, 2012 5:05 pm

Re: MagicPacket (WOL) from Internet not working

Fri Oct 05, 2012 5:29 pm

If it is not too late... this is how I would do it / did it:

1. if you are using DHCP, asign static IPs based on MACs for the computers you want to wake up
2. create static ARPs (this links the IP to the MAC)
3. depending on how many computers you want to wake up, create 1 or more NAT rules for all incoming traffic on a choosed-by-you-port to dst-nat on port 9 of each computer. (keep in mind that NAT rule must be using UDP protocol)

That's all. ;)

P.S. A much more complicated Layer7 solution may be useful in case you have a huge network computers that are changing all the time...But given the fact that WOL only works on wired connections, I really think that is not the case.

(the layer 7 solution, in theory: decode the magic packet, find the MAC Address, log it to memory on a custom-action and run a cron each minute that parses that log.... if there is a match, launch : /tool wol interface=YOUR_LAN_BRIDGE mac=$matched_mac )
 
easyyu
newbie
Posts: 30
Joined: Sun Aug 22, 2010 8:13 am

Re: MagicPacket (WOL) from Internet not working

Mon Oct 29, 2012 6:52 am

If it is not too late... this is how I would do it / did it:
2. create static ARPs (this links the IP to the MAC)
Thx mate..
I spent hours till I found this solution!

Who is online

Users browsing this forum: billyerasmus101, Google [Bot], jaclaz, Majestic-12 [Bot] and 211 guests