wg-ip, a tool to assign automatic ip addresses to wireguard interfaces
jens
jens at viisauksena.de
Thu Apr 12 14:54:23 CEST 2018
i once had written a script for some openWRT (lede) Routers for Freifunk,
first of all, take ipV6 inside your tunnel, and mix localnet V6
Addresses with the MAC - this way you get a very distinct pair of V6
Address and Key
This assumes that a Server has fixed ip and key.
keyline in Setup is this
uci set wireguard.wireguard.ownip=fdf1::$(cat
/sys/class/net/eth0/address|awk 'BEGIN{FS=":"}{print $1$2":"$3$4":"$5$6}')
found here, if you want to look around a bit
https://github.com/viisauksena/gluon-mesh-wireguard/blob/cb77788ee49fe5b81789d01eed49aa30e971dd8e/files/lib/gluon/upgrade/405-wireguard
maybe this brings some new hints-- the gluon wireguard project has
actually stopped.
greetz
--
make the world nicer, please use PGP encryption
More information about the WireGuard
mailing list