R
R
rapman4772018-12-14 12:58:24
Computer networks
rapman477, 2018-12-14 12:58:24

How to set up NAT on a router for Wake On Lan to work outside the local network?

Enabled WOL in the BIOS and in the properties of the network card.
Inside the local network PC WIN10 turns on without problems.
Out of the network - does not work.
Found this article https://habr.com/post/77191/
I have a router + white IP. There is Virtual Server and IP Filtering.
Tried in different ways. Here is the last setting:
1. Made Virtual Server:
- external port: 9
- protocol: UDP
- internal port: 9
- Server IP Address: 192.168.0.255
2. Made IP Filter
- SrcIP: 192.168.0.255
- SrcPort: 9
- DstIP: 192.168.0.6 (IP of the switched on PC, it is on a twisted pair cable)
- DstPort: 9 I
connect via white IP on port: xxx.xxx.xx.x:9

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
MrPurrPurr, 2018-12-14
@MrPurrPurr

Make a static ARP entry for your computer on the router and set DNAT to the address from the ARP entry. It will work.

K
Konstantin ™, 2018-12-14
@Energoblock

The wake-on-lan packet is sent to a broadcast address within your local network, so it won't get through the internet. Most likely your packet will be killed by the first router on the route.
To remotely start computers, I see a simple way and a difficult one.
Simple: connect to the router via ssh and run wakeonlan or etherwake in the console with the desired MAC address.
Complex: write a service (or a web interface), run it on a router on an external port, and send data there. And the router will receive this data and run the same wakeonlan or etherwake locally.

D
dinarv, 2018-12-14
@dinarv

life hack. if there is more than one windows PC on the network, then you can install TeamViewer on both and configure WoL on them through each other.
As a result, cars can be turned on through the TeamViewer console - for this, a neighboring node with TW is used. No network settings are needed.

A
Artem @Jump, 2018-12-14
curated by the

Try making the local IP static.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question