Route traffic from OpenVPN Server through Client

I have a VPN server running on a droplet, and a router is connected as a client to the server. I want to route IP traffic to a subnet behind this router. So I try to create the following static route:

The server is running an OpenVPN Server on the following subnet: The router (client) is connected with the IP: The subnet behind this router is:

So I try to create the following static route using:

route add -net netmask gw

SIOCADDRT: No such process

  • or -

ip route add via dev tun0

RTNETLINK answers: No such process

Is it even possible what I’m trying to achieve, or how can I achieve the same result without having to create multiple site-to-site VPN’s for each client?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Further information of what I was trying to achieve: <br> <br> <br>The issue has been solved using this information: <br>