From: Denis Kisselev <denis@dkisselev.net>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: Eric Kuck <eric@bluelinelabs.com>,
WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: "Exclude Private IPs" in Android App
Date: Thu, 5 Jul 2018 19:37:53 +0000 [thread overview]
Message-ID: <CY4PR14MB11411822072C6493B6532569A2400@CY4PR14MB1141.namprd14.prod.outlook.com> (raw)
In-Reply-To: <CAHmME9o1d5+=DnVOwGcTuZcRHYF-b27e4oUbnOThSuZ7WqzL5g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 630 bytes --]
That does work, thanks! Apologies for the derail.
________________________________
From: Jason A. Donenfeld <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 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
[-- Attachment #2: Type: text/html, Size: 1418 bytes --]
prev parent reply other threads:[~2018-07-05 19:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-05 17:46 Jason A. Donenfeld
2018-07-05 19:07 ` Denis Kisselev
2018-07-05 19:24 ` Jason A. Donenfeld
2018-07-05 19:37 ` Denis Kisselev [this message]
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=CY4PR14MB11411822072C6493B6532569A2400@CY4PR14MB1141.namprd14.prod.outlook.com \
--to=denis@dkisselev.net \
--cc=Jason@zx2c4.com \
--cc=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).