There are 2 subnets:

A: 192.168.0.0/255.255.255.0

B: 192.168.0.0/255.255.255.0

In the subnet A installed OpenVPN server with the settings of 10.8.0.0/255.255.255.0

Clients 1-4 are connected to it. Client 4 is physically completely on another network (it has 2 network cards, one is wlan0 and the other is tun0).

In subnet B there is a computer 5, which is not connected to the VPN and it is not possible to install a VPN on it.

It is necessary that computers 1-3 could see computer 5 and all its services. How can this be organized?

4 computer on Ubuntu, I truly understand that you just need to configure the network bridge between wlan0 and tun0 or will it be enough? enter image description here

    1 answer 1

    Quite a trivial solution.

    Subnet B is doing 192.168.1.0/24, and on the VPN server we indicate the routes that at 192.168.1.0/24 we go through client 4

    Here is the corresponding article in the https://community.openvpn.net/openvpn/wiki/RoutedLans documentation

    Regarding the settings of PC 4, I recommend reading the article http://help.ubuntu.ru/wiki/sharing_internet namely the section "Distribution of the Internet in a local network"

    • the main problem is that I cannot change subnet B in any way, only my equipment is located there. I read about ProxyARP but I cannot understand how to implement it correctly with OpenVPN. - MoHcTpUk Nov.