I have a VPS, which I'd like to hook up with OpenVPN to another server.
The connection works well, but once the vpn tunnel is established, I loose my ssh connection to the VPS.
If the ip I'm remoting the VPS from is w.x.y.z
route add -net w.x.0.0/16 gw 192.0.2.1
prior to connecting leaves me in control of the server after the connection has been established, but then no traffic is sent over the vpn at all.
I would like to use the vpn for a number of ports, and "not the vpn" for a number of other ports.
What's the easiest/best way to solve this?