OpenWrt Forum Archive

Topic: Wake on LAN by port trigger

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I have configured Remote Desktop Server on my PC at home. Sometimes when I am at work I need to access my files and such, but my computer is down.
I know I can wake it up by etherwake or wolcmd or other tool, but dont know how to trigger this command from outside. I can connect to the router via SSH only from LAN.

How to set it up so I can connect it from WAN side?

Add allow rule from WAN to Device on port 22. This will provide access to shell from outside of you network. Speaking of port triggering, I'm curious how to do it myself. As far as I know you can use Knockd daemon to execute commands when packet hits a determined port. It's available as a package in OpenWrt repository.

http://www.zeroflux.org/projects/knock

The discussion might have continued from here.