From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932226AbcGAOrh (ORCPT ); Fri, 1 Jul 2016 10:47:37 -0400 Received: from b.ns.miles-group.at ([95.130.255.144]:44725 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752540AbcGAOrg (ORCPT ); Fri, 1 Jul 2016 10:47:36 -0400 Subject: Re: [RFC] WireGuard: next generation secure network tunnel To: "Jason A. Donenfeld" References: Cc: David Miller , Netdev , linux-crypto@vger.kernel.org, LKML From: Richard Weinberger Message-ID: <5776827F.8010306@nod.at> Date: Fri, 1 Jul 2016 16:47:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jason, Am 01.07.2016 um 16:25 schrieb Jason A. Donenfeld: > Hi Richard, > > On Fri, Jul 1, 2016 at 1:42 PM, Richard Weinberger > wrote: >> So every logical tunnel will allocate a new net device? >> Doesn't this scale badly? I have ipsec alike setups >> with many, many road warriors in mind. > > No, this isn't the case. Each net device has multiple peers. Check out > the example config on the website, pasted here for convenience: > >> [Interface] >> PrivateKey = yAnz5TF+lXXJte14tji3zlMNq+hd2rYUIgJBgB3fBmk= >> ListenPort = 41414 >> >> [Peer] >> PublicKey = xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg= >> AllowedIPs = 10.192.122.3/32, 10.192.124.1/24 >> >> [Peer] >> PublicKey = TrMvSoP4jYQlY6RIzBgbssQqY3vxI2Pi+y71lOWWXX0= >> AllowedIPs = 10.192.122.4/32, 192.168.0.0/16 >> >> [Peer] >> PublicKey = gN65BkIKy1eCE9pP1wdc8ROUtkHLF2PfAqYdyYBz6EA= >> AllowedIPs = 10.10.10.230/32 > > If that file is example.conf, you could set up a single device like this: > > $ ip link add dev wg0 type wireguard > $ wg setconf wg0 example.conf > > That single netdev is now configured to communicate with several peers. > > I hope this clarifies things. Let me know if you have further questions. Yes. Makes sense. :-) Thanks, //richard