VPN Information for Azure VM - azure

I have set up a new virtual machine and added it to a virtual network.
Now my difficulty is what will be the VPN Peer IP Address I'll share with clients? Is it the public IP of my virtual machine?
Also the VPN host IP address? Is that the public IP as well? All these have me confused as I have to provide them to our clients.
Where can I find these info on Azure?

You have to create two Gateways for a Site-to-Site VPN connections:
1) a Virtual Gateway which will serve es public endpoint for the other site (network)
2) a Local Gateway which "mocks" the public endpoint of the other site (network)
It is explained quite good here: https://azure.microsoft.com/en-us/documentation/articles/vpn-gateway-howto-site-to-site-resource-manager-portal/ - You need to check the compatibilities between Azure and the VPN device (check https://azure.microsoft.com/en-us/documentation/articles/vpn-gateway-about-vpn-devices/)

Related

Why does the Azure Virtual Network Express Route Gateway require public IP?

I need to setup connection between Express Route and VNET in Azure.
It requires to create Virtual Network Gateway as Express Route Gateway type.
This Gateway ask for public IP.
So, I wonder why we need the public IP? Can Vnet and Express route can interact through private IP?
Please help me answer.
The answer is in the Microsoft FAQ:
The public IP address is used for internal management only, and
doesn't constitute a security exposure of your virtual network.
Vpn gateway is used to send the encrypted traffic across the public internet for this communication it requires a public IP. The public IP assigned to the virtual network gateway will let you connect Azure VPN gateway from your on-premises network or the Internet.
When you create a virtual network gateway, you need to specify several settings. One of the required settings, '-GatewayType', specifies whether the gateway is used for ExpressRoute, or VPN traffic. The two gateway types are:
Vpn - you use the gateway type 'Vpn'. to setup Site-to-Site, Point-to-Site, and VNet-to-VNet connections all use a VPN gateway.
ExpressRoute - To send network traffic on a private connection, you use the gateway type 'ExpressRoute'. This is also referred to as an ExpressRoute gateway and is the type of gateway used when configuring ExpressRoute.
Reference

Connect to Azure Resource under VPN P2S

I'm trying to setup a Point-to-Site (P2S) VPN from my Windows 10 machine to my Azure Server and, even successfull connect to the VPN, I cannot connect to the server.
My Azure server has 2 network interfaces:
1st has private IP 10.0.0.5/24 (and an associated Public IP, that allow me to connect with Remote Desktop normally, but off the VPN).
2nd has private IP 10.0.0.4/24, without Public IP. (the other public IP is used with the virtual network gateway to use the VPN).
I've added the net/subnet "172.16.10.0/24" as addresses pool in my virtual network gateway.
* When I connect, an IP /32 address is assignet to my local machine, like 172.16.10.3 / 255.255.255.255, and I can ping 172.16.10.0
(no code to be displayed)
The certificate setting is ok, the connection to the VPN is OK. I only cannot connect to my Azure Server on my second interface 10.0.0.4.
Any idea that I've forgot to do?
Thank you.
The solution: My Private IP range on Azure local network Gateway has been wrong on setup. I've fixed specifying my correct local IP range, but, not only this, a new route table was created, associating this with the GatewaySubnet (in the Virtual Network).
Thanks to Nancy Xiong and msrini-MSIT for help.

Configure Static IP Address for Point-to-site VPN in Azure

How to configure Point-to-Site VPN with a Static IP address as my applications are dependent on a static IP address given out by the VPN Gateway. Is it even possible with Point-to-site? What about options like ExpressRoute and Site-to-Site VPN?
As of now assigning Static IP for P2S is not possible. Please raise your feedback via User Voice: https://feedback.azure.com/forums/217313-networking
If you are using options like Site to Site or Express Route, Azure will not lease IP address and basically it connects to the Peer Address Prefix. So you can deploy your Application on On-Premises Server and make that Server IP static to address your issue.

Azure S2S Outbound NAT Translation

I have a S2S VPN connection with an external party which works fine. However, they have advised that when requests are sent over the VPN tunnel to them, they want to see the request as coming from a public IP address, rather than from our private address range.
Is there a way to configure this in Azure?
For info, we are using the standard Azure VPN gateway as opposed to a third part device from the marketplace.
Thanks
David
If I am correctly understanding, they want to requests are sent over VPN via a public IP address, rather than from our private address range. I don't think it's possible since a VPN extends the virtual private network across the public network. and enables users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network.
You could create a VPN tunnel between the local virtual network and Azure virtual network via S2S VPN gateway. The tunneling protocol is used to encapsulate and encrypt the data going to and from your device and the internet. You only can communicate with the Azure virtual network via the private address range if using VPN.

Azure Virtual Network / VM's Setup to Share One Public IP

I've recently setup a point to site VPN on Azure. In doing so I have created:
Azure Virtual Network
Azure Virtual Network Gateway
Azure Virtual Network Gateway IP (static)
Azure VM
I was under the impression that any VM set to use the above said Virtual Network would all share the same public IP? However it appears that the Azure VM i setup is instead using its own dynamic public IP.
Is there a way to route any VM on the Custom Virtual Network I created through one public IP? IF so - how can I do this?
According to your description, you have create a point-to-side VPN. in this scenario, we can remove the public IP addresses from VMs, then you can access your VMs with private IP addresses via VPN.
You are correct - I have the VPN working correctly. My only concern is this, it'd be great that if any of those VM's in that private network shared the same static IP - that way I could grant access to that IP in my firewall to other systems i have in other hosting platforms (as they are all typically locked down by ip).
It sounds like your reference to availablity sets may be the phrase i was looking for to further google.. i will check it out and let me know
please let me know if anything I added above changes your answer/recommendations :)
I was under the impression that any VM set to use the above said
Virtual Network would all share the same public IP?
You are talking about Azure ASM module (classic). In ASM module, VMs can use the same public IP address(NAT).
However it appears that the Azure VM i setup is instead using its own
dynamic public IP.
In Azure resource module, we can create Azure VMs with different Public IP addresses.
Is there a way to route any VM on the Custom Virtual Network I created
through one public IP?
According to your description, you have create a point-to-side VPN. in this scenario, we can remove the public IP addresses from VMs, then you can access your VMs with private IP addresses via VPN.
If you want to access those VMs from Internet and use one public IP address, we can create VMs in the same availability set, and deploy a Internet facing load balancer, then add NAT rules to them, in this way, we can access those VMs use the same public IP address and different ports.

Resources