wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* 'wg syncconf' and interface addresses
@ 2020-03-17 16:13 David Steinn Geirsson
  2020-03-17 18:34 ` Luis Ressel
  0 siblings, 1 reply; 3+ messages in thread
From: David Steinn Geirsson @ 2020-03-17 16:13 UTC (permalink / raw)
  To: wireguard

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íð

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-19  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 16:13 'wg syncconf' and interface addresses David Steinn Geirsson
2020-03-17 18:34 ` Luis Ressel
2020-03-18  8:21   ` David Steinn Geirsson

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).