How to set up a private network connection through a VPN server

14.12.2022
Complexity
2 min.
276

To connect to a private network, you need the following:

  • a private network (private VLAN)
  • an ordered and installed VPN server.


Connect an additional interface to a VPN server in a private network.

Configure the interface in the Netplan configuration file, and check the private network connection:

  • find and open the Netplan configuration file with any editor convenient for you (1)
  • add your personal data „Interface name”, „IP address”, „Mask”, then check the syntax (netplan generate), if there are no errors, apply the changes (netplan apply) (2)
  • check the status of the new interface (ifconfig ens7) (3)
  • check access to an available host from our private network (4).




After completing the above settings, write the routes for the client and check the private network connection:

  • click on the „Edit routes” button and add the required network (1,2)
  • save (3).




Check the connection of the client to the local network.

After these settings, the client will get access to the local network through the OVPN server.

Was this information helpful?
Yes   No
3 
By continuing to use this website you will be agreeing to the website Acceptable Use Policy and the Use of Cookies while using the website and our services. Please also read our Privacy Policy under which, to the extent stated, you consent to the processing of your personal data.