WireGuard Archive on lore.kernel.org
 help / color / 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
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 index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 16:13 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

WireGuard Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ https://lore.kernel.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/com.zx2c4.lists.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git