Hello,
I have an openvpn tunnel between two networks A (10.0.1.0) and B (10.0.2.0).
OpenVPN server is running in network A and the OpenVPN client in network B.
When I start the tunnel from network B, I am able to ping all hosts from network A since the routing table is updated automatically when the tunnel is started.
I would like to be able to ping all hosts in network B from network A.
When the tunnel is started, the OpenVPN client gets an IP address 10.0.1.10 from network A and the GW for network B is 10.0.2.1.
The OpenVPN server in network A has IP address 10.0.1.2, and the GW for this network is 10.0.1.1.
In order to be able to access any host from network B using this tunnel I need to update the routing table.
In Linux, I have to do it like this:
route add -net 10.0.2.0 netmask 255.255.255.0 gw 10.0.1.2
In RouterOS it doesn’t work the same way.
I have updated the routing table on the router from network A
/ip route
add comment=“” disabled=no distance=1 dst-address=10.0.2.0/24 gateway=10.0.1.10 pref-src=10.0.1.2 scope=30 target-scope=10
In this case, I am able to ping from network A, the GW of network B wh10.0.2.1, but not being able to ping any host from network B.