VPN on Windows 10 Virtual Machine on Azure
I have a Windows 10 Virtual Machine on Azure. I have added a VPN to connect to my company's server from the virtual machine. When I turn the VPN on, I lose my connection to the virtual machine. How can I fix this issue?
Not Monitored
-
KapilAnanth-MSFT 47,476 Reputation points • Microsoft Employee
2023-10-25T04:36:32.69+00:00 Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
- Are you using Azure's VPN Gateway for P2S Connection?
- Or
- Are you using a 3rd party VPN Provider to connect to your OnPrem network.
Cheers,
Kapil
-
Meysam Cheramin 0 Reputation points
2023-10-25T05:23:34.1+00:00 @KapilAnanth-MSFT I am using a 3rd party VPN Provider to connect to the server of my company. My company is the provider of this VPN.
-
Meysam Cheramin 0 Reputation points
2023-10-25T05:30:01.0333333+00:00 @KapilAnanth-MSFT To add (install) this third-party VPN to my Windows 10 virtual machine I took the following steps: Windows Settings -> Network & Internet -> VPN -> Add a VPN Connection
-
KapilAnanth-MSFT 47,476 Reputation points • Microsoft Employee
2023-10-25T05:37:33.7866667+00:00 In that case, I believe your 3rd Party VPN Provider is breaking the internet connection to your Azure VM.
- Are you connecting to this VM via RDP via Internet?
- In this case, I think when you enable your VPN , this routes all traffic , 0.0.0.0/0 to your OnPrem and thus breaking the RDP via Internet
- I would recommend you to work with the VPN provider and see if that is the case.
Also,
- You can connect to a differentVM in the same VNET as this VM and try to RDP to the VM via it's private IP
- And after this, connect to the VPN and see if the RDP via Private IP breaks or not.
Cheers,
Kapil.
- Are you connecting to this VM via RDP via Internet?
-
Meysam Cheramin 0 Reputation points
2023-10-25T06:05:29.0933333+00:00 @KapilAnanth-MSFT yes, I am connecting to this VM via RDP via Internet. How can I connect to a differentVM in the same VNET as this VM and try to RDP to the VM via it's private IP? How can I get a private IP?
-
KapilAnanth-MSFT 47,476 Reputation points • Microsoft Employee
2023-10-25T06:10:42.4233333+00:00 - You should contact your Azure Administrator and ask for access to the "differentVM" in the same VNET as the affectedVM.
- You should assign a Public IP of this differentVM and connect to it via the Public IP
- All VMs in Azure always have a private IP
- You can find your VM's private IP using ipconfig command and check "IPv4 Address"
Cheers,
Kapil
-
Meysam Cheramin 0 Reputation points
2023-10-25T06:26:01.3733333+00:00 @KapilAnanth-MSFT I am the Azure Administrator. How can I create a "differentVM" in the same VNET as the affectedVM? How can I assign a Public IP of this differentVM and connect to it via the Public IP?
-
KapilAnanth-MSFT 47,476 Reputation points • Microsoft Employee
2023-10-25T06:36:49.2933333+00:00 Refer :
- Create a Windows virtual machine in the Azure portal till "Connect to virtual machine" part.
- Make sure you select the same VNET as the affectedVM.
Cheers,
Kapil
-
Meysam Cheramin 0 Reputation points
2023-10-25T06:54:51.7333333+00:00 @KapilAnanth-MSFT I created a Windows virtual machine in the Azure portal till "Connect to the virtual machine" part and selected the same VNET as the affectedVM. How can I assign a Public IP of this differentVM and connect to it via the Public IP?
-
KapilAnanth-MSFT 47,476 Reputation points • Microsoft Employee
2023-10-25T06:59:04.83+00:00
Sign in to comment