Did you get that from your OpenVPN provider?
If your default gateway is the openvpn gateway then once that goes down you will likely lose general network connectivity. However it does look like your add a route from your pc section should restore local access, but this is what I use to have remote access via my ISP IP while still being behind a VPN
If your default gateway is the openvpn gateway then once that goes down you will likely lose general network connectivity. However it does look like your add a route from your pc section should restore local access, but this is what I use to have remote access via my ISP IP while still being behind a VPN
Code:
MAINIP=192.168.0.120
GATEWAYIP=192.168.0.1
SUBNET=192.168.0.0/24
sudo ip rule add from $MAINIP table 128
sudo ip route add table 128 to $SUBNET dev eth0
sudo ip route add table 128 default via $GATEWAYIP