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 = VPN server).
Route table on the VPN server:

default         _gateway         UG    0      0        0 ens3   U     0      0        0 tun0     U     0      0        0 ens3     UG    0      0        0 ens3     U     0      0        0 ens4     UG    0      0        0 ens4   U     0      0        0 ens3

tun0 is VPN network
ens3 is to the internet
ens4 is LAN
/Public net masked as

So I would like to route all traffic going from to over ens4 ( and all other traffic through ens3.

Do I have to change routing on my local machine?

1 Answer 1


Solved by amending ufw config at /etc/ufw/before.rules:

# nat Table rules

# Forward traffic from eth1 through eth0.

  • Please accept your own answer so the question gets closed. Thanks. Jan 18, 2019 at 16:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .