wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: denis@dkisselev.net
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 21:24:23 +0200	[thread overview]
Message-ID: <CAHmME9o1d5+=DnVOwGcTuZcRHYF-b27e4oUbnOThSuZ7WqzL5g@mail.gmail.com> (raw)
In-Reply-To: <CY4PR14MB11417B558CCB088D0D2BD605A2400@CY4PR14MB1141.namprd14.prod.outlook.com>

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

  reply	other threads:[~2018-07-05 19:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05 17:46 "Exclude Private IPs" in Android App Jason A. Donenfeld
2018-07-05 19:07 ` Denis Kisselev
2018-07-05 19:24   ` Jason A. Donenfeld [this message]
2018-07-05 19:37     ` Denis Kisselev

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='CAHmME9o1d5+=DnVOwGcTuZcRHYF-b27e4oUbnOThSuZ7WqzL5g@mail.gmail.com' \
    --to=jason@zx2c4.com \
    --cc=denis@dkisselev.net \
    --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).