Ok I have an OpenVPN server A which hosts the range 10.8.0.0/24 and an OpenVPN server B that hosts 10.7.0.0/24. Server A is also a client of server B.
This is the configuration of the tun adapters of both servers.
OpenVPN Server A
inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0 inet 10.7.0.6 peer 10.7.0.5/32 scope global tun1
OpenVPN Server B
inet 10.7.0.1 peer 10.7.0.2/32 scope global tun0
Clients of OpenVPN A get all their traffic routed through Server A and out through its WAN interface. However, one IP range 192.168.0.0/24 can only be reached through the VPN of server B. I have set up a route that passes all 192.168.0.0/24 through the tun interface that connects server A to server B.
ip route add 192.168.0.0/24 dev tun1
I can ping 192.168.0.0/24 fine on server A BUT I cannot ping or reach that range when I'm on an OpenVPN client of server A. I can ping the IP of the tun address 10.7.0.6 but not 192.168.0.0/24. Can anyone shed some light into why this is happening?