WireGuard Archive on lore.kernel.org
 help / color / Atom feed
* Feature Request: Add "include" directive to config file
@ 2019-07-25 22:38 Igor Martinovski
  0 siblings, 0 replies; only message in thread
From: Igor Martinovski @ 2019-07-25 22:38 UTC (permalink / raw)
  To: wireguard

It would be nice if the config parser could support an include directive such that each peer configuration can be kept in a separate file. 

This would allow easier management of a large number of peers. It would also serve as a way of having a friendly name for each peer or peers by the file name.

Sample below:

[Interface]
Address = 10.22.22.2/24
PrivateKey = ...


[Peer]
PublicKey =...
AllowedIPs = 0.0.0.0/0
Endpoint = ...

# append a config file
include='/usr/local/etc/wireguard/family.conf'

# include all files in this directory
include='/usr/local/etc/wireguard/friends/'


-- 
  Igor M.
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-25 22:38 Feature Request: Add "include" directive to config file Igor Martinovski

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 zx2c4-wireguard@archiver.kernel.org
	public-inbox-index wireguard


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