WireGuard Archive on lore.kernel.org
 help / color / Atom feed
From: Andrey Kupreychik <foxel@quickfox.ru>
To: wireguard@lists.zx2c4.com
Subject: Bug report: WireGuard client not setting underlying network on Android Pie
Date: Mon, 13 Jan 2020 12:00:11 +0700
Message-ID: <CA+hAYV=67S+3d0g+eQ9AZHok=AdvmBsd2XpOFSEcJ=aozjK9PA@mail.gmail.com> (raw)

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

My Android phone running wireguard VPN threats it as a metered connection
and does not do anything it should do on Wi-Fi only

What I found is this discussion
https://issuetracker.google.com/issues/114309459
I've looked thru the GitHub mirror code and found no evidance of
setUnderlyingNetworks called in WireGuard client code.

As seen in the issue tracker link above, it's needed in order to take
advantage of this (
https://developer.android.com/about/versions/pie/android-9.0-changes-all#network-capabilities-vpn)
behavior change. As described in the issue tracker link, this prevents Pie
devices from properly using unmetered WiFi networks.

-- 
Andrey Kupreychik <foxel@quickfox.ru>
http://foxel.quickfox.ru

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

<div dir="ltr"><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM" style="margin:0px;padding:0px 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:&quot;Noto Sans&quot;,Arial,sans-serif;vertical-align:baseline;color:rgb(26,26,27)">My Android phone running wireguard VPN threats it as a metered connection and does not do anything it should do on Wi-Fi only</p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM" style="margin:0px;padding:0px 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:&quot;Noto Sans&quot;,Arial,sans-serif;vertical-align:baseline;color:rgb(26,26,27)">What I found is this discussion <a href="https://issuetracker.google.com/issues/114309459" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener noreferrer" target="_blank" style="font:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">https://issuetracker.google.com/issues/114309459</a><br>I&#39;ve looked thru the GitHub mirror code and found no evidance of setUnderlyingNetworks called in WireGuard client code. </p><p class="gmail-_1qeIAgB0cPwnLhDF9XSiJM" style="margin:0px;padding:0px 0px 0.25em;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:14px;line-height:inherit;font-family:&quot;Noto Sans&quot;,Arial,sans-serif;vertical-align:baseline;color:rgb(26,26,27)">As seen in the issue tracker link above, it&#39;s needed in order to take advantage of this (<a href="https://developer.android.com/about/versions/pie/android-9.0-changes-all#network-capabilities-vpn" class="gmail-_3t5uN8xUmg0TOwRCOGQEcU" rel="noopener noreferrer" target="_blank" style="font:inherit;margin:0px;padding:0px;border:0px;vertical-align:baseline">https://developer.android.com/about/versions/pie/android-9.0-changes-all#network-capabilities-vpn</a>) behavior change. As described in the issue tracker link, this prevents Pie devices from properly using unmetered WiFi networks.</p><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Andrey Kupreychik &lt;<a href="mailto:foxel@quickfox.ru" target="_blank">foxel@quickfox.ru</a>&gt;<br><a href="http://foxel.quickfox.ru" target="_blank">http://foxel.quickfox.ru</a></div></div></div>

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

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

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13  5:00 Andrey Kupreychik [this message]
2020-01-15 18:29 ` Jason A. Donenfeld

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to='CA+hAYV=67S+3d0g+eQ9AZHok=AdvmBsd2XpOFSEcJ=aozjK9PA@mail.gmail.com' \
    --to=foxel@quickfox.ru \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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 \
		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