Client connection to Azure Postgres flexible server over point-to-site VPN times out

Alex L 20 Reputation points
2023-09-25T22:44:08.0833333+00:00

Hi there,

I have the following setup:

When I try to connect to the Postgres server from a VM running in the VNET using psql, I'm able to connect.

However, when I try to connect from my laptop with the VPN running, the connection times out. nslookup resolves DNS correctly (the results are the same as they are in the VM). Here's the psql output from my laptop:

psql: error: connection to server at "
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,538 questions
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,458 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 45,451 Reputation points Microsoft Employee
    2023-09-26T16:15:43.89+00:00

    @Alex L

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

    I understand that you would like to access your VNET injected Azure Postgres flexible server from P2S Clients.

    • May I ask if a VM in "beta" VNet is able to access the VNET injected Azure Postgres flexible server in "alpha" VNET?
    • Also, can you confirm if Gateway Transit is enabled between the VPN VNET and the Azure Postgres flexible server injected VNET?

    You informed Gateway transit was not enabled and also confirmed doing this resolved the issue.

    Please let us know if we can be of any further assistance here.

    Thanks,

    Kapil


    Please Accept an answer if correct.

    Original posters help the community find answers faster by identifying the correct answer.

    0 comments No comments

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.