On Mon, Oct 12, 2020 at 9:54 PM Robin Schneider <[email protected]> wrote: > > On 2020-10-12 17:01, Jason A. Donenfeld wrote: > > On Sat, Oct 10, 2020 at 5:58 PM Robin Schneider <[email protected]> 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.
