Hey,
I am in the process of configuring the my virtual network. At the moment, clients and the server see each other. Here are my assumptions:
20.0.0.1 Server (Linux)
20.0.0.10-254 Static single clients
20.0.1.1-254 DHCP clients
20.1.X.X Local network 192.168.0.1 in place 1
20.2.X.X Local network 192.168.0.1 in place 2
20.3.X.X Local network 192.168.0.1 in place 3
In the server configuration (20.0.0.1) I have, among others, such entries:
dev tun
topology subnet
ifconfig 20.0.0.1 255.0.0.0
client-config-dir /path/to/dir
push "route 20.0.0.0 255.255.255.0"
push "route 20.0.1.0 255.255.255.0"
push "route 20.1.0.0 255.255.0.0"
push "route 20.2.0.0 255.255.0.0"
push "route 20.3.0.0 255.255.0.0"
client-config-dir for place 1
ifconfig-push 20.1.0.1 255.252.0.0
iroute 20.1.0.0 255.255.0.0
client-config-dir for place 2
ifconfig-push 20.2.0.1 255.252.0.0
iroute 20.2.0.0 255.255.0.0
client-config-dir for place 3
ifconfig-push 20.3.0.1 255.252.0.0
iroute 20.3.0.0 255.255.0.0
On the example of place 2 (20.2.0.1) I have the following local network:
192.168.0.1 TL-MR3420 with OpenWRT as client VPN Server
192.168.0.11 Client 1
192.168.0.12 Client 2
192.168.0.13 Client 3
I would like each of the three 192.168.X.X local networks to be visible in the tunnel at 20.NR_PLACE.X.X
For example:
Place 1 - Client 1 - 192.168.0.11 as 20.1.0.11
Place 1 - Client 2 - 192.168.0.12 as 20.1.0.12
Place 2 - Client 1 - 192.168.0.11 as 20.2.0.11
Place 2 - Client 2 - 192.168.0.12 as 20.2.0.12
Place 3 - Client 1 - 192.168.0.11 as 20.3.0.11
Place 3 - Client 2 - 192.168.0.12 as 20.3.0.12
It seems to me that I should perform address routing on every VPN client in these three places.
How can I solve my problem?