WOL over Internet

Status
Not open for further replies.

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
Buongiorno a tutti!
I'm already using Wake-On-Lan in my house for waking up my server, i've just try to set up, with the same stuff (https://www.depicus.com/wake-on-lan/woli terminal version) the wake over the WAN. I have open the UDP port, of course i'm using DNS, and if i try to start it something goes wrong and it's not working!

Someone can help me to understand my problem?
Thanks :)
 
D

dlavigne

Guest
Any messages in /var/log/messages on FreeNAS when you click wake up?
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Do you have a Windows PC on your network?

With WoL, I find it much easier to troubleshoot issues on a PC than on my servers, especially since I found this utility: https://www.depicus.com/wake-on-lan/wake-on-lan-monitor

If you reconfigure your port forward to point at your PC, then you can see if the WoL packets are getting through properly. Once you know that everything is set up correctly on your DNS and port forward, then you can start troubleshooting FreeNAS (if needed).

My ISP actually blocks traffic on ports 7 and 9, so I had to use a different port to make everything work. You may have a similar issue here.
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
Any messages in /var/log/messages on FreeNAS when you click wake up?

NO :(

Do you have a Windows PC on your network?

With WoL, I find it much easier to troubleshoot issues on a PC than on my servers, especially since I found this utility: https://www.depicus.com/wake-on-lan/wake-on-lan-monitor

If you reconfigure your port forward to point at your PC, then you can see if the WoL packets are getting through properly. Once you know that everything is set up correctly on your DNS and port forward, then you can start troubleshooting FreeNAS (if needed).

My ISP actually blocks traffic on ports 7 and 9, so I had to use a different port to make everything work. You may have a similar issue here.

I think that my IPS block it too but i'vr try all possible port... :/

This is my procedure:
  1. BIOS WOL --> Activated
  2. Router Port--> Internal: 123, external: 123, Type: UDP
  3. DNS: (is not true) freenas.duckdns.org
  4. MAC Addr.--> 12:ab:34:cd:ef:56
I call depicus tool with:
wolcmd 12ab34cdef56 freenas.duckdns.org 255.255.255.0 123
syntax: [mac address] [ip or DNS] [Subnet] [port]

It's all correct?
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
i'vr try all possible port... :/

Since there are 65,535 ports, I'm skeptical that you've actually tried them all :p

Let's go through this point by point and make sure we're not forgetting anything:
  1. Can you wake up your server from within your LAN? In other words, have you confirmed that your server is configured correctly for WoL magic packets?
  2. Have you confirmed that the client/utility you are using from the remote location sends working WoL packets? In other words, have you successfully woken up your server using the utility you are using in the remote location?
With 1 and 2 taken care of, we know that the problem is something related to the network in between the server and the remote client, and not the server configuration or the WoL utility. As a follow up, what kind of router do you have?

We need to check the following:
  • There is a route between the remote client and the server.
  • Data can be sent from the remote client to the server.
  • WoL packets can be sent from the remote client to the server.
The first two can be taken care of easily: open port 22 for SSH, then SSH to your FreeNAS server. If you can connect, you know that everything is working well. If you can't connect, this may be your first indication that your ISP is blocking traffic. Change the SSH port (https://doc.freenas.org/9.3/freenas_services.html#ssh) to something in the registered or dynamic range (https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers), forward that port, and try to SSH in again (making sure to point your SSH client at the new port).

If you are able to SSH to your server, then you know that you're able to connect successfully to the server over the internet. If you were blocked at port 22, your ISP is definitely blocking port. If they are aggressively blocking, they may actually be blocking most if not all of the "well-known" ports. In that case, you'll need to using a registered port or a dynamic port to make WoL work.

Now, get a WoL monitor program working on your PC (make sure to test it from your LAN). Forward a port to it, and then try to wake it remotely. If you get the magic packet, you should be good to go. If not, you'll need to check your network configuration.

FYI, you don't need the same port internal/external for port forwarding. You could forward external port 12345 to internal port 123, for example. Also, I noticed this comment on the Depicus page (https://www.depicus.com/wake-on-lan/wake-on-lan-port-numbers.php):
If you wish to use Wake On Lan over the internet you will need to set up your destination firewall/router to allow "Subnet Directed Broadcasts". Most routers and firewalls disable this option by default.

Hopefully this helps.
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
Since there are 65,535 ports, I'm skeptical that you've actually tried them all :p

Nono, i'm not joking, one by one! ahahaha

I think that the problem is related to my ISP, his router can't define ARP table and i can't direct my Magic to the correct devices... I'm really hungry but i don't want to buy a new router :(
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
Nono, i'm not joking, one by one! ahahaha

I think that the problem is related to my ISP, his router can't define ARP table and i can't direct my Magic to the correct devices... I'm really hungry but i don't want to buy a new router :(

What router do you have?
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
What router do you have?

Is a: Technicolor AG plus VDNT-S VDSL2

If you find how to log via Telenet tell me please [emoji17]
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
I think that I'm going to read some of this 754 pages... OMG

It may be faster than manually trying all 65k ports, methinks :D
 

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367

Jacopx

Patron
Joined
Feb 19, 2016
Messages
367
I Have read almost everything and they answered my questions...
My ISP block the Magic and it isn't possible to set it up... [emoji35]

I think that I'll use my android like a WOL devices leaving its always at home! [emoji1303]
 
Status
Not open for further replies.
Top