T
T
Tucker562010-12-26 19:28:49
openvpn
Tucker56, 2010-12-26 19:28:49

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

3 answer(s)
R
rasa, 2010-12-26
@rasa

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"

D
DAzgluk, 2010-12-26
@DAzgluk

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

A
admin4eg, 2010-12-26
@admin4eg


I think my note will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question