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: 77
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: 13625
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
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