From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: denis@dkisselev.net Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 7ef23bef for ; Thu, 5 Jul 2018 19:31:10 +0000 (UTC) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-oln040092005084.outbound.protection.outlook.com [40.92.5.84]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id e7adabe5 for ; Thu, 5 Jul 2018 19:31:10 +0000 (UTC) From: Denis Kisselev To: "Jason A. Donenfeld" Subject: Re: "Exclude Private IPs" in Android App Date: Thu, 5 Jul 2018 19:37:53 +0000 Message-ID: References: , In-Reply-To: Content-Type: multipart/alternative; boundary="_000_CY4PR14MB11411822072C6493B6532569A2400CY4PR14MB1141namp_" MIME-Version: 1.0 Cc: Eric Kuck , WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --_000_CY4PR14MB11411822072C6493B6532569A2400CY4PR14MB1141namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable That does work, thanks! Apologies for the derail. ________________________________ From: Jason A. Donenfeld Sent: Thursday, July 5, 2018 12:24 PM To: denis@dkisselev.net Cc: Eric Kuck; WireGuard mailing list Subject: Re: "Exclude Private IPs" in Android App Hi Denis, > I get "Error bringing up tunnel: Bad Address" if I try to set Allowed IP'= s to "10.5.0.1/24,192.168.1.0/13" but it works with "0.0.0.0/0". User error. This fails because: 192.168.1.0 & (1 << (32 - 13)) !=3D 192.168.1.0 and 10.5.0.1 & (1 << (32 - 24) !=3D 10.5.0.1 Try instead using 192.168.0.0/13 and 10.5.0.0/24. Jason --_000_CY4PR14MB11411822072C6493B6532569A2400CY4PR14MB1141namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
That does work, thanks! Apologies for the derail.

From: Jason A. Donenfeld &l= t;Jason@zx2c4.com>
Sent: Thursday, July 5, 2018 12:24 PM
To: denis@dkisselev.net
Cc: Eric Kuck; WireGuard mailing list
Subject: Re: "Exclude Private IPs" in Android App
 
Hi Denis,

> I get "Error bringing up tunnel: Bad Address" if I try to se= t Allowed IP's to "10.5.0.1/24,192.168.1.0/13" but it works with = "0.0.0.0/0".

User error. This fails because:

192.168.1.0 & (1 << (32 - 13)) !=3D 192.168.1.0
and
10.5.0.1 & (1 << (32 - 24) !=3D 10.5.0.1

Try instead using 192.168.0.0/13 and 10.5.0.0/24.

Jason
--_000_CY4PR14MB11411822072C6493B6532569A2400CY4PR14MB1141namp_--