I’ve just had this one with a pptp vpn – one network was accessible over it but another behind it wasnt so I had to add a static route.
First you need to know the remote ip address of the vpn connection:
sabrina:table peter$ ifconfig ppp0 ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1444 inet 192.168.1.3 --> 192.168.1.1 netmask 0xffffff00
Here the address we want is the first one, 192.168.1.3
Now to create the route
sabrina:table peter$ sudo route add -net 192l168.2.0/24 192.168.1.3 Password: add net 192.168.2.0: gateway 192.168.1.3
Thats it, now that route will work as long as the vpn connection stays up. When you disconnect it will then be removed & you’ll have to add it again later.