Limited connectivity between Azure VNET and On-premise network

Verbrugge, Richard 30 Reputation points
2025-06-27T15:14:57.92+00:00

Hello all,

I'm having trouble getting my Azure Bastion VM (10.18.9.4) to retrieve a DNS query from an on-prem DNS server (10.17.1.5). ICMP and RDP does work (both ways). The Azure firewall indicates the request is allowed through the firewall (and the rule is configured to permit this), I see the log entry 10.18.9.4 -> 10.17.1.5 UDP port 53 allowed.

At the On-prem Firewall does not seem to receive the traffic for 10.18.9.4 -> 10.17.1.5 UDP port 53 at all, as if Azure never actually sent it. I do see the ICMP and RDP packets go through and they show in the On-prem firewall.

This setup uses a site-to-site VPN. I can also confirm that trying to SSH from the Bastion to another server on the same on-prem subnet acts the same way as the DNS query.

Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
293 questions
{count} votes

Accepted answer
  1. Praveen Bandaru 5,520 Reputation points Microsoft External Staff Moderator
    2025-06-30T08:21:34.85+00:00

    Hello Verbrugge, Richard

    In addition to hossein jalilian's response, I'm adding more details.

    It appears you're experiencing connectivity problems between your Azure Bastion VM and your on-premises DNS server. Since ICMP and RDP are functioning properly, the basic VPN tunnel seems to be working. However, DNS (UDP port 53) and SSH traffic are not reaching the on-prem firewall, indicating there may be a few specific areas to check.

    • Ensure that routing is properly set up on both Azure and on-premises to permit DNS and SSH traffic. Also, check for any conflicting routes.
    • Even if the rules appear to allow the traffic, please double-check for any forced tunneling or DNS proxy configurations that could be interfering with the queries.
    • Azure Firewall uses SNAT, which might impact how packets are sent. Make sure the SNAT settings are not causing any problems.
    • Once again, please check your on-premises firewall as there may be rules blocking DNS or SSH requests from the Azure IP range.
    • Please verify that your DNS configuration, including any conditional forwarding settings, permits requests from the Azure VNET. Also, ensure that the NSG rules on the Azure side are not blocking the required ports for DNS and SSH access.

    Please provide the following information so we can further investigate the issue:

    1. Have you set up any custom routes for your Azure VNET?
    2. Are there any specific filtering rules on your on-premises firewall that could impact traffic coming from Azure?
    3. Can you confirm whether there are outbound rules on the Azure Firewall that might be blocking DNS or SSH traffic?
    4. Are there any particular DNS server settings that could be affecting how Azure requests are handled?

    Hope the above answer helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. hossein jalilian 11,055 Reputation points Volunteer Moderator
    2025-06-27T16:54:19.7533333+00:00

    Thanks for posting your question in the Microsoft Q&A forum

    ICMP and RDP traffic between your Azure Bastion VM and on-prem DNS server are working, showing that the VPN tunnel and basic connectivity are fine. However, DNS and SSH traffic don’t reach the on-prem firewall, even though Azure Firewall logs show the traffic is allowed.

    This could be caused by:

    • Misconfigured routes or subnets
    • Azure Firewall settings (forced tunneling or DNS proxy issues)
    • SNAT behavior of Azure Firewall
    • Firewall/NAT rules on the on-prem side
    • Incorrect DNS settings or lack of conditional forwarding
    • NSG rules blocking traffic

    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is 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.