Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2024 00:15:06 +0100
From:      Lexi Winter <lexi@le-fay.org>
To:        questions@freebsd.org
Subject:   Re: wireguard confusion
Message-ID:  <05b34bb9-527e-4e4e-b2cf-77a2ca0903fc@le-fay.org>
In-Reply-To: <9f0e1fff-daf5-4dd5-a972-1ed73618533a@FreeBSD.org>
References:  <uhVHXogbBovqSApS@aceecat.org> <29044f1d-f835-459d-8e1c-17832580b5d9@FreeBSD.org> <20241008024304.5ff138a9@Hydrogen> <4e50caf7-dd15-4c8c-9a69-b2f7dbee8b46@FreeBSD.org> <LNBY3x9Zd3CziuJD@aceecat.org> <e46b67b0-a00a-4df1-8a0d-d62d05c08c9b@FreeBSD.org> <20241009014801.60e084f9@Hydrogen> <9f0e1fff-daf5-4dd5-a972-1ed73618533a@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05b34bb9-527e-4e4e-b2cf-77a2ca0903fc>