Question
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:
10.50.60.1/24
The router (client) is connected with the IP:
10.50.60.6
The subnet behind this router is:
192.168.14.0/24
So I try to create the following static route using:
# route add -net 192.168.14.0 netmask 255.255.255.0 gw 10.50.60.6
SIOCADDRT: No such process
- or -
# ip route add 192.168.14.0/24 via 10.50.60.6 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?
Add a comment
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.
×