Connecting 2 networks using OpenWrt and OpenVPN

hey
i have 2 networks that i have connected to eachother using a mikrotik router acting as an ovpn in a datacenter
something like this

now i can ssh from 10.10.10.3 to 10.10.10.2 which is openwrt and then ssh from openwrt to 192.168.100.0/24 network nodes
but what im trying to achieve is to ssh from 192.168.1.10 to 192.168.100.50
i tried ip route from my main linux machine (PC1) but that didnt work
i even tried to do this from 10.10.10.3
ip route 192.168.100.0/24 via 10.10.10.2
but that didnt work
i tried it the other way around using this command on openwrt router

ip route add 192.168.1.6/32 via 10.10.10.2
note that 192.168.1.6 is the ip of the raspberry pi connected to the vpn
then tried pinging it from 192.168.100.50 which also failed
is there anyway i can make this work using currently available equipment?

Route into a Open-VPN-Client Subnet - #2 by vgaetera

1 Like

All of your networks at all of your sites should have different IPv4 subnet ranges. If you have overlapping networks it can make routing ambiguous, and in any case it is confusing.

The machine that is an end of the VPN tunnel (i.e. it is running OpenVPN for the site) needs to have a route to and from the LAN machine that is to be contacted. If it goes through a router the firewall needs to be open.