Making a VM Use Host’s VPN Connection

Yiğit İrez
Feb 24, 2022

This sounds suspiciously specific yes but I needed a VM to connect to my computer’s VPN. Suprisingly difficult to find around so I decided to post it here in a compressed form.

Get your favorite VM setup and add this network to it,

notice the paravirtualized network thing

Next, find your ip;

Finally, add this to your port forwarding rules. Basically, you connect host 2522 port to guest 22.

This should be about it.

yay

Thanks for reading and hope this was/will be useful to you. See you next time.

--

--

Yiğit İrez

Let’s talk devops, automation and architectures, everyday, all day long. https://www.linkedin.com/in/yigitirez/