Development discussion of WireGuard
 help / color / mirror / Atom feed
* Adding comments for a peer through wg set
@ 2020-03-17  1:52 Sukhbir Singh
  2020-03-17 18:18 ` Barry
  0 siblings, 1 reply; 2+ messages in thread
From: Sukhbir Singh @ 2020-03-17  1:52 UTC (permalink / raw)
  To: wireguard

Hi,

When adding a new peer through `wg set', it seems like there is no way
to include comments in the parameters. To solve this, the hack I use
involves making sure SaveConfig is set in wg0.conf, adding the peer,
`wg-quick save' and then appending the desired comment to the end of the
wg0.conf file. This helps me add the peer without taking down the tunnel
and also saves it to the config.

Is there a better way? Note that I tried adding the comments to the
different parameters (using "#") but it didn't work as expected.

What's the reason for adding comments? So as to keep some notes about
the peer I added, like "[Peer] ... # laptop config". So if there is a
better solution for key management, please do share.

Thanks.

-- 
Sukhbir

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17  1:52 Adding comments for a peer through wg set Sukhbir Singh
2020-03-17 18:18 ` Barry

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