Can only ping in one direction through S2S VPN in Azure

Patrick 10 Reputation points
2023-06-08T14:42:31.7333333+00:00

Hello everyone!

I am new to Azure. I have created a Vnet, VMs, subnets, Local Gateway and Virtual Gateway. got the connection/VPN setup and running for our local network. my issue is I can ping from my Azure Vm through my VPN to my local PC. I can also RPD from the Azure VM to my PC. BUT I can not do the same from my PC to my Azure VM.

Here is what I have setup...

my VNet is 192.168.120.0 /24

Servers Subnet 192.168.120.0 /26

    VM1    192.168.120.4

    VM2    192.168.120.5

Virtual Gateway subnet 192.168.120.192 /27

Local network gateway has my public IP and 192.168.60.0 /24 and 192.168.16.0 /24 listed

my local network is 192.168.60.0 /24 and 192.168.16.0 /24

Thank you!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,978 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,347 questions
{count} vote

2 answers

Sort by: Most helpful
  1. deherman-MSFT 32,951 Reputation points Microsoft Employee
    2023-06-08T16:56:12.9466667+00:00

    @Patrick

    It sounds like that you might have a Network Security Group(NSG) associated with your VM which is blocking the inbound traffic. By default, Azure blocks all incoming internet traffic to your VMs. If you haven't done it already, you'll need to create an NSG rule to allow traffic on the ports you're using. For RDP, you should allow TCP on port 3389. You can Diagnose a virtual machine network traffic filter problem to walk through and verify what NSG is associated to your VM which might be blocking the traffic.

    Please check and see if that resolves your issue. If you are still having issues let me know and we can work with you directly to continue troubleshooting.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


  2. msrini-MSFT 9,251 Reputation points Microsoft Employee
    2023-06-09T13:51:06.36+00:00

    Hi,

    This could be due to the Windows Firewall on the guest OS of Azure VM. Can you try turning off the windows firewall for ICMP and try again?

    Regards,

    Karthik Srinivas