• 7
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I would like to reach a docker elasticsearch container over OpenVPN but i don't know how to tell OPenVPN server to port forward 9200 elasticsearch port to the OpenVPN client with the service.

Network schema:

network schema

Scenario:

Openvpn Server - [public AWS Ubuntu ec2 instance with docker openvpn container]

client 1 - [LAN 1] - [192.168.0.14/24] behind NAT Router
Windows Server Host [OpenVpn Client connected OK]
VirtualBox with Ubuntu LTS Guest Docker
Elasticsearch docker container port 9200
     
client 2 - [LAN 2] - [192.168.0.190/24] behind NAT Router
Windows 10 [OpenVpn client connected OK]

Goal:

Avoid to opening ports on LAN 1 Router. Client 2 wants to reach elasticsearch docker container in Windows Server client 1 without connecting to the VPN.

Basically what i want to replicate is a ssh remote tunnel but instead using OpenVpn:

ssh -R 0.0.0.0:9200:localhost:9200 -N user@vpn-server.domain.net

I need some help on what steps i would have to follow to achieve this.

Trending Tags