Router restart ends up with wireguard connection issue

Router restart ends up with wireguard connection issue

Router restart ends up with wireguard connection issue
Router restart ends up with wireguard connection issue
3 weeks ago - last edited 3 weeks ago
Model: ER605 (TL-R605)  
Hardware Version: V2
Firmware Version: 2.2.6

Introduction

I have multiple ER605 running. All of them are connected to a wireguard vpn server, which is hosted on an ubuntu server in the cloud. The ER605 are all behind a CG-NAT and so they are actively connecting to the cloud server.

 

Setup

Site A holds the controller and connects to a wireguard server in the cloud

Site B connects to the wireguard server in the cloud

Site B uses the controller at Site A

 

Problem

If the ER605 restarts, for example because of losing power or someone at the site think it is a good idea to reset the router, it connects to whatever WAN setup is made. From PPPoE over DHCP, everything is working. The only thing, which is not connecting is the wireguard connection. The router does not connect until I turn off and on the wireguard setup on the ER605 at the specific site OR (and this is really interesting) I restart the wireguard service on the wireguard server in the cloud.

I except that the ER605 connects to the wireguard server after the restart and I don't want to disable and enable the service on the ER605 and I also don't want to restart the wireguard service on the server.

In this specific setup I only can restart the wireguard service at the wireguard server, because the ER605 needs the connection to get updates from the controller.

There is also a non ER605 router in this setup and this device (pfSense) connects to the wireguard server after a restart. Only the ER605 router does not connect after a restart.

 

Question

Is anyone having the same problem, that the wireguard service from the ER605 does not connect automatically after reboot?

 

greets, Odin

...
  0      
  0      
#1
Options
2 Reply
Re:Router restart ends up with wireguard connection issue
3 weeks ago - last edited 3 weeks ago

Hi @Odin_ygg 

Thanks for posting in our business forum.

See the solution page:

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  1  
  1  
#2
Options
Re:Router restart ends up with wireguard connection issue
3 weeks ago

  @Clive_A 

 

thanks for your fast reply, but the solution you recommended does not fit my scenario. The problem here is not that the router is restarting. The problem is that the router does not connect to the wireguard server as long as the service has not been resetted. Just the service has to be resetted, every other thing is doing well.

I will give it a try with some packet trace and I hope to see the problem.

...
  0  
  0  
#3
Options