* [Question or feature request] Support multiple peer config file using something like /etc/wireguard/conf.d
@ 2022-07-19 21:36 Quentin Vallin
2022-08-23 16:20 ` Roman Mamedov
0 siblings, 1 reply; 2+ messages in thread
From: Quentin Vallin @ 2022-07-19 21:36 UTC (permalink / raw)
To: wireguard
Hi,
I'm trying to separate my peer configuration and automate it.
I know that I can use the post hook PostUp = wg addconf /path/to/my/file
It would be easier to have a special path were wireguard can merge the config file together, like /etc/wireguard/conf.d/<interface_name>/<files>.conf.
I don't find anything in the doc. Do you have a clue if that feature exists? Or if that feature is on the backlog?
Thank you for your amazing tool !
Quentin.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Question or feature request] Support multiple peer config file using something like /etc/wireguard/conf.d
2022-07-19 21:36 [Question or feature request] Support multiple peer config file using something like /etc/wireguard/conf.d Quentin Vallin
@ 2022-08-23 16:20 ` Roman Mamedov
0 siblings, 0 replies; 2+ messages in thread
From: Roman Mamedov @ 2022-08-23 16:20 UTC (permalink / raw)
To: Quentin Vallin; +Cc: wireguard
Hello,
On Tue, 19 Jul 2022 21:36:57 +0000
Quentin Vallin <Quentin.Vallin@anuvu.com> wrote:
> I'm trying to separate my peer configuration and automate it.
>
> I know that I can use the post hook PostUp = wg addconf /path/to/my/file
>
> It would be easier to have a special path were wireguard can merge the config file together, like /etc/wireguard/conf.d/<interface_name>/<files>.conf.
Personally I use my own shell script that concatenates pieces of the config
into a single file and runs wg on that. The same script also then handles
addresses, routes and such.
If you're doing any sort of non-trivial setup, you'd likely have a similar
wrapper on top of WG, and then it is easy to also make your own "conf.d".
--
With respect,
Roman
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-23 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 21:36 [Question or feature request] Support multiple peer config file using something like /etc/wireguard/conf.d Quentin Vallin
2022-08-23 16:20 ` Roman Mamedov
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).