I have setup wake on lan service on my server. Everything works fine on local area network:
root@server$: poweroff
user@local$ wakeonlan AA:BB:CC:DD:EE:FF
and the server wakes up.
AA:BB:CC:DD:EE:FF is a MAC address of my server, which has IP 192.168.1.2 and hostname: example.com. It is connected to the router, which has IP 192.168.1.1 (public: xxx.xxx.xxx.xxx)
When the server is up, I can ping:
ping example.com
or login via ssh:
ssh
[email protected]
So far, so good. Now I'm able to wake the server up from local area, but how to wake the server from the remote location?
I tried: user@local$ wakeonlan -i xxx.xxx.xxx.xxx AA:BB:CC:DD:EE:FF, but it does not work (nothing happens;).
Do I have to configure my router somehow to forward magic packets? How?