I have a Ubuntu server hosted on Digital Ocean and used as a VPN and through it I would like to access my other servers there over the local network (Private Network). But I am unable to access other servers from my PC over the VPN (Request timed out on 10.8.0.1 = VPN server).
Route table on the VPN server:
10default _gateway 0.80.0.0/24 dev tun0 proto kernel scope link src UG 0 0 0 ens3
10.8.0.10 0.0.0.0 255.255.255.0 U 0 0 0 tun0
10.19.0.0/16 dev ens3 proto kernel scope link src0.0.0.0 10 255.19255.0.70 U 0 0 0 ens3
10.19.0.0/16 via 10.19.0.1 dev ens3 proto static 255.255.0.0 UG 0 0 0 ens3
10.135.0.0/16 dev ens4 proto kernel scope link0.0.0.0 src 10 255.135255.40.480 U 0 0 0 ens4
10.135.0.0/16 via 10.135.0.1 dev ens4 proto static 255.255.0.0 UG 0 0 0 ens4
7.7.7.0/20 dev ens3 proto kernel scope link src 7 0.70.70.70 255.255.240.0 U 0 0 0 ens3
tun0 is VPN network
ens3 is to the internet
ens4 is LAN
/My public IPPublic net masked as 7.7.7.70/
So I would like to route all traffic going from 10.8.0.0/24 to 10.135.0.0/16 over ens4 (10.135.4.48) and all other traffic through ens3.
Do I have to change routing on my local machine?