V
V
vlarkanov2018-12-06 10:47:38
linux
vlarkanov, 2018-12-06 10:47:38

OpenVPN: how to connect to your home network through VPS?

Hello!
There is a home network (Mikrotik looks outside - it has a gray non-static IP, behind it are devices - including Proxmox with virtual machines, everything is on the network 192.168.88.0.24). There is a VPS (with a white static IP).
I would like to implement a scheme:
a home network device connects to a VPS via OpenVPN. (I have not yet decided whether it will be Mikrotik or some of the Proxmox virtual machines - you need to understand how best) - when the connection is broken, it automatically reconnects.
Further, from any computer that has access to the Internet, I want to cling to the VPS and get access to the home network.
How it is better to implement it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-12-06
@Tabletko

I did this: I picked up the Miktrotik chr on vps and connected it to my home router via VPN. I set up routes and, clinging to clients via VPN on chr, I get access to my home network.

M
MarvinD, 2018-12-06
@MarvinD

Or you can do this: Mikrotik connects to openvpn on a VPS as a client. At the same time, it receives the address of the gray network on the VPS (for example, 10.20.0.3).
Further on the VPS, simply forward all incoming to the external IP to ports 1701, 500, 4500 respectively. on ports 1701, 500, 4500 Mikrotik address 10.20.0.3. You do not need to connect via VPN to the VPS yourself and lose speed on it. Plus, you don’t need to run any virtual machines on VPS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question