Getting OpenVPN to communicate with outside private subnet at client side

This is where we can discuss what we would like to see added or changed in OpenVPN.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rafaeldang
OpenVpn Newbie
Posts: 1
Joined: Wed Jul 28, 2021 9:04 am

Getting OpenVPN to communicate with outside private subnet at client side

Post by rafaeldang » Wed Jul 28, 2021 9:27 am

Hello everyone,
First I am sorry for any grammar mistake in this post because English is not my mother language.
Second I am not very good at networking so I will try to describe my problem as detailed as possible.
Finally, my problem.
I have two computers, located in two different locations, two different IP ranges, two different internet service providers.
===
The network structure at location 1 is as below.
ISP 1 (dynamic public IP) -> Router 1 (192.168.47.0/24, DHCP on) -> Computer 1 and a non-computer equipment (Equipment 1) which has ethernet capability.
The router IP is 192.168.47.1, Computer 1 is 192.168.47.100 and the equipment is 192.168.47.101.
===
The network structure at location 2 is as below.
ISP 2 (static public IP) -> Router 2 (192.168.11.0/24, DHCP on) -> COM2.
The router IP is 192.168.11.1 and Computer 2 is 192.168.11.100.
===
The purpose of using OpenVPN is to connect Computer 1 to Computer 2 (as if they were in the same private subnet), and use Computer 2 (with preinstalled software) to remote control Equipment 1.
I can access Router 2 admin page, but not Router 1 so I cannot open port on Router 1 to setup OpenVPN server there. If I could, everything would be so easy, I didn't have to ask all of you.
That leaves me no choice, I have to setup OpenVPN Server on Computer 2, OpenVPN Client on Computer 1. No matter how I tried (routed or bridged), also searched almost everywhere possible, I couldn't make Computer 2 ping Equipment 1. To be specific, as in routed scenario, I need Computer 2 (192.168.11.100, 10.8.0.1) to connect to Computer 1 (192.168.47.100, 10.8.0.2, this is easy) to control Equipment 1 (192.168.47.101, my problem lies here).
I know that we can expand the OpenVPN capability to get it to communicate with outside private subnet either server side or client side.
Hope someone can help me soon.
Thanks so much.

Post Reply