Making a VM Use Host’s VPN Connection

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store