How to create a vpn site-site with openvpn docker and VPS?

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
OpenVpn Newbie
Posts: 1
Joined: Thu Feb 13, 2020 12:54 pm

How to create a vpn site-site with openvpn docker and VPS?

Post by Poltsie » Thu Feb 13, 2020 12:56 pm

First a little background information:

For our customers I am trying to create a network monitor service with libreNMS (running on a VPS). With libre I want to monitor network devices on the LAN.

So my intention is to run a openvpn server in a docker container on the VPS. I do this because the VPS is running a libreNMS configuration. ( and let a raspberry pi (client) connect to the openvpn server. I want to create for every customer a client that connects to the vps.

Now the problem:

I got the openvpn server running and the client running. From the client I get a succesfull connection, that is good. But from there I want to create a route back to the client (site-site). But from there I dont understand how to do this. I tried to follow the following articles, without succes: ... in-detail/ ... er-subnet/

Normaly I create site-site connections from router to router with sonicwall devices, but the vps is hosted elsewhere with one IP address on one interface. It does not have a internal network.

What I want:

I want to create a route from the VPS to the lan subnet of the client.

* The openvpn server has for example IP address: (one WAN IP)
* The client has for example WAN IP address: for example LAN subnet

Post Reply