Posted: Sat Mar 22, 2025 12:40 Post subject: WireGuard client hunging
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?
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?
Joined: 18 Mar 2014 Posts: 13631 Location: Netherlands
Posted: Wed Apr 23, 2025 12:24 Post subject:
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.