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