'wg syncconf' and interface addresses
Luis Ressel
aranea at aixah.de
Tue Mar 17 19:34:59 CET 2020
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
More information about the WireGuard
mailing list