From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c522353f for ; Tue, 3 Jul 2018 18:10:56 +0000 (UTC) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 08cb48cc for ; Tue, 3 Jul 2018 18:10:56 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 46ad714f for ; Tue, 3 Jul 2018 18:09:42 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id ff8319b1 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Tue, 3 Jul 2018 18:09:42 +0000 (UTC) Received: by mail-oi0-f51.google.com with SMTP id k12-v6so5684523oiw.8 for ; Tue, 03 Jul 2018 11:17:24 -0700 (PDT) MIME-Version: 1.0 References: <72472182-2f17-ff6d-f76c-f0fa6c98d45e@sholland.org> In-Reply-To: <72472182-2f17-ff6d-f76c-f0fa6c98d45e@sholland.org> From: "Jason A. Donenfeld" Date: Tue, 3 Jul 2018 20:17:11 +0200 Message-ID: Subject: Re: Android app whitelist/blacklist feature To: Samuel Holland Content-Type: text/plain; charset="UTF-8" Cc: Eric Kuck , WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jul 3, 2018 at 8:12 PM Samuel Holland wrote: > Right, trying to make it a global setting requires either some sort of > out-of-band way to pass the information to wg-quick, or rewriting the > configuration file every time the tunnel is brought up. > > Since from netd's point of view, this is a per-network setting anyway, I agree > it makes sense to configure it per-tunnel. ExemptedApplications works as a > configuration key, though I prefer ExcludedApplications--the application isn't > just not required to use the tunnel, it's not allowed to use the tunnel. > > In that case, here are my UI suggestions: > - Add a button in the editor that switches to a fragment or pops up a Dialog > similar to a MultiSelectListPreference. > - For consistency, checked means excluded -- everything defaults to unchecked. > - The package names of excluded apps are put in the > com.wireguard.config.Interface, and wg-quick handles package name to uid > translation. > > How does that sound? All of that sounds right-on to me, and I think you're right that ExcludedApplications is the better key. (This also provides a good basis for later adding a "ExcludeLocalNetwork" option.) Eric's git access should be all setup now, so we can watch the commits coming on in.