A
A
Artem Akulov2014-10-27 11:52:07
linux
Artem Akulov, 2014-10-27 11:52:07

How to access a server behind NAT through OpenVPN?

Hello!
Need advice on openvpn.
There is such a House scheme
dae9428e5ed442008861813a6e60da49.png
: striped provider + asus rt-n16 + vpn connection with static ip.
Work: striped provider + zyxel keenetic lite + static ip connection (fix).
What do you need?
Set up openvpn to access your home server (ubuntu 14.04) behind NAT, and from home access your work server (ubuntu 14.04).
What is the best way to configure openvpn server and client?
Home server, server at work or on the router itself?
There is still a computer with pfSense installed at home, can the client lift it on it?
Throw a couple of articles with examples of setting up openvpn.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-10-27
@bk0011m

You have many questions.
How to raise OpenVPN - Google will tell you. A million articles
But how to make it so that you can see another from one network, I'll tell you.
Let's say you need to see the network 192.168.1.0/24 from the network 192.168.1.0/24
Provided that the server is on the network 192.168.1.0/24 in the OpenVPN server settings, write the following:
route 192.168.0.0 255.255.255.0
In the client's ccd file, write:
iroute 192.168.0.0 255.255.255.0

T
tigr1499, 2014-10-27
@tigr1499

help.ubuntu.ru/wiki/openvpn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question