Include directive to support "conf.d/*" and the like

Jason A. Donenfeld Jason at zx2c4.com
Sat Apr 14 03:47:57 CEST 2018


Hi Roman,

This also came up in another thread I was replying to earlier tonight.
While one way indeed is to have an 'include' directive, it seems
simple enough to just do something like:

$ wg setconf wg0 <(cat /etc/wireguard/mysite.conf.d/*.conf)

And then you can have various fragments in there like:

000-interface.conf
001-peergroupA.conf
001-peergroupB.conf
001-peergroupC.conf

And so forth. Would this be an acceptable solution for you?

Jason


More information about the WireGuard mailing list