WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario?
@ 2019-05-27 18:10 Rene 'Renne' Bartsch, B.Sc. Informatics
  2019-09-29 14:27 ` Ulrich Kalloch
  0 siblings, 1 reply; 6+ messages in thread
From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-05-27 18:10 UTC (permalink / raw)
  To: wireguard

Hi,

is it meanwhile possible to define an IPv6 endpoint AND and an IPv4 endpoint as fallback
in case a road warrior does not get IPv6 connectivity when switching internet sockets?

Regards,

Renne
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario?
  2019-05-27 18:10 IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario? Rene 'Renne' Bartsch, B.Sc. Informatics
@ 2019-09-29 14:27 ` Ulrich Kalloch
  2019-09-29 19:31   ` Henning Reich
  0 siblings, 1 reply; 6+ messages in thread
From: Ulrich Kalloch @ 2019-09-29 14:27 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1.1.1: Type: text/plain, Size: 526 bytes --]

Hello @ all

i am interested in this too.

Regards

Ulli

Am 27.05.19 um 20:10 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics:
> Hi,
>
> is it meanwhile possible to define an IPv6 endpoint AND and an IPv4
> endpoint as fallback
> in case a road warrior does not get IPv6 connectivity when switching
> internet sockets?
>
> Regards,
>
> Renne
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard



[-- Attachment #1.1.1.2: 0x44BE4EB74E7625C8.asc --]
[-- Type: application/pgp-keys, Size: 3987 bytes --]

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario?
  2019-09-29 14:27 ` Ulrich Kalloch
@ 2019-09-29 19:31   ` Henning Reich
  2019-09-29 20:46     ` Rene 'Renne' Bartsch, B.Sc. Informatics
  2019-09-30  7:52     ` Nico Schottelius
  0 siblings, 2 replies; 6+ messages in thread
From: Henning Reich @ 2019-09-29 19:31 UTC (permalink / raw)
  To: Ulrich Kalloch; +Cc: WireGuard mailing list

[-- Attachment #1.1: Type: text/plain, Size: 894 bytes --]

Should a DNS entry Wirth one
AAAA record and one A record solve thus problem? So the OS decide the best
way to connect?

Ulrich Kalloch <ulli@noc23.de> schrieb am So., 29. Sep. 2019, 16:29:

> Hello @ all
>
> i am interested in this too.
>
> Regards
>
> Ulli
>
> Am 27.05.19 um 20:10 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics:
> > Hi,
> >
> > is it meanwhile possible to define an IPv6 endpoint AND and an IPv4
> > endpoint as fallback
> > in case a road warrior does not get IPv6 connectivity when switching
> > internet sockets?
> >
> > Regards,
> >
> > Renne
> > _______________________________________________
> > WireGuard mailing list
> > WireGuard@lists.zx2c4.com
> > https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #1.2: Type: text/html, Size: 1689 bytes --]

<div dir="auto">Should a DNS entry Wirth one<div dir="auto">AAAA record and one A record solve thus problem? So the OS decide the best way to connect?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ulrich Kalloch &lt;<a href="mailto:ulli@noc23.de">ulli@noc23.de</a>&gt; schrieb am So., 29. Sep. 2019, 16:29:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello @ all<br>
<br>
i am interested in this too.<br>
<br>
Regards<br>
<br>
Ulli<br>
<br>
Am 27.05.19 um 20:10 schrieb Rene &#39;Renne&#39; Bartsch, B.Sc. Informatics:<br>
&gt; Hi,<br>
&gt;<br>
&gt; is it meanwhile possible to define an IPv6 endpoint AND and an IPv4<br>
&gt; endpoint as fallback<br>
&gt; in case a road warrior does not get IPv6 connectivity when switching<br>
&gt; internet sockets?<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Renne<br>
&gt; _______________________________________________<br>
&gt; WireGuard mailing list<br>
&gt; <a href="mailto:WireGuard@lists.zx2c4.com" target="_blank" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br>
&gt; <a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
<br>
<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario?
  2019-09-29 19:31   ` Henning Reich
@ 2019-09-29 20:46     ` Rene 'Renne' Bartsch, B.Sc. Informatics
  2019-09-30  7:52     ` Nico Schottelius
  1 sibling, 0 replies; 6+ messages in thread
From: Rene 'Renne' Bartsch, B.Sc. Informatics @ 2019-09-29 20:46 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1.1: Type: text/plain, Size: 1496 bytes --]

What happens if the DNS-lookup fails (e.g broken or manipulated DNS)?
In my opinion it should be possible to work with static IPv6 addresses 
and fall back to static IPv4 addresses.

Regards,

Renne


Am 29.09.19 um 21:31 schrieb Henning Reich:
> Should a DNS entry Wirth one
> AAAA record and one A record solve thus problem? So the OS decide the 
> best way to connect?
>
> Ulrich Kalloch <ulli@noc23.de <mailto:ulli@noc23.de>> schrieb am So., 
> 29. Sep. 2019, 16:29:
>
>     Hello @ all
>
>     i am interested in this too.
>
>     Regards
>
>     Ulli
>
>     Am 27.05.19 um 20:10 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics:
>     > Hi,
>     >
>     > is it meanwhile possible to define an IPv6 endpoint AND and an IPv4
>     > endpoint as fallback
>     > in case a road warrior does not get IPv6 connectivity when switching
>     > internet sockets?
>     >
>     > Regards,
>     >
>     > Renne
>     > _______________________________________________
>     > WireGuard mailing list
>     > WireGuard@lists.zx2c4.com <mailto:WireGuard@lists.zx2c4.com>
>     > https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
>     _______________________________________________
>     WireGuard mailing list
>     WireGuard@lists.zx2c4.com <mailto:WireGuard@lists.zx2c4.com>
>     https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

[-- Attachment #1.2: Type: text/html, Size: 3445 bytes --]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    What happens if the DNS-lookup fails (e.g broken or manipulated
    DNS)?<br>
    In my opinion it should be possible to work with static IPv6
    addresses and fall back to static IPv4 addresses.<br>
    <br>
    Regards,<br>
    <br>
    Renne
    <p><br>
    </p>
    <div class="moz-cite-prefix">Am 29.09.19 um 21:31 schrieb Henning
      Reich:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOAVeL0e4JP+T6Z1353UPRmEXL84ZX5MSe+pjTO6xzzn9TB83A@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">Should a DNS entry Wirth one
        <div dir="auto">AAAA record and one A record solve thus problem?
          So the OS decide the best way to connect?</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Ulrich Kalloch &lt;<a
            href="mailto:ulli@noc23.de" moz-do-not-send="true">ulli@noc23.de</a>&gt;
          schrieb am So., 29. Sep. 2019, 16:29:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello @ all<br>
          <br>
          i am interested in this too.<br>
          <br>
          Regards<br>
          <br>
          Ulli<br>
          <br>
          Am 27.05.19 um 20:10 schrieb Rene 'Renne' Bartsch, B.Sc.
          Informatics:<br>
          &gt; Hi,<br>
          &gt;<br>
          &gt; is it meanwhile possible to define an IPv6 endpoint AND
          and an IPv4<br>
          &gt; endpoint as fallback<br>
          &gt; in case a road warrior does not get IPv6 connectivity
          when switching<br>
          &gt; internet sockets?<br>
          &gt;<br>
          &gt; Regards,<br>
          &gt;<br>
          &gt; Renne<br>
          &gt; _______________________________________________<br>
          &gt; WireGuard mailing list<br>
          &gt; <a href="mailto:WireGuard@lists.zx2c4.com"
            target="_blank" rel="noreferrer" moz-do-not-send="true">WireGuard@lists.zx2c4.com</a><br>
          &gt; <a
            href="https://lists.zx2c4.com/mailman/listinfo/wireguard"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
          <br>
          <br>
          _______________________________________________<br>
          WireGuard mailing list<br>
          <a href="mailto:WireGuard@lists.zx2c4.com" target="_blank"
            rel="noreferrer" moz-do-not-send="true">WireGuard@lists.zx2c4.com</a><br>
          <a href="https://lists.zx2c4.com/mailman/listinfo/wireguard"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
WireGuard mailing list
<a class="moz-txt-link-abbreviated" href="mailto:WireGuard@lists.zx2c4.com">WireGuard@lists.zx2c4.com</a>
<a class="moz-txt-link-freetext" href="https://lists.zx2c4.com/mailman/listinfo/wireguard">https://lists.zx2c4.com/mailman/listinfo/wireguard</a>
</pre>
    </blockquote>
  </body>
</html>

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario?
  2019-09-29 19:31   ` Henning Reich
  2019-09-29 20:46     ` Rene 'Renne' Bartsch, B.Sc. Informatics
@ 2019-09-30  7:52     ` Nico Schottelius
  2019-09-30  8:44       ` Kalin KOZHUHAROV
  1 sibling, 1 reply; 6+ messages in thread
From: Nico Schottelius @ 2019-09-30  7:52 UTC (permalink / raw)
  To: Henning Reich; +Cc: WireGuard mailing list


At lookup time this works already. The problem is, if the underlying
network topology changes and you need to reconnect via IPv4, when you
had IPv6 underlying before.

This is the feature that is - afaik- not currently implemented in
wireguard.


Henning Reich <henning.reich@gmail.com> writes:

> Should a DNS entry Wirth one
> AAAA record and one A record solve thus problem? So the OS decide the best
> way to connect?
>
> Ulrich Kalloch <ulli@noc23.de> schrieb am So., 29. Sep. 2019, 16:29:
>
>> Hello @ all
>>
>> i am interested in this too.
>>
>> Regards
>>
>> Ulli
>>
>> Am 27.05.19 um 20:10 schrieb Rene 'Renne' Bartsch, B.Sc. Informatics:
>> > Hi,
>> >
>> > is it meanwhile possible to define an IPv6 endpoint AND and an IPv4
>> > endpoint as fallback
>> > in case a road warrior does not get IPv6 connectivity when switching
>> > internet sockets?
>> >
>> > Regards,
>> >
>> > Renne
>> > _______________________________________________
>> > WireGuard mailing list
>> > WireGuard@lists.zx2c4.com
>> > https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard


--
Your Swiss, Open Source and IPv6 Virtual Machine. Now on www.datacenterlight.ch.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario?
  2019-09-30  7:52     ` Nico Schottelius
@ 2019-09-30  8:44       ` Kalin KOZHUHAROV
  0 siblings, 0 replies; 6+ messages in thread
From: Kalin KOZHUHAROV @ 2019-09-30  8:44 UTC (permalink / raw)
  To: Nico Schottelius; +Cc: WireGuard mailing list

On Mon, Sep 30, 2019 at 9:53 AM Nico Schottelius
<nico.schottelius@ungleich.ch> wrote:
> At lookup time this works already.
>
yup!

> The problem is, if the underlying network topology changes and you need to reconnect via IPv4,
> when you had IPv6 underlying before.
>
Well, "if the underlying network topology changes" it is better to
detect and update things from OS level.
A restart of the wg interface (and using A/AAAA DNS records) works, so
it just needs to be initiated from whoever is taking care of the OS
network reconfiguration.

I would say that is "outside" feature, shouldn't be implemented at wg level.

Or ... actually, if there are other use cases, a more generic
"self-restart-timer" might be helpful. Something along the lines of
persistent-keepalive, but the reverse.
Persistent-keepalive is a packet send to the remote endpoint as a
one-way throw-and-forget packet, there are many valid configurations
that use it only on one of the ways (e.g. A --> B).
Currently, keepalive packets are discarded on the receive end after
updating the stats (e.g.
https://github.com/WireGuard/WireGuard/blob/0d9758d1afe5f812d5ccfcbb4b7c74f42f50318b/src/receive.c#L362
)

/* A packet with length 0 is a keepalive packet */
if (unlikely(!skb->len)) {
  update_rx_stats(peer, message_data_len(0));
  net_dbg_ratelimited("%s: Receiving keepalive packet from peer %llu
(%pISpfsc)\n",
    dev->name, peer->internal_id,
    &peer->endpoint.addr);
  goto packet_processed;
}

I would say a reverse-keepalive (not the best wording) is to try to
reconnect to the peer if it was off-line (no data or KA-packets) for
some predefined time. This can be measured in number of seconds since
last packet received (KA or data). If such a condition is met,
resetting the interface (and thus redoing DNS lookup) may result in
fixing the link disruption caused by topology change.

Again, this may be better implemented outside wireguard since the
timeout is available e.g. via `wg show <INTERFACE> latest-handshakes`
command.

Cheers,
Kalin.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 18:10 IPv6 endpoint AND IPv4 fallback endpoint in roadwarrior scenario? Rene 'Renne' Bartsch, B.Sc. Informatics
2019-09-29 14:27 ` Ulrich Kalloch
2019-09-29 19:31   ` Henning Reich
2019-09-29 20:46     ` Rene 'Renne' Bartsch, B.Sc. Informatics
2019-09-30  7:52     ` Nico Schottelius
2019-09-30  8:44       ` Kalin KOZHUHAROV

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git