OpenVPN: how to configure routing between networks?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
45 views
VDS c has Ubuntu server on which raised OpenVPN. It is always connected to your work computer from the office and home laptop.

How to make so that from the internal home network you can directly reach out to the internal office network?

That would be the work that the client can reach the server from the office c home laptop. Now to work from home, I go to RDP my work computer and the work. But I feel that something can be podrastaet and work fine with the laptop.

In the office network mask of 192.168.1.0/255.255.255.0.
Home network mask 192.168.2.0/255.255.255.0
Mask OpenVPN network 10.0.0.0/255.255.255.0
by | 45 views

3 Answers

0 like 0 dislike
To "see" the network 192.168.1.0 with the server in the server.conf add:
push "route 192.168.1.0 255.255.255.0"
by
0 like 0 dislike
If you pick up the OpenVPN on your router:
1. Add in the OpenVPN another user
2. Do not forget to specify the network behind the OpenVPN client (home)
3. Do not forget to enable routing between clients on the server (client-to-client)
If you raise just OpenVPN on a laptop, you only need the 1st and 3rd paragraph
\r
There is a good Wiki Article
by
0 like 0 dislike
by

Related questions

0 like 0 dislike
5 answers
0 like 0 dislike
7 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,842 users