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.

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My journey as an Optinaut at Optimizely

Alibaba Cloud Launches HiTSDB to Accelerate Migration of IoT Devices to the Cloud

8 Reasons Why You Should Blog as a Developer

Backup and Recovery Solution for Disk-based Data Volumes in Kubernetes Clusters

Mysterious Kotlin ‘parameter non-null exception’

Developer Tutorial: Object Transitions and Rotations

5 Highly Practical NumPy Operations

#Let’sReviewCodeComplete by McConnell (Part 2)

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
Yiğit İrez

Yiğit İrez

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

More from Medium

Hosting a static website With S3 and CloudFront

Perform Hashing in Computer Forensics

How Cobalt Strike became a potent tool for the Attackers

How to Create an EC2 Instance?