Assume that I have an OpenVPN server S and some number of OpenVPN clients C1, ..., Cn connecting to the server in a subnet topology configuration using tun interfaces. Each client Ci is in its own local subnet Ni, and some of them should route packets from their subnet Ni to the subnets behind the other clients.
The straight forward solution would be to set up static addresses for the clients' the tun interfaces and static routes from each subnet to every other subnets.
Is there a way to achieve this without any of the server or clients having any prior knowledge about the other clients' subnets? That is, each client Ci should only know its own local subnet Ni and push it to the server S on tunnel establishment. The server should then push a corresponding route to all other clients Cj, whether they are already connected or connect later on.