Development discussion of WireGuard
 help / color / mirror / Atom feed
From: David Steinn Geirsson <david@isnic.is>
To: wireguard@lists.zx2c4.com
Subject: 'wg syncconf' and interface addresses
Date: Tue, 17 Mar 2020 16:13:34 +0000 (GMT)	[thread overview]
Message-ID: <582744509.1200952.1584461614719.JavaMail.zimbra@sirona.isnic.is> (raw)

Hi,

In the wg(8) man page, under the section CONFIGURATION FILE FORMAT, is a list of allowed keys in the config. For the Interface section, it lists the valid keys as PrivateKey, ListenPort and FwMark. However, wireguard configuration files commonly have an Address key in there as well, and it is used by wg-quick to configure the wg interface IP address.

The problem is that such a configuration will fail when used with the wg tool. For instance, it is not possible to use 'wg syncconf' with it, as it will complain about an invalid configuration.

Is Address a valid key for WireGuard configuration, and if so should the wg tool not parse and apply those changes as well?

We are hitting this issue as we have a WireGuard server on FreeBSD. I'm trying to extend the FreeBSD package rc script to support graceful reload, and ended up having to remove the Address key from the configuration and configuring the IP address as part of the rc.d script. But I would prefer if 'wg syncconf' could handle that as well.

Best regards,
Davíð

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 16:13 David Steinn Geirsson [this message]
2020-03-17 18:34 ` Luis Ressel
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=582744509.1200952.1584461614719.JavaMail.zimbra@sirona.isnic.is \
    --to=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).