Azure VPN (P2S) routing IP traffic

Zuuber 125 Reputation points
2024-07-23T15:29:39.75+00:00

Hi

I am using the Azure VPN client (P2S) and have manually added an IP range to route this traffic via the VPN.

The traffic is SQL related and will connect to an externally hosted SQL Server elswhere, outside of the Azure network.

There is a firewall at the SQL side which requires an IP to allow traffic.
How do I know which IP or IP range to add to the firewall to allow the routed traffic from the Azure network which has been routed via the Azure VPN client?

thank you
Leon

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,559 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2024-07-24T06:02:42.0666667+00:00

    @LeonT ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    From your verbatim, I take it that you'd like to route Internet bound traffic (externally hosted SQL Server outside of Azure) from a local machine via Azure using P2S

    Please Note :

    While you can make this work with a help of a NVA such as Azure Firewall,

    If you are still interested using a regular VPN Gateway,

    • Consider deploying a NVA or Azure Firewall on the VNET and route all traffic to the Firewall from the VPN Gateway.
    • You should advertise additional custom routes of the externally hosted service's IP to the P2S Clients.
    • On the GatewaySubnet, attach a UDR with routes 0.0.0.0/1 and 128.0.0.0/1 pointing to the nextHop as the NVA's/Azure Fierwall's IP Address
    • Now, this Firewall will provide the P2S Clients with Internet connectivity
    • And the outgoing communication will use the Pubic IP of the Azure Firewall
      • Which you can whitelist in the externally hosted service's Firewall.

    NOTE :

    • The Firewall should have an Allow rule allowing traffic to pass through it

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.

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.