The script is probably more efficient but significantly less consumable to me 
(I would not be willing to try to translate this to windows) then ping -c1 || 
pull down and up I read somewhere else. Actually I have some more cases in my 
script, but cannot include them because the client is sleeping (and the router 
has an issue with wol right now). I guess my script is less adaptable and 
supports just one client, but does the trick.
Please, please, please - there must be a better place to do this automatically 
without extra scripting..
Thanks, Joachim

-----Ursprüngliche Nachricht-----
Von: Jason A. Donenfeld <[email protected]> 
Gesendet: Sunday, 25 August 2019 20:55
An: [email protected]; Simon Rozman <[email protected]>
Cc: WireGuard mailing list <[email protected]>
Betreff: Re: Hyper-V 2019: unable to create wintun device: no interfaces found

On Sun, Aug 25, 2019 at 12:52 PM <[email protected]> wrote:
> not the port. My external IP is dynamic. This is really standard for internet 
> services in Germany offered to non-business users, or also business that 
> prefer not the pay extra charges for the assignment of a static ip address. 
> My IP address changes at least once a day (usually between 1 am and 2 am). 
> Usually one uses a dyndns provider, and many routers support updating the ip 
> address automatically. As I am running my external DNS with cloudflar, I am 
> calling their API to update my external address.
> Now afaik Wireguard resolves the domain name of the server just once to an IP 
> address and not regularly or whenever the connection breaks down or has been 
> idle for some time.
> PersistentKeepAlive cannot address the issue, as the client is also not awake 
> all the time in order to save energy. Looking at wg /? on windows I also 
> don´t see any option that seems applicable..

Ahhh, the DNS re-resolution issue. On linux we have this nice script:

https://git.zx2c4.com/WireGuard/tree/contrib/examples/reresolve-dns

On windows, it should be pretty easy to do as well. You can actually just use 
task scheduler to run `wg set wg0 peer ABCD...EF= endpoint 
somewhere.on.dyndns:1234` every minute or whatever you feel is best.

_______________________________________________
WireGuard mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/wireguard

Reply via email to