Share via

Which range of IP addresses does a firewall need to specify to allow only Azure internal-IP addresses? From 0.0.0.0 to 255.255.255.255 From 0.0.0.0 to 0.0.0.0 From 255.255.255.255 to 255.255.255.255

Hatim Mujawar 25 Reputation points
2025-04-04T08:11:38.9166667+00:00

Screenshot (23)

Answer should be 1 option

Notice that the range of allowed IP addresses is 0.0.0.0 through 255.255.255.255. A firewall rule like this allows any client to access the database. To ensure that only the Quarkus application can access the database, you need to update the firewall rules of the PostgreSQL server. In this case, it's just a matter of removing the public rule.

This question is related to the following Learning Module

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.

0 comments No comments

Answer accepted by question author
  1. Alex Burlachenko 20,505 Reputation points MVP Volunteer Moderator
    2025-04-04T09:57:02.36+00:00

    Hi Hatim Mujawar,

    The correct answer is from 0.0.0.0 to 0.0.0.0

    This special range is used in Azure to indicate that only Azure-internal traffic is allowed. It does not mean "all IPs" (which would be 0.0.0.0 to 255.255.255.255), but rather restricts access to services within Azure's internal network.

    The other options like bellow

    0.0.0.0 to 255.255.255.255 would allow all public IP addresses (not just Azure internal)

    255.255.255.255 to 255.255.255.255 is not a valid range for this purpose

    The explanation in the screenshot about 0.0.0.0 to 255.255.255.255 allowing all clients is correct for that specific context, but for allowing only Azure internal IPs, you would use 0.0.0.0 to 0.0.0.0.
    Best regards,

    Alex

    P.S. If my answer help to you, please Accept my answer

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.