How to open the ports for L2TP connection in Azure VM ? Are these ports blocked by Azure ?

Lilly 0 Reputation points
2024-03-21T07:52:42.45+00:00

I have setup the 'Routing and Remote Access' in the VM in Azure, and I also add an inbound rule for Routing and Remote Access (L2TP-In) in the Windows Defender Firewall with Advanced Security. I also have added 500, 4500, 1701 ports in the Inbound security rules in the Azure Console. I even added another rule for the three ports in Windows Defender Firewall with Advanced Security. But these ports are still in 'closed' status when I scan their status, so I still can not connect my pc to the L2TP server in the Azure VM. How can I solve this problem ? Is the RRAS (Routing and Remote Access Service) not supported to use in Azure VM ?

Help Appreciated.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,427 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,591 Reputation points Microsoft Employee
    2024-03-21T10:03:52.5866667+00:00

    Hello @Lilly ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you've setup 'Routing and Remote Access' in an Azure VM and added an inbound rule for Routing and Remote Access (L2TP-In). You also opened the required ports on Azure and Windows firewall, but you still cannot connect your machine to the L2TP server in the Azure VM.

    Is the RRAS (Routing and Remote Access Service) not supported to use in Azure VM?

    Yes. RRAS is NOT supported in the Microsoft Azure Virtual Machine environment.

    Refer: https://learn.microsoft.com/en-US/troubleshoot/azure/virtual-machines/server-software-support#windows-server-features

    If you are trying to configure a Point-to-site connection in Azure, then the recommended way is to use an Azure VPN gateway and configure a VPN connection over SSTP (Secure Socket Tunneling Protocol) or IKEv2.

    Refer: https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-about

    https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.