wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Luis Ressel <aranea@aixah.de>
To: David Steinn Geirsson <david@isnic.is>
Cc: wireguard@lists.zx2c4.com
Subject: Re: 'wg syncconf' and interface addresses
Date: Tue, 17 Mar 2020 18:34:59 +0000	[thread overview]
Message-ID: <20200317183459.4m4zlie3w3ga2lrv@vega> (raw)
In-Reply-To: <582744509.1200952.1584461614719.JavaMail.zimbra@sirona.isnic.is>

On Tue, Mar 17, 2020 at 04:13:34PM +0000, David Steinn Geirsson wrote:
> Is Address a valid key for WireGuard configuration, and if so should the wg tool not parse and apply those changes as well?

The wg-quick script uses an extension of the wg config file format, with
config keys such as Address which aren't recognized by wg.

If you wish to use a config file with both wg-quick and wg, you can use
the "wg-quick strip" verb to remove wg-quick options from the config
file. In some shells such as bash, this can be done quite comfortably:
$ wg syncconf wg0 <(wg-quick strip wg0)

Cheers,
Luis

  reply	other threads:[~2020-03-17 18:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 16:13 'wg syncconf' and interface addresses David Steinn Geirsson
2020-03-17 18:34 ` Luis Ressel [this message]
2020-03-18  8:21   ` David Steinn Geirsson

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=20200317183459.4m4zlie3w3ga2lrv@vega \
    --to=aranea@aixah.de \
    --cc=david@isnic.is \
    --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).