wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: Vincent Wiemann <vincent.wiemann@ironai.com>
To: Roman Mamedov <rm@romanrm.net>, Tomasz Chmielewski <mangoo@wpkg.org>
Cc: wireguard@lists.zx2c4.com
Subject: Re: mesh VPN with wireguard?
Date: Mon, 8 Apr 2019 02:52:24 +0200	[thread overview]
Message-ID: <3d9dc861-a86f-d47d-f892-2dd932d3c66a@ironai.com> (raw)
In-Reply-To: <20190406180155.674f40bb@natsu>

No, it's not easy to create a mesh with WireGuard (if you're referring to real
mesh networks using e.g. Babel).
It's complicated, because in a mesh you don't want to manually assign IP addresses
to the mesh nodes and configure corresponding WireGuard peers.
When roaming comes into play, it becomes even more cumbersome,
as WireGuard has its own routing layer and thus the same subnet can't be assigned to all nodes.
One needs to use a broker script which creates a separate WireGuard interface/instance
for every mesh node automatically so that e.g. Babel can route according to interfaces.
As I don't like this approach and we need it for our mesh network,
I'm working on a layer 2 version of WireGuard.

Regards,

Vincent Wiemann

On 06.04.2019 15:01, Roman Mamedov wrote:
> On Thu, 28 Mar 2019 23:22:45 +0900
> Tomasz Chmielewski <mangoo@wpkg.org> wrote:
> 
>> Does Wireguard allow to set up mesh VPN with "relative ease"?
>>
>> Say, we have 10 servers with public IPs, we want them all to create a 
>> VPN network with private subnet 10.11.12.0/24, and have all 10 servers 
>> communicate directly with each other.
>> Then a year later, expand it to 100 servers.
> 
> Sure.
> 
> But note that in this case unlike Tinc you cannot have some servers exit to
> the outside world via some other servers (with AllowedIP 0.0.0.0/0). There has
> to be just one such exit point per a WG network.
> 
> If it's purely for communication between servers, then of course no issue.
> 
>> Something in the line of: https://www.tinc-vpn.org/
> 
> Another limitation compared to Tinc is that Tinc will autoheal the partially
> disconnected mesh and will have some nodes forwarding for the others, in case
> direct communication between some of them gets cut (e.g. due to a peering or
> routing issue on the underlying Internet -- this saved me a few times).
> 
> WG will do no such thing, and node-to-node communication working will depend
> on both nodes always having direct connectivity to each other.
> 
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

  reply	other threads:[~2019-05-06 20:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-28 14:22 mesh VPN with wireguard? Tomasz Chmielewski
2019-04-06 13:01 ` Roman Mamedov
2019-04-08  0:52   ` Vincent Wiemann [this message]
2019-04-07  9:35 ` StarBrilliant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d9dc861-a86f-d47d-f892-2dd932d3c66a@ironai.com \
    --to=vincent.wiemann@ironai.com \
    --cc=mangoo@wpkg.org \
    --cc=rm@romanrm.net \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).