You have routing problem enabling OpenVPN. Lets assume you're connected to Internet through router with local IP 192.168.0.1 (IP of router in local network) and your SSH-server (you're connecting to) IP is 999.999.999.999. Then add the route:
ip route add 999.999.999.999/32 via 192.168.0.1
If you have no success, just delete the rule:
ip route del 999.999.999.999/32 via 192.168.0.1
and try this:
ip rule add from 192.168.0.12 table 128
ip route add table 128 to 192.168.0.0/24 dev eth0
ip route add table 128 default via 192.168.0.1
Where 192.168.0.12 is your local IP address, 192.168.0.0/24 - subnet of your local IP, 192.168.0.1 - IP of your router in the local network, eth0 - your network interface name.
If the problem hasn't gone away afterwards, delete rules replacing add
with del
and just tell more in comments about your network connections and configuration - as much as possible.
P.S. The rules/routes above are temporary - until next reboot. To make it persistent, just add to your /etc/network/interfaces
corresponding lines with leading up
, for example:
up ip route add 999.999.999.999/32 via 192.168.0.1
Read this: http://www.networkinghowtos.com/howto/adding-persistent-static-routes-on-ubuntu/