From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: jens@viisauksena.de Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 0f65e81f for ; Thu, 12 Apr 2018 12:40:23 +0000 (UTC) Received: from viisauksena.de (rauberhaus.de [178.254.39.111]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 745bb20f for ; Thu, 12 Apr 2018 12:40:23 +0000 (UTC) Received: from [192.168.0.185] (pD9E1505C.dip0.t-ipconnect.de [217.225.80.92]) by rauberhaus.de (Postfix) with ESMTPSA id 0B5C42148C for ; Thu, 12 Apr 2018 14:54:24 +0200 (CEST) Subject: Re: wg-ip, a tool to assign automatic ip addresses to wireguard interfaces To: WireGuard mailing list References: From: jens Message-ID: <2836e61a-cdd0-721c-cbfc-df5ef6c91bc6@viisauksena.de> Date: Thu, 12 Apr 2018 14:54:23 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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