Hi,
i try to access a LAN behind a OpenVPN Client. My setup looks like this:
I've got the LAN 192.168.11.0/24 with a OpenVPN Client on an OpenWRT 192.168.11.2 / 192.168.21.13
The LAN's gateway has static route 192.168.21.0/24 via 192.168.11.2
The OpenVPN Server is a VPS 192.168.21.1.
The "other end" is a windows machine 192.168.21.10
I am trying to reach 192.168.11.10 from windows machine 192.168.21.10
192.168.11.10 -- 192.168.11.2/192.168.21.13 -- 192.168.21.1 -- 192.168.21.10
What did i do?
Windows Machine:
openvpn config: route 192.168.11.0 255.255.255.0
OpenVPN Server:
route 192.168.11.0 255.255.255.0
push "route 192.168.11.0 255.255.255.0"
push "topology subnet"
topology subnet
add static route 192.168.11.0/24 via 192.168.21.13
OpenWRT VPN Client:
option route '192.168.11.0 255.255.255.0'
What is working, what is not?
Windows machine can access OpenWRT, no problem.
Windows machine has routing entry 192.168.11.0/24 via 192.168.21.1
But when i do a tracert from windows machine to 192.168.11.10, it stops at the OpenVPN server:
C:\Users\alex>tracert 192.168.11.2
Routenverfolgung zu 192.168.11.2 über maximal 30 Hops
1 35 ms 37 ms 39 ms 192.168.21.1
2 * * * Zeitüberschreitung der Anforderung.
3 * * * Zeitüberschreitung der Anforderung.
And a tracert from LAN Gateway to 192.169.21.13 :
root@OpenWrt:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 br-wan
192.168.0.0 * 255.255.255.0 U 0 0 0 br-wan
192.168.11.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.21.0 192.168.11.2 255.255.255.0 UG 0 0 0 br-lan
root@OpenWrt:~# traceroute 192.168.21.10
traceroute to 192.168.21.10 (192.168.21.10), 30 hops max, 38 byte packets
1 192.168.11.2 (192.168.11.2) 1.216 ms 1.156 ms 1.252 ms
2 * * *
3 *^C
So i guess there is something wrong... Any hints?
Thanks!