Hey,
I am in the process of configuring the my virtual network. Here are my assumptions:
In the server configuration (20.0.0.1) I have, among others, such entries:
Place 1:
Place 2:
Place 1 (Linux Server 192.168.0.10)
Place 2 (Router OpenWRT 192.168.0.1)
Current problems:
What am I doing wrong?
I am in the process of configuring the my virtual network. Here are my assumptions:
Code:
20.0.0.1 Server (Linux)
20.0.0.100-199 Static single clients
20.0.0.20X Static router address of the selected place
20.0.1.X 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
Further network later...
In the server configuration (20.0.0.1) I have, among others, such entries:
Code:
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"
Place 1:
Code:
Local server network (no connection to VPN)
Place 2:
Code:
ifconfig-push 20.0.0.202 255.0.0.0
iroute 20.2.0.0 255.255.0.0
Place 1 (Linux Server 192.168.0.10)
Code:
iptables -t nat -A PREROUTING -d 20.1.0.0/16 -i tun0 -j NETMAP --to 192.168.0.0/16
Place 2 (Router OpenWRT 192.168.0.1)
Code:
iptables -t nat -A PREROUTING -d 20.2.0.0/16 -i tun0 -j NETMAP --to 192.168.0.0/16
Current problems:
- Nobody sees the local server network (20.1.X.X)
- Place 1 (from the server 20.0.0.1) does not see its 20.1.X.X
- Place 1 (from the server 20.0.0.1) does not see windows 20.2.X.X machines (android and linux only)
- Place 2 (20.2.X.X) does not see its own network (the router itself and clients of the local network)
What am I doing wrong?