Hello and first of all thank you very much for the great app.
But now to my question, how do I set up Wireguard to automatically reconnect when the IP address changes during the night? With openvpn it works, only wireguard never wants to connect and always seems to connect to the old IP and does not take the new one from dnydns. But as said before with openvpn it works without problems.
Wireguard - IP address changes during the night
Re: Wireguard - IP address changes during the night
Hello!
The two protocols are very different, and therefore have different behaviors.
This happens because in WireGuard the hostnames are resolved only when the VPN starts, just before adding peers.
The official WireGuard kernel implementation also has the same behavior.
Anyway I will try to see if it's possible to solve this problem in my implementation...
The two protocols are very different, and therefore have different behaviors.
This happens because in WireGuard the hostnames are resolved only when the VPN starts, just before adding peers.
The official WireGuard kernel implementation also has the same behavior.
Anyway I will try to see if it's possible to solve this problem in my implementation...
Re: Wireguard - IP address changes during the night
That would be great, many thanks in advance
Re: Wireguard - IP address changes during the night
The problem can be solve by using the option "Resolve hostname before reconnecting" introduced in new version 1.00.66.
This option forces the app to resolve the hostname each time a new handshake is initiated.
Here the steps to enable the new option:
This option forces the app to resolve the hostname each time a new handshake is initiated.
Here the steps to enable the new option:
- edit the VPN profile
- tap on "Peers"
- tap on server's name
- select "Resolve hostname before reconnecting"
- save the changes