Is it a bad practice to create a firewall rule to allow few public IP addresses

Krishna Kumar 20 Reputation points
2023-03-21T03:24:02.8166667+00:00

I am creating a new Azure Sql database and would like to understand best practices to allow communication between developer laptop to azure sql server.

  1. Create firewall rule to allow few specific IP addresses.
  2. Allow connection only through VPN.
Azure SQL Database
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,400 questions
0 comments No comments
{count} votes

Accepted answer
  1. risolis 8,721 Reputation points
    2023-03-21T03:55:41.7933333+00:00

    Hello @krishna kumar

    Thank you for posting this concern on this community space.

    I was reading your case scenario description and I would like to gather few observations:

    -Create firewall rule to allow few specific IP addresses >>> Related to this statement, I was wondering if you are referring to Network Security Group and if yes, you are using a PIP(Public IP) on the SQL machine by allowing IP address as well as listening port.

    -Allow connection only through VPN >>> When you are referring to VPN... Is this a Firewall appliance with P2S VPN or Gateway VPN azure feature configured as P2S VPN for remote access. If yes, you can set it up to allow access to your Subnet or Vnet.

    -Furthermore, you can either use Azure Bastion in order to avoid from assigning a PIP directly to the SQL resources and expose it to internet.

    I hope that can be useful for you.

    Looking forward to your feedback,

    Cheers,

    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

0 additional answers

Sort by: Most helpful

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.