Re: add/remove a peer

2018-03-26 Thread ST
On Mon, 2018-03-26 at 20:46 +0200, Luis Ressel wrote: > Hello, > > Low-level tools such as wg aren't the right place for the "automagic" > features you're suggesting. wg should have simple, bugproof code and > behave reliably and predictably so that it can serve as a solid > foundation for all

Re: add/remove a peer

2018-03-26 Thread Luis Ressel
Hello, Low-level tools such as wg aren't the right place for the "automagic" features you're suggesting. wg should have simple, bugproof code and behave reliably and predictably so that it can serve as a solid foundation for all sorts of high-level scripts. Of course, this doesn't mean your

Re: add/remove a peer

2018-03-26 Thread ST
On Sun, 2018-03-25 at 21:17 +0200, Kalin KOZHUHAROV wrote: > On Sun, Mar 25, 2018 at 8:10 PM, ST 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

Re: add/remove a peer

2018-03-25 Thread Roman Mamedov
On Sun, 25 Mar 2018 21:17:35 +0200 Kalin KOZHUHAROV wrote: > 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

Re: add/remove a peer

2018-03-25 Thread Kalin KOZHUHAROV
On Sun, Mar 25, 2018 at 8:10 PM, ST 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

Re: add/remove a peer

2018-03-25 Thread ST
On Mon, 2018-03-26 at 00:43 +0800, Wang Jian wrote: > 2018-03-25 3:32 GMT+08:00 ST : > > Hello, > > > > I'm learning WireGuard and have a question regarding adding/removing a > > peer. > > > > Is there something like: > > > > 1) wg add peer ABCDEF... allowed-ips 192.168.88.0/24

Re: add/remove a peer

2018-03-25 Thread ST
On Mon, 2018-03-26 at 00:43 +0800, Wang Jian wrote: > 2018-03-25 3:32 GMT+08:00 ST : > > Hello, > > > > I'm learning WireGuard and have a question regarding adding/removing a > > peer. > > > > Is there something like: > > > > 1) wg add peer ABCDEF... allowed-ips 192.168.88.0/24

Re: add/remove a peer

2018-03-25 Thread Wang Jian
2018-03-25 3:32 GMT+08:00 ST : > Hello, > > I'm learning WireGuard and have a question regarding adding/removing a > peer. > > Is there something like: > > 1) wg add peer ABCDEF... allowed-ips 192.168.88.0/24 endpoint > 209.202.254.14:8172 > > 2) similar for removing clients: >

add/remove a peer

2018-03-24 Thread ST
Hello, I'm learning WireGuard and have a question regarding adding/removing a peer. Is there something like: 1) wg add peer ABCDEF... allowed-ips 192.168.88.0/24 endpoint 209.202.254.14:8172 and by default, if some(/all) values are not provided - WG will generate them on its own. E.g. if IP is