<html><head><style id="css_styles" type="text/css">blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: right;'] { list-style-position: inside;}
body { font-family: Segoe UI; font-size: 12pt; }</style></head><body><div>Hello,</div><div><br /></div><div>that seems not to be the intended behaviour:</div><div>If I understand correctly, the current behaviour is:</div><div><br /></div><div>At tunnel start the IP is resolved</div><div>This IP is used for ever, namingly for re-connects.</div><div><br /></div><div><br /></div><div>The probably intended behaviour would be:</div><div><br /></div><div>At tunnel start and at any re-connect the IP is resolved.</div><div><br /></div><div><br /></div><div>Do you agree that this behaviour should be changed? </div><div>Apart from that: Can you suggest an automatable workaround?</div><div><br /></div><div>Regards,</div><div>Hendrik</div>
<div><br /></div>
<div>------ Originalnachricht ------</div>
<div>Von: "Laszlo KERTESZ" <<a href="mailto:laszlo.kertesz@gmail.com">laszlo.kertesz@gmail.com</a>></div>
<div>An: "Ivan Labáth" <<a href="mailto:labawi-wg@matrix-dream.net">labawi-wg@matrix-dream.net</a>></div>
<div>Cc: "Hendrik Friedel" <<a href="mailto:hendrik@friedels.name">hendrik@friedels.name</a>>; <a href="mailto:wireguard@lists.zx2c4.com">wireguard@lists.zx2c4.com</a></div>
<div>Gesendet: 28.08.2019 08:17:32</div>
<div>Betreff: Re: Keep-alive does not keep the connection alive</div><div><br /></div>
<div id="x67c9270ef9284da"><blockquote cite="CANcuY=oE9L_sm1b_JJV4_fv+ABLx9ZbTeXXzijkiLw-b=CxkMQ@mail.gmail.com" type="cite" class="cite2">
<div dir="auto">I too use a server with dynamic ip. And the clients (Android, Linux) tend to lose connectivity permanently if the server's ip changes. With or without keepalive.<div dir="auto"><br /></div><div dir="auto">The dynamic ip's dns entries are updated almost instantly when the ip changes so this is not dns related. Wireguard does not try to re establish connection, it keeps using the server ip acquired at the tunnel's start. Only way around this is restarting the interface. </div></div><br /><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 26, 2019, 21:08 Ivan Labáth <<a href="mailto:labawi-wg@matrix-dream.net">labawi-wg@matrix-dream.net</a>> wrote:<br /></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br />
<br />
I notice you are using dynamic ips for server.<br />
On the client, is the server peer ip correct?<br />
<br />
Regards,<br />
Ivan<br />
<br />
On Sun, Aug 25, 2019 at 06:44:53PM +0000, Hendrik Friedel wrote:<br />
> Hello,<br />
> <br />
> thanks for your reply.<br />
> It is linux (Kernel 5.x) in both cases.<br />
> <br />
> Regards,<br />
> Hendrik<br />
> <br />
> ------ Originalnachricht ------<br />
> Von: "Vasili Pupkin" <<a href="mailto:diggest@gmail.com" rel="noreferrer">diggest@gmail.com</a>><br />
> An: "Hendrik Friedel" <<a href="mailto:hendrik@friedels.name" rel="noreferrer">hendrik@friedels.name</a>><br />
> Cc: <a href="mailto:wireguard@lists.zx2c4.com" rel="noreferrer">wireguard@lists.zx2c4.com</a><br />
> Gesendet: 25.08.2019 17:59:59<br />
> Betreff: Re: Keep-alive does not keep the connection alive<br />
> <br />
> >What OS is running on client side? I have this issue on Win7 client,<br />
> >can explain it further, it has nothing to do with keepalives though,<br />
> >it is a bug in tun adapter implementation<br />
> ><br />
> >On Sun, Aug 25, 2019 at 6:38 PM Hendrik Friedel <<a href="mailto:hendrik@friedels.name" rel="noreferrer">hendrik@friedels.name</a>> wrote:<br />
> >> I have a setup in which the Server IP is known, whereas the Client IP is changing. Thus, I rely on the Client to connect to the Server. I want the Client to keep the connection alive all the time though, so that the Server can also initiate a connection to the Server when needed. Both, client and server are behind a NAT/Router.<br />
> >> I would think, that the "PersistentKeepalive = 25" on the Client would ckeep the connection open. The connection works fine while used. But after a while, I cannot connect from the Server to the client anymore.<br />
> >> I would assume that a ping from the Client to the IP of the endpoint would help to re-alive the connection - but it does not.<br />
> >><br />
> >> Only after a wg-quick down and up all is fine again.<br />
> >><br />
> >> Below some more information.<br />
> >><br />
> >> Can you help me to find, what I am doing wrong?<br />
> <br />
> _______________________________________________<br />
> WireGuard mailing list<br />
> <a href="mailto:WireGuard@lists.zx2c4.com" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br />
> <a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br />
_______________________________________________<br />
WireGuard mailing list<br />
<a href="mailto:WireGuard@lists.zx2c4.com" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br />
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br />
</blockquote></div>
</blockquote></div>
</body></html>