Azure Firewall DNAT issues

Andrea Longhitano 180 Reputation points
2025-10-15T21:29:33.0666667+00:00

Hello everyone,

We have a firewall on our environment. We need to expose an SFTP server to some specific public IP addresses.

We have created a DNAT rule to expose port 22 and translate to port 22 to the SFTP server.

If we try to do a test connection from the allowed IP addresses, we can see the allow rule in the AZFWDnatRule table. Using tcpdump in the server we can also see traffic coming from the natted ip addresses of the firewall

However, we receive a connection refused because it seems that some we do not receive return traffic on the client.

If we expose the server directly using a public IP address the SFTP connection works fine without no issue .

How to solve this big issue?

Thanks,

Andrea

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
{count} votes

Your answer

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