P
P
Pavlik2020-03-29 20:38:50
Automation
Pavlik, 2020-03-29 20:38:50

How to auto-reconnect the wireguard client when changing the ip-address of ddns?

Actually, there is a server part of wireguard under Windows, the ip-address changes once a day, the new address is immediately tied to DDNS. The client machine sees a new ip via ddns instantly. But the wireguard Windows client does not want to do this point-blank until you do a manual reconnection in the client or restart the service :(

Some crutch in the form of a script comes to mind ?! Which, for example, will ping an internal resource in the tunnel and, if the pig is unavailable, will restart the wireguard service Who can help automate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bottom, 2020-03-31
@Bottom

It looks like a feature of wireguard
https://wiki.archlinux.org/index.php/WireGuard#End...
here in this thread a solution was proposed in the style of "crutch in the form of a script" for windows
https://www.reddit.com/ r/WireGuard/comments/f9g94v...
if I understand the task in the scheduler, we prescribe it with administrator rights ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question