How would I change my 1521 port to stop being exposed to the internet while still allowing connection from the rest of the Vnet

Norton, Joshua 0 Reputation points
2024-05-09T15:55:40.41+00:00

User's image

How would I configure the NSGs to allow 1521 communication to occur with exposing to the public internet

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,202 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Silvia Wibowo 3,241 Reputation points Microsoft Employee
    2024-05-10T00:26:50.56+00:00

    Hi @Norton, Joshua , I understand that you want to allow vNet connection to TCP port 1521 using NSG.

    You need to add an inbound entry to the NSG applied to your subnet (if there is no NSG applied, create a new one and associate it to your subnet):

    • Priority = 100 (or any number between 100 and 4096. Rules are processed in priority order, with lower numbers processed before higher numbers)
    • Source = VirtualNetwork (or your FrontEnd subnet's CIDR)
    • Source ports = * (0-65535)
    • Destination = VirtualNetwork (or your DB subnet's CIDR)
    • Destination ports = 1521
    • Protocol = TCP
    • Access = Allow

    There is a default Deny Outbound rule to deny everything else:

    Priority Source Source ports Destination Destination ports Protocol Access
    65500 0.0.0.0/0 0-65535 0.0.0.0/0 0-65535 Any Deny

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    0 comments No comments