@GitaraniSharma-MSFT , I am aware on where to check the gateway IP and how to get public IP of a client. I needed to know if The Azure VPN Client routes or can route the default traffic i.e 0.0.0.0 via the Azure Gateway and I found that it is not possible. So there is no need to know the public IP since Azure VPN does not connect like a typical VPN where you can use the gateway to route default or address based destination, one may think but is just a VPN tunnel to infrastructure to Azure Cloud and on-premises that are connected to Azure Gateway nothing beyond that.
Thanks.
What is the public IP for a Azure VPN P2S?
I have a resource in a private cloud that i cannot access from home directly due to firewall restrictions. I can allow a static public IP but since working from home i won't have a static public IP (unless i have money to pay for it, anyways). So, i have a P2S azure vpn and would like to connect from azure to my private cloud using the azure gateway, Is this possible or P2S is only limited to Azure Infrastructure and cannot use the Azure Virtual gateway?
Azure VPN Gateway
-
Alok Sanyal 196 Reputation points
2021-05-11T13:01:55.093+00:00
2 additional answers
Sort by: Most helpful
-
GitaraniSharma-MSFT 50,096 Reputation points Microsoft Employee Moderator
2021-04-28T11:41:57.707+00:00 Hello @Alok Sanyal ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
Azure Point-to-Site VPN lets you connect from a single computer from anywhere to anything located in your Azure virtual network. Hence, you will not be able to connect to any other private cloud and the connection is only limited to Azure Infrastructure (unless you have a BGP enabled site to site connection as well, in which case you will also be able to access the on-premise resources connected via Site to site VPN. Please refer this article).
However, if your private cloud offers a VPN type resource (such as VPN gateway in Azure), you can give site to site connection a try. For reference, you can see this blog which shows how to implement a site to site VPN between AWS and Azure.Now, coming back to your question in the headline - "What is the public IP for a Azure VPN P2S?"
Answer : When connected to Azure P2S, you can simple browse to https://whatismyipaddress.com/ and you will be able to find your Public IP.Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
-
bhuvanesh kumar kumaresan 1 Reputation point
2021-08-19T11:46:20.077+00:00 @GitaraniSharma-MSFT I believe you didn't understand the users actual requirement. His requirement is he wants to connect to one public facing application in azure from his home internet. If he whitelists his home wifi public IP, he doesn't even needs to connect to P2S. However whitelisting home internet IP is not feasible since ISP will be using dynamic public IPs and cant be whitelisted in the cloud firewall.
Hence he is asking if he can use P2S to access the public facing application by whitelisting the P2S static public IP.But sadly this is not possible, since using P2S users will be assigned with only the private IPs not the public IP by VPN GW. Hence it is not possible to whitelist the P2S public ip to access the public facing application.