wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Eric Kuck <eric@bluelinelabs.com>
To: wireguard@lists.zx2c4.com
Subject: Android app whitelist/blacklist feature
Date: Mon, 2 Jul 2018 13:35:54 -0700	[thread overview]
Message-ID: <CAMj-8hS_bJado86_1V9hCyW=+-jO6BDnk1WnZE0EQoDembViEw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2081 bytes --]

I’d like to make a contribution to the Android app, but would like to know
if this is something that would actually get merged before I go through all
the effort. What I’d like to do is add an exceptions list (apps that will
not be routed through the Wireguard interface). The rationale for this
being that some apps simply don’t work with Wireguard. For example, the use
of a Wireguard VPN with custom DNS breaks WearOS watches due to Google
hardcoding the use of the 8.8.8.8 DNS server. Another example is that
Netflix doesn’t work when routed through my VPN server since they know it’s
a DigitalOcean instance, but works fine without the VPN enabled. Another
example is that there’s often no reason to route data-heavy video apps
through your VPN server. Rather than turning the VPN on my phone off to use
my wearable or to watch something on my phone, I’d like to be able to opt
those apps out of using the VPN at all. I’m sure there are many more
examples of apps that simply don’t need to go through a VPN, as no
confidential information is passed through them.

My proposal is to add another Fragment that’s just a list of all apps
installed on the phone with check boxes next to them. If the checkbox is
checked, that app will be routed through Wireguard. If not, it will be free
to bypass the VPN. Naturally, all apps will be default to being checked.
This is an easy change to make for the GoBackend implementation
using VpnService.Builder.addDisallowedApplication(<packageName>), but would
likely be pretty complicated to add to WgQuickBackend. Perhaps this is
something that would only be possible for GoBackend users.

Any thoughts on this? I have everything working locally by simply adding
these two hardcoded lines to GoBackend.java:

            builder.addDisallowedApplication("com.netflix.mediaclient");

builder.addDisallowedApplication("com.google.android.wearable.app”);

but I would like to make this more configurable and available to the rest
of Wireguard users if you’re agreeable to it. Thanks.

[-- Attachment #2: Type: text/html, Size: 2851 bytes --]

             reply	other threads:[~2018-07-02 20:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-02 20:35 Eric Kuck [this message]
2018-07-02 21:43 ` Android app whitelist/blacklist feature Samuel Holland
2018-07-03  0:22   ` Eric Kuck
2018-07-03  2:21     ` Jason A. Donenfeld
2018-07-03  2:27       ` Eric Kuck
2018-07-03  2:31         ` Jason A. Donenfeld
2018-07-03 18:12           ` Samuel Holland
2018-07-03 18:17             ` Jason A. Donenfeld
2018-07-04 22:19               ` Eric Kuck
2018-07-05 13:23                 ` Jason A. Donenfeld
2018-07-05 13:24                   ` Jason A. Donenfeld

Reply instructions:

You may reply publicly 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='CAMj-8hS_bJado86_1V9hCyW=+-jO6BDnk1WnZE0EQoDembViEw@mail.gmail.com' \
    --to=eric@bluelinelabs.com \
    --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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).