[PATCH] wg-quick linux: Add strip-and-eval cmd to extract keys from PostUp

Jason A. Donenfeld Jason at zx2c4.com
Tue Oct 13 00:31:32 CEST 2020


On Mon, Oct 12, 2020 at 9:54 PM Robin Schneider <ypid at riseup.net> wrote:
>
> On 2020-10-12 17:01, Jason A. Donenfeld wrote:
> > On Sat, Oct 10, 2020 at 5:58 PM Robin Schneider <ypid at riseup.net> wrote:
> >> The proposed workaround has two issues:
> >>
> >> 1. It does not allow to replace the PrivateKey or PresharedKey using the `syncconf` now from the config file which is what I want to have.
> >> 2. It only outputs the PrivateKey and not the PresharedKey for each peer. Sure, this could be done with a for loop.
> >
> > Sounds like something easily achievable with scripting.
> >
>
> So you suggest to write a 3party script instead of putting it into wg-quick? Because a inline script with support for all of this wound not exactly be a one-liner :) Could such a script be included in the wireguard-tools?

Yes, write your own script for this kind of custom merging of
PostUp/PreUp state modification, instead of trying to parse bash with
a regex as this commit does.


More information about the WireGuard mailing list