M
M
Maxim Tarabrin2018-09-18 16:00:44
System administration
Maxim Tarabrin, 2018-09-18 16:00:44

How to forward a VPN connection to a virtual machine?

Friends, there is a host machine on Windows and a Centos 7 virtual machine deployed through VirtualBox.
I need the virtual machine to be able to access VPN resources. Connecting to VPN using OpenVPN.
Virtual machine network settings:
5ba0f679819ea797656224.png5ba0f68052137880835592.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Radjah, 2018-09-18
@Radjah

Raise a VPN connection in a virtual machine, for example. If it is possible to make a pair of keys for a virtual machine.
Make a virtual network, register routes in the virtual machine to the resources behind the VPN, make a masquerading for the virtual network on the host system. There are usually addresses 192.168.56.0/24 or whatever you configure in the "Host Network Manager".
You can generally raise a proxy on the host system, if you need to skip TCP.

D
dennzo, 2018-09-18
@dennzo

like no special obstacles ... nat is enabled,
if the virtual machine is the calling part (calier), then it should work for nat.
NAT - fundamental? You can make a bridge = bridge - and then the dependence is generally removed, the
virtual machine will receive an address and a gate from the nearest DHCP, like an independent machine.
It remains to set up a client (or server, without Nata it will be easier) on a virtual machine.
We check the IP configuration, study the connection logs, try to scan the necessary ports, does the
firewall allow it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question