Development discussion of WireGuard
 help / color / mirror / Atom feed
* [wireguard-apple] [iOS] 464xlat networks and On-demand roaming issue
@ 2021-10-03 22:15 Kristof Mattei
  2021-10-09  6:43 ` Jérémy Prego
  0 siblings, 1 reply; 2+ messages in thread
From: Kristof Mattei @ 2021-10-03 22:15 UTC (permalink / raw)
  To: wireguard

I have an issue with the wireguard-apple on 464xlat connecting to a DNS endpoint with both an A and an AAAA record.

The following line: https://git.zx2c4.com/wireguard-apple/tree/Sources/WireGuardKit/DNSResolver.swift#n81 causes WireGuard to prefer the IPv4 address.

Is there any reason why WireGuard prefers the IPv4 address? 

Why is this causing trouble? But this is what happens: 

When connecting to IPv6 the IPv4 address gets mapped to an IPv6 address which then acts as an IPv6->IPv4 proxy. The IP looks like [2607:7700:0:1a::17f3:f750]:51820.

This causes issues when roaming from my home WiFi (on which WireGuard is disabled) to cellular (on which WireGuard is set to on-Demand).

The initial connection that is set up for some reason does not work. There are reports about this on Reddit, e.g. https://www.reddit.com/r/WireGuard/comments/nk2o7m/anyone_got_it_working_with_tmobile_lte/

I can fix it by setting the endpoint to the actual IPv6 address, and then it works like a charm, but that fails when I connect to a non-IPv6 network.

Thanks,
Kristof


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

* Re: [wireguard-apple] [iOS] 464xlat networks and On-demand roaming issue
  2021-10-03 22:15 [wireguard-apple] [iOS] 464xlat networks and On-demand roaming issue Kristof Mattei
@ 2021-10-09  6:43 ` Jérémy Prego
  0 siblings, 0 replies; 2+ messages in thread
From: Jérémy Prego @ 2021-10-09  6:43 UTC (permalink / raw)
  To: wireguard

Hello,

i have the exact same request for android, see my thread here:
https://lists.zx2c4.com/pipermail/wireguard/2021-September/007140.html

I regret that it is not configurable and that it does not use the 
default way of doing the system

Jerem

Le 04/10/2021 à 00:15, Kristof Mattei a écrit :
> I have an issue with the wireguard-apple on 464xlat connecting to a DNS endpoint with both an A and an AAAA record.
>
> The following line: https://git.zx2c4.com/wireguard-apple/tree/Sources/WireGuardKit/DNSResolver.swift#n81 causes WireGuard to prefer the IPv4 address.
>
> Is there any reason why WireGuard prefers the IPv4 address?
>
> Why is this causing trouble? But this is what happens:
>
> When connecting to IPv6 the IPv4 address gets mapped to an IPv6 address which then acts as an IPv6->IPv4 proxy. The IP looks like [2607:7700:0:1a::17f3:f750]:51820.
>
> This causes issues when roaming from my home WiFi (on which WireGuard is disabled) to cellular (on which WireGuard is set to on-Demand).
>
> The initial connection that is set up for some reason does not work. There are reports about this on Reddit, e.g. https://www.reddit.com/r/WireGuard/comments/nk2o7m/anyone_got_it_working_with_tmobile_lte/
>
> I can fix it by setting the endpoint to the actual IPv6 address, and then it works like a charm, but that fails when I connect to a non-IPv6 network.
>
> Thanks,
> Kristof
>


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

end of thread, other threads:[~2021-10-09  6:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-03 22:15 [wireguard-apple] [iOS] 464xlat networks and On-demand roaming issue Kristof Mattei
2021-10-09  6:43 ` Jérémy Prego

Development discussion of WireGuard

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.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://inbox.vuxu.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


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