Hello everybody.
I want to make automatic of procedure waking up my laptop, when I connecting to it via RDP.
I have a port forwarding and script, which waking up my device:
tool wol interface=ether5 mac=90:E6:BA:9D:**:**
Can I make some rule, which running this script after NAT-Rule is run?
Thanks for your help in advance and sorry for language - it’s not my native.
Not exacly what I want. I can connect from my work office or from any point of Internet to my Home LAN, but not in every connection need to wake laptop
look at this Wiki post, i think it can help to solve your problem https://wiki.mikrotik.com/wiki/Log_Parser_-_Event_Trigger_Script
based on it you can parse nat event
And don’t forget - your laptop will need some time to wake up after getting WOL message, so you will have to reconnect after it will start
Sob, thanks for your help!
I done it by your manual.
Source added to list for 5 seconds, and script running every 1 second (I watch for my CPU Usage - it’s about 3-6% of loading).
First time, when I connect - connection RDP not working - it’s normal, laptop is sleeping.
Second time (after about 5-10 sec) it’s connecting successfully.
About scanning this port by bots, i’m not affraid - because my external RDP-port not standart.
Thank’s again!