Is there a way to create a peer to peer virtual private between a small number of nodes (4) where every packet goes directly to its destination ?
Every node would have a public address and will be hosting some VMs with addresses on the private network. Every node will be able to connect directly to the other nodes throw their public address.
The need be would be:
- Uncentered network (no single point of failure)
- A packet goes directly to its destination (node to node)
- It should be a single network (no routing)
I can think of some solutions, but they don't check those three points:
The first solution (S1 in the image) would be, create a bridged VPN on a node, and connect the other nodes to it. The two points are not respected. Indeed, there is a single point of failure (the VPN server), and a packet that goes from a VPN client to another will have to go threw the VPN server (point 2).
Another solution (S2 in the image) would be to make a bridge between each node (with a VPN client - server), and enable the spanning tree to clear the loops. Here, we respect the first rule as STP will reshape the network in case of a node failure, but we still don't respect point 2 as the spanning tree protocol will cut some links.
For the third (S3 in the image) solution, it would be possible to create 3 different private network (for example, 10.1.0.0/16 for node 1, 10.2.0.0/16 for node 2... and route packet between the servers using node to node link. This solution will satisfy the need be 1 and 2, but, of course, not the 3.
In fact, I would like all node to act as a distributed switch, by sending packet only to the node that holds the destination IP.
Is there a solution that would match those three points ?