Good day.
There are about ten servers. Each server can have up to 255 subscribers. And the servers are united in a common network, but there are several that connect through a single server. That is, one server sees another only through the third. The issue of protecting the connection is not important, it may not be at all.
I need to create a network between subscribers and servers, so that I can ping another subscriber from one subscriber. All ip addresses are static.
I had an idea to raise the vpn network on the servers, register the servers of their neighbors, and connect each subscriber to his server. The choice fell on openvpn, it was possible to register neighbors on the server, but addressing clients there does not allow connecting 255 users (there are pairs [1,2], [5,6]).
After that, I chose l2tpd, there you can register a server with 255 subscribers (192.168.0.1, 192.168.0.2, 192.168.0.3, etc.), but I cannot find the connection of neighboring servers with their network.
Ideally, it should be that one server has a network of 192.168.0.0/24, the second is 192.168.1.0/24, the third is 192.168.2.0/24, etc. And addressing in vpn should not intersect with ip addressing. Those. if I try to ping 192.168.1.2 with 192.168.0.1, then if I select the tun0 interface (for example), I will ping via vpn, and if I choose the eth0 interface, then over the normal network.
Is there a ready implementation of such an idea? Better if open source?