"Exclude Private IPs" in Android App

Denis Kisselev denis at dkisselev.net
Thu Jul 5 21:37:53 CEST 2018


That does work, thanks! Apologies for the derail.
________________________________
From: Jason A. Donenfeld <Jason at zx2c4.com>
Sent: Thursday, July 5, 2018 12:24 PM
To: denis at 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)) != 192.168.1.0
and
10.5.0.1 & (1 << (32 - 24) != 10.5.0.1

Try instead using 192.168.0.0/13 and 10.5.0.0/24.

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20180705/82025ac4/attachment.html>


More information about the WireGuard mailing list