Page 1 of 1

OpenVPN connection, the opposite

Posted: Wed Sep 28, 2022 6:48 pm
by whitetiger-it
I need some advice for this type of use.

Usually the PC named A activates a connection with the OpenVPN server named B, then through the VPN, the PC A is able to connect to the PC named C.

I need to do the opposite.
PC A connects to server B, but once the VPN is active, PC C will be able to connect to PC A.

I can't figure out how to make this connection and how to set up the network.

Re: OpenVPN connection, the opposite

Posted: Wed Sep 28, 2022 7:07 pm
by Pippin
Hi,

Try to describe the setup more accurately, network wise.
Is PC C behind the OpenVPN server?

If I understand your question correctly start reading here first:
https://community.openvpn.net/openvpn/w ... rversubnet

Re: OpenVPN connection, the opposite

Posted: Thu Sep 29, 2022 10:40 am
by whitetiger-it
Pippin wrote:
Wed Sep 28, 2022 7:07 pm
Try to describe the setup more accurately, network wise.
Is PC C behind the OpenVPN server?
Now I read your link.

About the network.

Code: Select all

   PC_C ------------------- Server_B  - - - - - - - - VPN - - - - - - - - PC_A
192.168.100.50           192.168.100.11       Tunnel 10.1.1.0        192.168.200.100 (its IP in its Network)
             Remote LAN                                              192.168.100.100 (Its IP in Remote Network)
PC_A calls Server_B to start the VPN
With the VPN started, PC_C connects to PC_A

Re: OpenVPN connection, the opposite

Posted: Thu Sep 29, 2022 1:13 pm
by Pippin
192.168.100.100 (Its IP in Remote Network)
Looks like you want tap (layer 2).
Do you really need that or would tun (layer 3) suffice?
Normally it is advised against so I never bothered looking into it.

If you really need layer 3 someone will probably chime in as I cannot help you with that.

If you already have a working setup then post some info on that:
viewtopic.php?t=22603