Hi. I was hoping for some help - just confirmation it’s possible and pointing in the right direction would be a good start.
I have VPN connection (OpenVPN) on a GNU/Linux VM running on a Windows host. The VM is in Hyper-V. I usually connect to it via RDP. I want to be able to share its VPN connection with the host. Specifically some SSH connections but also web-browsing for certain domains. I’d rather not put the host on the VPN for a few reasons (not least of which I’ve had bad experiences of OpenVPN on Windows).
My theory would be that I create two virtual network ports on this VM and then share one of them. And then somehow tell the Windows host to route certain traffic through that VM. The VM being on the VPN (this part already works), I should then be able to connect to the sites and machines via the VM from the host.
Is this possible? Is this sensible? I’ve searched but it’s hard to wade through all the blog posts talking about sharing a laptop’s WiFi connection. The VM currently connects to the outside world via the host’s ethernet port but directly to the router where it gets its own IP address; rather than using NAT on the host.
Any advice is much appreciated. I have a rare bit of free time today and am hoping to figure this out.