Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Ronan Lucio <ronanlucio@gmail.com>
To: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: Best practices for adding hosts
Date: Mon, 21 Dec 2020 14:55:02 +1300	[thread overview]
Message-ID: <CAF-5T9Gv-UXVniXGh4Vr9bX=uOOED2pQHqF7hJdP=bbOOvHU0Q@mail.gmail.com> (raw)
In-Reply-To: <K12715-4.1608513012@spamhaus.org>

Hi Andrew,

> /usr/bin/wg syncconf wg0 <(wg-quick strip wg0)

worked smoothly
Thank you so much

Ronan

On Mon, Dec 21, 2020 at 2:10 PM Andrew Fried <afried@spamteq.com> wrote:
>
> Try running the command under bash, eg:
>
> #!/bin/bash
> /usr/bin/wg syncconf wg0 <(wg-quick strip wg0)
>
> Andrew
>
> On 12/20/20 7:51 PM, Ronan Lucio wrote:
>
> Hi Domi,
>
> Right, it's not on the latest version. Actually, I used to run the
> system version, so I can set it to automate unattended-updated.
> Anyway, no problem updating it... ;-)
>
> I tried executing it manually and got this:
>
>     $ sudo wg syncconf wg0 <(exec /usr/bin/wg-quick strip wg0)>
>     -bash: syntax error near unexpected token `newline'
>
> Any clue?
>
> Thank you,
> Ronan
>
> On Mon, Dec 21, 2020 at 1:01 PM Tomcsanyi, Domonkos <domi@tomcsanyi.net> wrote:
>
> Hi Ronan,
>
> There should be a reload option, check the changelog from August this year:
>
> https://lists.zx2c4.com/pipermail/wireguard/2020-August/005780.html
>
> Maybe you are not running the latest version? In that case just take the command from the patch and run it manually.
>
> Kind regards,
> Domi
>
>
> 21.12.2020 dátummal, 0:11 időpontban Ronan Lucio <ronanlucio@gmail.com> írta:
>
> Hi,
>
> I have a wireguard VPN server, and it's working gracefully, thanks for that.
> I'd like to ask you how can I add more peers without having to restart wg.
>
> So far I use to add new peers to the "wg0.conf" file and execute a
> "systemctl restart wg-quick@wg0".
> The problem is all peers go down when I do it, and there's no
> "systemctl reload" option.
>
> If possible, I'd like to keep all configs on config files, so it's
> possible to automate configuration via ansible.
>
> Thanks,
> Ronan

  parent reply	other threads:[~2020-12-21  1:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-20 23:09 Ronan Lucio
2020-12-21  0:24 ` Reto
     [not found] ` <9B2F58B7-92A3-425E-9B28-DF715B5B5503@tomcsanyi.net>
2020-12-21  0:51   ` Ronan Lucio
     [not found]     ` <K12715-4.1608513012@spamhaus.org>
2020-12-21  1:55       ` Ronan Lucio [this message]
2020-12-25  6:43     ` Adrian Ho

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='CAF-5T9Gv-UXVniXGh4Vr9bX=uOOED2pQHqF7hJdP=bbOOvHU0Q@mail.gmail.com' \
    --to=ronanlucio@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).