'wg syncconf' and interface addresses
David Steinn Geirsson
david at isnic.is
Wed Mar 18 09:21:27 CET 2020
----- Original Message -----
> From: "Luis Ressel" <aranea at aixah.de>
> To: "David Steinn Geirsson" <david at isnic.is>
> Cc: "wireguard" <wireguard at lists.zx2c4.com>
> Sent: Tuesday, March 17, 2020 6:34:59 PM
> Subject: Re: 'wg syncconf' and interface addresses
> 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)
Thanks, I did not know about 'wg-quick strip'. I was thinking of some sed tricks
to remove these keys but that's much better.
>
> Cheers,
> Luis
More information about the WireGuard
mailing list