Hi, I have almost working setup.
Building A LAN net 192.168.1.0 <----> OpenVPN net 192.168.3.0 (via LTE dongle) <----> Building B LAN net 192.168.2.0
when pinging from "A" IP 192.168.2.1 on "B" -> result is OK but when trying to access SSH or web server service on the same, there is timeout.
But I found that i can access SSH and web server on B from A using tun0 device IP 192.168.3.1. I dont understand why.
route A
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 89.103.214.1 0.0.0.0 UG 0 0 0 eth0
89.103.214.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.224 U 0 0 0 eth0
192.168.2.0 192.168.3.2 255.255.255.0 UG 0 0 0 tun0
192.168.3.0 192.168.3.2 255.255.255.224 UG 0 0 0 tun0
192.168.3.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
route B
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.9 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
192.168.9.1 0.0.0.0 255.255.255.255 UH 0 0 0 wan0
192.168.3.0 192.168.3.9 255.255.255.224 UG 0 0 0 tun0
192.168.1.0 192.168.3.9 255.255.255.224 UG 0 0 0 tun0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.9.0 0.0.0.0 255.255.255.0 U 0 0 0 wan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.9.1 0.0.0.0 UG 0 0 0 wan0
i was assuming if PING works correct also routing for services on various ports works the same way..
how to fix that?