WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Siyuan Ren <netheril96@gmail.com>
To: wireguard@lists.zx2c4.com
Subject: Bug report: WireGuard iOS prioritizes IPv4 over IPv6
Date: Thu, 2 Jan 2020 16:40:53 +0800
Message-ID: <CAPhtH6a+0s0qQirQ4eXNN5vhmXios8Ln0o=j06tb8EZKPNAyKQ@mail.gmail.com> (raw)

I am using WireGuard on my iPhone, and the endpoint is specified by a
domain name that has both AAAA and A record. When I turn on WireGuard
in a network with dual IPv6 and IPv4, I find out that WireGuard
chooses IPv4 by executing "wg" on my server. If I explicitly set the
endpoint as IPv6 address, WireGuard works just fine, so it is not a
misconfiguration on my server.

Most operating systems prioritize IPv6 over IPv4, so it is baffling
why WireGuard iOS goes the other way. More importantly, this is not a
theoretical discussion for me: in my case, IPv6 has better performance
due to less congestion (as fewer people utilize it). I also have an
IKEv2/IPSec VPN configured on the same server, and it performs better
because it always prioritize IPv6.
WireGuard mailing list

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPhtH6a+0s0qQirQ4eXNN5vhmXios8Ln0o=j06tb8EZKPNAyKQ@mail.gmail.com' \
    --to=netheril96@gmail.com \
    --cc=wireguard@lists.zx2c4.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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 \
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:

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