[SOLVED] Wireguard working but does not trigger WOL

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
llFawkes17ll
DD-WRT User


Joined: 24 Jul 2018
Posts: 158

PostPosted: Sun Jun 26, 2022 11:43    Post subject: [SOLVED] Wireguard working but does not trigger WOL Reply with quote
Hi everyone. I have been using WOL for years as a way to turn on a computer which I run a plex server on (while I am connected to the wifi). I will be traveling in a few days so I thought to get a wireguard vpn setup on my archer c8. I managed to get it working and connected my cellphone to it. While connected to LTE I can ping my home router and connect to my home services. However, when I try to use the WOL app which I use on the cellphone it does not wake up the computer. Is there any limitations with wireguard and WOL? Any help would be appreciated.
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sun Jun 26, 2022 12:24    Post subject: Reply with quote
You may need to send the packet to the specific IP address instead of the Broadcast address.

It's not unusual to see what you see, WOL magic Packet is layer 2 while WG is layer 3.

Other solutions may apply like some IP helper.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
llFawkes17ll
DD-WRT User


Joined: 24 Jul 2018
Posts: 158

PostPosted: Sun Jun 26, 2022 12:30    Post subject: Reply with quote
the-joker wrote:
You may need to send the packet to the specific IP address instead of the Broadcast address.

It's not unusual to see what you see, WOL magic Packet is layer 2 while WG is layer 3.

Other solutions may apply like some IP helper.


The way I always got it to work was by sending the packet through a broadcast address (192.168.1.255). Can you clarify what do you mean by IP helper? That is going above my head lol
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12885
Location: Netherlands

PostPosted: Sun Jun 26, 2022 12:52    Post subject: Reply with quote
Will move this thread to the Advanced Networking forum as it can be of interest to us all Smile

I agree with @the-joker, WG is a routed solution, WOL usually needs you to be on the same subnet.

I use WG and use WOL, but I do it via the GUI of the Router.
When I connect with WG I just activate WOL via the routers GUI.
It can most probably be done in one step, it is possible that the WOL wiki describes steps for that.

Some general remarks about your setup, first of all the WG Server Setup guide has a step by step how to get an optimal setup.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397

There is not much use in obscuring the WG subnet, without endpoint and key we cannot access it and if we have the endpoint address and key you have bigger problems.

To be sure, WG is routed and it needs three different subnets, so the routers, the WG and the clients subnet have to be different (that is why it is not advocated to use a 192.168.x.0 as subnet for WG)

On your server you do not set an endpoint (not that it is impossible in case you have a fixed endpoint but it does not work on roaming clients)

On the server side you do not set keepalive (yes you can but you should leave that to the client side, e.g. if your client side is on a metered connection the client side can decide not to use keepalive)

It is all described in the WG Server setup guide Smile

Have fun

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
llFawkes17ll
DD-WRT User


Joined: 24 Jul 2018
Posts: 158

PostPosted: Sun Jun 26, 2022 13:05    Post subject: Reply with quote
egc wrote:
Will move this thread to the Advanced Networking forum as it can be of interest to us all Smile

I agree with @the-joker, WG is a routed solution, WOL usually needs you to be on the same subnet.

I use WG and use WOL, but I do it via the GUI of the Router.
When I connect with WG I just activate WOL via the routers GUI.
It can most probably be done in one step, it is possible that the WOL wiki describes steps for that.

Some general remarks about your setup, first of all the WG Server Setup guide has a step by step how to get an optimal setup.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=327397

There is not much use in obscuring the WG subnet, without endpoint and key we cannot access it and if we have the endpoint address and key you have bigger problems.

To be sure, WG is routed and it needs three different subnets, so the routers, the WG and the clients subnet have to be different (that is why it is not advocated to use a 192.168.x.0 as subnet for WG)

On your server you do not set an endpoint (not that it is impossible in case you have a fixed endpoint but it does not work on roaming clients)

On the server side you do not set keepalive (yes you can but you should leave that to the client side, e.g. if your client side is on a metered connection the client side can decide not to use keepalive)

It is all described in the WG Server setup guide Smile

Have fun


Hahahaha everytime I think it is simple I end up in going down in a rabbit hole.

When you say I don't need to set up an end point on the server side, is there a problem if I did? I am asking because I got it working that way and I'm a newbie so I'm always scared of changing setting when I get it working Very Happy.

Will give a try using the GUI to send the WOL packet as you recommend. Where on the GUI would I look into to activate the WOL?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12885
Location: Netherlands

PostPosted: Sun Jun 26, 2022 13:13    Post subject: Reply with quote
It is simple if you just follow the manual Smile

If you have an endpoint set it will constantly try to connect to that and if the endpoint is itself you are spamming yourself.

*Not* very useful

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
llFawkes17ll
DD-WRT User


Joined: 24 Jul 2018
Posts: 158

PostPosted: Sun Jun 26, 2022 13:13    Post subject: Reply with quote
Found the location on the GUI. Activation of the WOL didn't work when when I'm not connected to the WG. However it works with the app I use on the phone. Doing something wrong.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12885
Location: Netherlands

PostPosted: Sun Jun 26, 2022 13:20    Post subject: Reply with quote
I just use the routers GUI, see attachment, no app involved
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
llFawkes17ll
DD-WRT User


Joined: 24 Jul 2018
Posts: 158

PostPosted: Sun Jun 26, 2022 13:23    Post subject: Reply with quote
egc wrote:
I just use the routers GUI, see attachment, no app involved


Ok now it started working out of nowhere. I was able to use WOL by using the GUI while using WG. Thank you so much for your help. I'll go ahead and turnoff the endpoint on the server and hopefully everything will still work.
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sun Jun 26, 2022 17:45    Post subject: Reply with quote
Glad it works now.

egc spooked the gremlins away, they know egc is our tunneling expert and beloved M.C.H.O.

You were lucky this time Wink

Marked as solved.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum