Answer the question
In order to leave comments, you need to log in
OpenVPN: how to set up routing between networks?
There is a VDS with Ubuntu server on which OpenVPN is raised. A work computer from the office and a home laptop are always connected to it.
How to make it so that from the internal home network you can directly reach the internal office network?
It is necessary that the working client could reach the server from the office from the home laptop. Now, in order to work from home, I go to my work computer via RDP and work from it. But I feel that something can be adjusted and work normally from a laptop.
At the office, the netmask is 192.168.1.0/255.255.255.0.
At home netmask 192.168.2.0/255.255.255.0 Netmask
OpenVPN 10.0.0.0/255.255.255.0
Answer the question
In order to leave comments, you need to log in
To "see" the network 192.168.1.0 behind the server in server.conf add:
push "route 192.168.1.0 255.255.255.0"
In case you are setting up OpenVPN on your router:
1. Add another user
to OpenVPN 2. Don't forget to specify OpenVPN networks behind the client (home)
3. Don't forget to enable routing between clients on the server (client-to-client)
In case you set up OpenVPN just on a laptop, you only need the 1st and 3rd points
There is a good Wiki Article
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question