WireGuard client hunging

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


Joined: 09 Jan 2017
Posts: 81
Location: Dublin

PostPosted: Sat Mar 22, 2025 12:40    Post subject: WireGuard client hunging Reply with quote
Hi all, I am experiencing a strange issue with a WireGuard clients-server config.

This is my setup:

- A WRT1200AC (r51362) as a WireGuard server (secondary router).
- A WRT1200AC (r51362) as a WireGuard client (secondary router).
- A WRT1900ACS (r51362) as a WireGuard client (primary router).

They are all in different houses so the two of them are secondary behind the provider's router.

The problem:

The provider's router where the server router is connected gets rebooted every night, so its IP changes.
I have correctly setup the DNS script on all routers to update DuckDNS accordingly.

Now, for some reason the wrt1900 client is able to keep going, while the wrt1200 client hangs. I have to disable/enable the tunnel to get it working again.

What makes this even more strange, is that I have a separate tunnel between the two clients, for which I am not facing this issue.

Attaching the config screens for the 3 routers.


EDIT:

Sometimes even the wrt1900 get's lost trying to connect to previous IP.
It looks like the DNS is resolved only at first connection then, if IP changes the WireGuard client isn't capable of reconnect.

Does anyone know if there is any settings to be checked?

Thanks all in advance.
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13629
Location: Netherlands

PostPosted: Fri Mar 28, 2025 11:41    Post subject: Reply with quote
Quote:
It looks like the DNS is resolved only at first connection then, if IP changes the WireGuard client isn't capable of reconnect.


That is correct.

You have to run the watch dog to restart and re-resolve the DNS address

P.S. why are you restarting the router everyday, my main router runs for months on end.

_________________
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
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 81
Location: Dublin

PostPosted: Wed Apr 23, 2025 12:19    Post subject: Reply with quote
Hi Egc, sorry for late reply, I am not receiving email alerts anymore.
Anyway, we are not restarting the provider's router everyday, they do something from their and change the IP during the night.

Could you please point me to some guide or, if a quick fix, list me here what to do?

Thanks
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13629
Location: Netherlands

PostPosted: Wed Apr 23, 2025 12:24    Post subject: Reply with quote
Nightbridge wrote:
Hi Egc, sorry for late reply, I am not receiving email alerts anymore.
Anyway, we are not restarting the provider's router everyday, they do something from their and change the IP during the night.

Could you please point me to some guide or, if a quick fix, list me here what to do?

Thanks


WireGuard only resolves the endpoint address at the start so if it changes it does not automatically re-resolve.
Therefore the WireGuard client has a watchdog, if the connection is no longer working then the WireGuard interface will be restarted which will resolve the endpoint address again.

The WireGuard client setup guide (a sticky in this forum) has instructions how to best set this up

_________________
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
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 81
Location: Dublin

PostPosted: Wed Apr 23, 2025 12:25    Post subject: Reply with quote
Awesome, thank you!
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 81
Location: Dublin

PostPosted: Wed Apr 23, 2025 12:38    Post subject: Reply with quote
So just leaving the default parameters would do the job?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13629
Location: Netherlands

PostPosted: Wed Apr 23, 2025 12:42    Post subject: Reply with quote
Yes 😀
_________________
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
Nightbridge
DD-WRT User


Joined: 09 Jan 2017
Posts: 81
Location: Dublin

PostPosted: Wed Apr 23, 2025 12:47    Post subject: Reply with quote
Very Happy thanks
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