Re: wireguard confusion
- In reply to: Kyle Evans : "Re: wireguard confusion"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Oct 2024 23:15:06 UTC
On 09/10/2024 01:54, Kyle Evans wrote: > On 10/8/24 19:48, Polarian wrote: >> It would be nice if WG(4) could load configs natively without needing a >> script to do so, in the same format as wg-quick does (look for >> /etc/wireguard/<interface>.conf) [...] > wg(8) can read that style of configuration, but wg-quick(8) adds some > niceties on top of that that it won't understand. I think DNS is the > main one, which I wouldn't think would be too hard to parse out. a handy way to do this is using /etc/start_if.$interface: # cat /etc/start_if.wg0 #! /bin/sh /usr/bin/wg setconf wg0 /etc/wg/wg0.conf i've been using this a while now and have not run into any problems with it. presumably it would not be too difficult to add an rc.conf knob for this, if anyone cared to do it.