OpenVPN connection, the opposite

Need help configuring your VPN? Just post here and you'll get that help.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
whitetiger-it
OpenVpn Newbie
Posts: 2
Joined: Wed Sep 28, 2022 6:41 pm

OpenVPN connection, the opposite

Post by whitetiger-it » Wed Sep 28, 2022 6:48 pm

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.

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN connection, the opposite

Post by Pippin » Wed Sep 28, 2022 7:07 pm

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
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

whitetiger-it
OpenVpn Newbie
Posts: 2
Joined: Wed Sep 28, 2022 6:41 pm

Re: OpenVPN connection, the opposite

Post by whitetiger-it » Thu Sep 29, 2022 10:40 am

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

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: OpenVPN connection, the opposite

Post by Pippin » Thu Sep 29, 2022 1:13 pm

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
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

Post Reply