Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Kalin KOZHUHAROV <me.kalin@gmail.com>
To: ST <smntov@gmail.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: add/remove a peer
Date: Sun, 25 Mar 2018 21:17:35 +0200	[thread overview]
Message-ID: <CAKXLc7e1cJ6E=KCMshe_=EOtnwTa-YpRwPe2RwW8vNkj3qzONw@mail.gmail.com> (raw)
In-Reply-To: <1522001437.2044.11.camel@gmail.com>

On Sun, Mar 25, 2018 at 8:10 PM, ST <smntov@gmail.com> wrote:
> PS: if you have over 100 peers it is a bit a headache to find a free IP
> when adding a new peer. There is no reason WG could not scan through IPs
> it already knows and choose a free one, assign it in its own config file
> and print it out for passing to the remote peer...
>
There is a reason, at least one, good one - it is called simplicity.
It is also hard to work when you are running out of disk space or
memory; do you expect WG to solve that for you?
Simply put, IP addressing schemes are not a part of WG, neither a requirement.
There are many ways to use WG and "assign random, free IP address and
send to a new peer" is too specific of a use case.

May be you can cobble up something with a DHCP server that cares about
certain address range?
Or a simple flat-file dB and a script that does it for you?

What happens when you run out of addresses?
How do you re-assign an IP address to a new peer?
...
Those are questions widely outside WG, IMHO.

Cheers,
Kalin.

  reply	other threads:[~2018-03-25 19:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-24 19:32 ST
2018-03-25 16:43 ` Wang Jian
2018-03-25 17:57   ` ST
2018-03-25 18:10   ` ST
2018-03-25 19:17     ` Kalin KOZHUHAROV [this message]
2018-03-25 19:42       ` Roman Mamedov
2018-03-26 15:13       ` ST
2018-03-26 18:46 ` Luis Ressel
2018-03-26 19:48   ` ST

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='CAKXLc7e1cJ6E=KCMshe_=EOtnwTa-YpRwPe2RwW8vNkj3qzONw@mail.gmail.com' \
    --to=me.kalin@gmail.com \
    --cc=smntov@gmail.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).