4 ms·
> I want WireGuard to periodically refresh the endpoint IP when I change networks, for instance. Out of curiosity, why do you want this?
by ericpauley 4y ago
> I want WireGuard to periodically refresh the endpoint IP when I change networks, for instance.
Out of curiosity, why do you want this?
- candiddevmike 4y agoSplit DNS, where WireGuard may resolve an endpoint differently on a LAN vs internet. Also for IPv4/IPv6 roaming--if WireGuard resolves an IPv6 address but moves to a non IPv6 network, the peer will never connect as far as I know.
- dinosaurdynasty 4y agoIt's not (and shouldn't be) possible to do it in the kernel module, but it's not too hard to write a cronjob/daemon if you really need it. It'd definitely be nice if wg-quick and the official apps supported it, though.
- cgb_ 4y agoI see this when my equipment roams back into my private network and the wireguard server is inside that LAN. It can be solved by NAT'ing packets arriving on your edge router's inside interface, destinated to your outside IP, back to the inside wireguard server IP. Alternatively if your client is Linux, there is: https://github.com/WireGuard/wireguard-tools/tree/master/contrib/reresolve-dns https://github.com/WireGuard/wireguard-tools/tree/master/con...