To route your network to a gateway use
route ADD "network" MASK "subnet mask" "gateway ip" or to make route gone when you rebooted
route -p ADD "network" MASK "subnet mask" "gateway ip"
For example, if you connected to OpenVPN, by default configuration you’ll be connecting to 10.8.0.1 gateway but say your local gateway which is 192.168.0.1 have route to another network that locate at 10.27.8.X, then you have to add route for it to know that it have to connect to 192.168.0.1 gateway instead of 10.8.0.1/24 VPN gateway
So what you do is
route ADD "10.27.8.0" MASK "255.255.255.0" "192.168.0.1"
for Mac people use this
sudo route -n add -net 10.27.8.0/16 192.168.0.1
DONE! you now can connect to 10.27.8.X while connecting to the VPN
please note that I’m not very familiar with networking and this might not be the correct statement about route, please refer to this if you don’t understand my post lol