Hi @Sandeep jain ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
We understand that your RDP session is being terminated after successfully connecting to VPN. Here are the few possible steps you can go through.
- Could you please let us know what kind of a VPN you have configured? and could you provide a rough network diagram of your setup so that we can get a better idea of what you are trying to implement?
- Please ensure the VPN configuration is correct and verify that the IP ranges for the VPN and VM are not identical.
- If you are utilizing a firewall, there is a possibility that its settings or security policies may disrupt the RDP session.
- Verify the Windows Firewall & Enhanced Security Configuration is turned on in Local server of Server Manager.
- When a VM connects to a VPN it can affect the routing which in turn can cause RDP session to fail, so please perform a packet capture on the VM and local machine and check for any errors for RDP packets.
Kindly let us know if the above helps or you need further assistance on this issue. If the answer is helpful, please click "Accept Answer" and "Upvote it."