Wake On Lan app

Got a feature request? Great! Post your ideas here!

Moderator: Lillian.W@AST

Post Reply
ZenDK
Posts: 4
youtube meble na wymiar Warszawa
Joined: Mon Sep 06, 2021 5:00 pm

Wake On Lan app

Post by ZenDK »

Hello!

I'm new around here, but I've had my AsusTor NAS AS5304T for about a year now.
I have been trying to figure out a way to wake up my PC using my NAS, when I'm not at home, but so far no success...

So here's my scenario:

WOL app on phone -> LAN -> PC turns on from sleep state
WOL app on phone -> VPN connection -> PC does NOT turn on.

VPN is OpenVPN TUN connection and I know WOL only works using Layer 2 with MAC addresses. But how can I do that when VPN-server app on AsusTor does NOT support TAP bridge mode for VPN connections?

I have tried installing a WOL docker container, which has been tested and works from LAN, but then I cannot connect to that container (http) using the VPN connection!
I'm sure it's some gateway config that is messing up?

So my question is....
Wouldn't it be easy to implement a simple "Wake up PC" function directly on ADM? I can access ADM anywhere without VPN, so that would make it a whole lot easier for me.

Thanks!
User avatar
orion
Posts: 3482
Joined: Wed May 29, 2013 11:09 am

Re: Wake On Lan app

Post by orion »

One easy way is to install "etherwake" tool in NAS.
  • Install Entware under AppCentral.
  • Enable Terminal Service under ADM web -> Services (it's better to change port number!!).
  • Use putty to connect to NAS. Install "etherwake" tool by the command: "opkg install etherwake".
  • Use ehterwake with proper parameters.
ZenDK
Posts: 4
Joined: Mon Sep 06, 2021 5:00 pm

Re: Wake On Lan app

Post by ZenDK »

Thanks for your reply!

I have done the first 3 steps and terminal reported success on installing etherwake.
However, where do I use Etherwake? It did not show up as an app on ADM. Any port on HTTP I need to look at?
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Wake On Lan app

Post by Nazar78 »

It's a command line. So while you're on vpn, ssh into the nas vpn or lan ip (depends how you set it up) then issue the etherwake command. Please refer here for details https://www.mkssoftware.com/docs/man1/etherwake.1.asp
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
ZenDK
Posts: 4
Joined: Mon Sep 06, 2021 5:00 pm

Re: Wake On Lan app

Post by ZenDK »

Thank you for the link. It makes sense.

When typing etherwake -b 192.168.XX.255 00:21:70:c2:c1:88 I'm getting a "the program must be run as root" error.
I'm not a big SSH expert, but I don't see a reason why this need to be run as root. However, trying with sudo etherwake .... , and it says "sudo: ehterwake: command not found."

I feel I'm getting close...
ZenDK
Posts: 4
Joined: Mon Sep 06, 2021 5:00 pm

Re: Wake On Lan app

Post by ZenDK »

I got it to work now.

I pressed TAB after SUDO ROOT. Then I saw etherwake was actually ether-wake with a dash.

ether-wake -b <MAC ADDRESS>
and it turned on.

Thanks for your help!
User avatar
Nazar78
Posts: 2002
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

Re: Wake On Lan app

Post by Nazar78 »

Thanks to orion, I'm actually using another command.

Just to share, if you're interested in command lines and such, long ago, as I can't find similar tools, so I wrote a simple webgui that I used to access from my old NAS to remotely manage and wake all my local devices: http://teanazar.com/2015/10/setting-up- ... ke-on-lan/

Actually I still have it running too on my Nimbustor4 (requires a little effort setting up) but seldom using as I've moved on to voice commands as stated here: viewtopic.php?f=240&t=12112#p40232
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
Post Reply

Return to “Feature Requests”