Wake up PC - Outside network

cesk22

Prominent
Jul 24, 2017
16
0
510
Hello!

Im looking for a sulution for wake up my linux (debian 9) Plex-media server from hibernate mode. First i tried WOL, its work but only if im on the same network where is my server. I have a PC with Windows 7, i tried a lot of softwares / third party services on that ( wolcmd / wakeonlangui / wakeonlanx/ websites and Teamviewer - my best chance was teamviewer but it does not work either )

I have a ddns service on freedns.afraid.org, so i have a domain, i checkd on https://ping.eu/nslookup/ and i can see my ip, so i think its work.

On my router i set up port forwarding:

Name: plex
Protocol: TCP and UDP
WAN connection: Internet_ADSL
WAN host IP range : 0.0.0.0 - 0.0.0.0 (Tried 0.0.0.0 - 255.255.255.255 but it says invalid)
MAC mapping: On
Lan host mac address: <there is my mac addr>
WAN port range: 7-32400 ( because WOL work on 7 and plex is on 32400
LAN Host Port range: 7-32400

I tried port trigger, but im not sure what is that:

Name : play2
trigger ip addr: 192.168.1.24
service type: TCP and UDP
trigger port: 7
Connect type: Tcp and UDP
WAN port range: 7-9
Timeout: 1200

Tried turn off router anti hacking settings, but no result.. I can SSH to my server, i can connect to webserver and to the plex but can not wake up from hibernation. i have installed fail2ban against the chinese hackers on my server, but i dont think thats the problem. Do you have guys any idea?

I checkd my opened ports on a website, 22 was opened for ssh but when i tried 9 it say "Problem! I could not see your service on <my ip addr> on port (9).
Reason: Connection refused. But i used this port for wake up when i was on the same network. Maybe its just not allowed from public net?


Thanks for the answers
 
Solution
You main problem is there is no such thing as wake on "WAN". Wake on lan has no concept of IP addresses it only uses mac addresses and mac addresses can not pass between subnets...ie over the internet. The wake on lan packet is a special packet sent to the broadcast mac address with the mac address of the machine to wake in data in a special pattern. It must be sent from the same network and is why it only works that way for you.

The main problem is there are a lot of tools that try to send data to IP addresses. These tools are not valid in the way they attempt to work. The reason you see people claiming to get this to work is because for a "short" period of time the ARP table in the router has cached information. The other...
You main problem is there is no such thing as wake on "WAN". Wake on lan has no concept of IP addresses it only uses mac addresses and mac addresses can not pass between subnets...ie over the internet. The wake on lan packet is a special packet sent to the broadcast mac address with the mac address of the machine to wake in data in a special pattern. It must be sent from the same network and is why it only works that way for you.

The main problem is there are a lot of tools that try to send data to IP addresses. These tools are not valid in the way they attempt to work. The reason you see people claiming to get this to work is because for a "short" period of time the ARP table in the router has cached information. The other is many machines accept packets that contain ip addresses even though this is not technically allowed. So for a short time you can port forward a ip and the packet will work until the arp times out.

The hack that partially works if your router supports it is to put in s static arp entry to a dummy ip mapped to the broadcast mac address. You then put in port forwarding rules for that dummy ip. You can then send data to ip and it will be broadcast to all machines. This used to be a "feature" in commercial routers to send to broadcast from outside but people used it as DoS attack so they disable it.

The best solution I have seen is some routers (asus) have a client on the router. You can remotely log into the router and ask it to send the WoL packet for you.
 
Solution

cesk22

Prominent
Jul 24, 2017
16
0
510


Thanks for the answer! I have default Telekom - Speedport Entry 2i router, there is no chance to remotly log to in. I think im gonna use a low power req. device like a raspberry Pi or my old android phone on the local network for wake up my server. Im gonna ssh/teamviewer to this device to wake up my Plex-media.