P2S connections with Azure Express Route - azure

A question regarding P2S and Express Route connectivity co-existence in same virtual gateway. At Azure portal, there is an option to configure P2S connections to virtual gateway that is Express Route gateway type. But generally, when setting up VPN (S2S) and ER co-existence, MSFT recommends that separate virtual GW is built for VPN GW. MSFT documentation only talks about S2S and ER co-existence in vNet, nothing about P2S and ER.
So my questions are, does P2S connections work if you setup those to ER VGW? And does anyone know, what is MSFT recommended best practice in this scenario?

I'm not aware of any P2S support within the ExpressRoute Gateway. The ExpressRoute circuits are essentially virtual leased lines, and the configuration for ExpressRoute is about circuits, connections, ports, routing.
The VPN Gateways do support both S2S and P2S. You can also effectively combine VPN and ExpressRoute Gateways, so if you want belt and braces you can have a S2S VPN connection traverse the ExpressRoute link so it will be encrypted as well as private.
If there is an option for P2S in your ExpressRoute perhaps you could screenshot it and paste it in here? I can see nothing for it in the documentation or in the ARM template reference area.

ExpressRoute gateways are not supposed to show the option of adding P2S configuration. You would need to configure a coexistent VPN GW that has P2S configured. If you're still seeing this option on your ExR GW, that's likely a bug.
https://learn.microsoft.com/en-us/azure/expressroute/expressroute-howto-coexist-resource-manager#to-add-point-to-site-configuration-to-the-vpn-gateway

Related

Azure P2S and S2S connectivity without BGP

In my setup, I have an on-prem environment that is connected to my Azure environment using S2S VPN connection. We, developers, use P2S connection to access Azure environment.
Our setup looks like on the image below:
We'd also like to access on-prem resources, however that only works when BGP is enabled. Would it be possible to somehow manually adjust routes, so that we do not need to enable BGP ? If yes, how can I do that ?
We'd also like to access on-prem resources, however that only works when BGP is enabled. Would it be possible to somehow manually adjust routes, so that we do not need to enable BGP ? If yes, how can I do that ?
Unfortunately, there’s no workaround to connect to your Site-to-Site VPN from your Point to Site VPN connected to same V-net without BGP.
You can use BGP and route your traffic to communicate between your On-prem site connected to S2S and your client machines connected via P2S to Azure V-Net.
The Clients can only connect to Vnet without BGP, and the client can connect to on prem Site given S2S has BGP enabled.
References:
Azure VPN Gateway: About P2S routing - Azure VPN Gateway | Microsoft Learn
Azure routing | from p2s client VPN to s2s network on-prem - Microsoft Q&A by Sai Kishore

Is there a VPN solution in Azure that can assign a static public IP to the clients connected for me to achieve full tunnelling? may be in P2S VPN?

Is there a VPN solution in Azure that can assign a static public IP to the clients connected for me to achieve full tunnelling? may be in P2S VPN?
P2S VPN does not have full tunneling. Is there any other alternate solution?
• No, you can’t assign a static public IP address to the clients for a VPN solution in Azure as the client address pool that needs to be defined while deploying a VPN gateway in Azure is a subnet of the IP address spaces that the virtual network is created out of.
But you can configure forced tunnelling in your Azure virtual network on your VPN gateway subnets as illustrated below. In the below image, forced tunnelling is shown for Site-to-Site VPN scenario but it can also be implemented for Point-to-Site VPN scenarios in the same way. The Frontend subnet is not force tunneled. The workloads in the Frontend subnet can continue to accept and respond to customer requests from the Internet directly. The Mid-tier and Backend subnets are forced tunneled. Any outbound connections from these two subnets to the Internet will be forced or redirected back to an on-premises site via one of the Site-to-site (S2S) VPN tunnels as shown below.
This allows you to restrict and inspect Internet access from your virtual machines or cloud services in Azure, while continuing to enable your multi-tier service architecture required. If there are no Internet-facing workloads in your virtual networks, you also can apply forced tunneling to the entire virtual networks.: -
• Also, please note that you can *configure the above for your P2S clients by securing the Internet traffic via Firewall Manager and advertising the 0.0.0.0/0 route to your VPN clients. This makes your clients send all internet bound traffic to Azure for inspection. Then, firewall SNATs the packet to the PIP of Azure Firewall for egress to Internet. For this purpose, setup the Azure Firewall Policy to allow P2S traffic to Internet and to advertise all the traffic from 0.0.0.0/0 to your VPN clients, you would need to break them into two smaller subnets 0.0.0.0/1 and 128.0.0.0/1 as mentioned in the below documentation: -
https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-p2s-advertise-custom-routes#forced-tunneling
Also, you can add the code below in your ‘azurevpnconfig.xml’ file that can be directly downloaded from the templates section if the above said subnets cannot be added in ‘Default Routes’ on the portal.
<clientconfig>
<includeroutes>
<route>
<destination>0.0.0.0</destination><mask>1</mask>
</route>
<route>
<destination>128.0.0.0</destination><mask>1</mask>
</route>
</includeroutes>
</clientconfig>

Prevent Azure Expressroute from learning routes from VPN Gateway

How can I prevent Azure Expressroute from learning routes from VPN gateway? We're setting up a IPsec over Azure Expressroute. We want the Azure Expressroute just be a circuit. Right now Azure Expressroute is advertising the routes that's learned from VPN Gateway to the Edge routers.
Is there a way to prevent Azure Expressroute from learning routes from VPN gateway?
Another tough question John!
I have never actually had to verify or look into this.
However, if I just go by what I know from the VPN Gateway: If it is route-based, you need to make routes in order for traffic to go where it needs to go.
So my guess is: https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq#what-should-i-specify-as-my-address-prefixes-for-the-local-network-gateway-when-i-use-bgp
That page also mentions that when you route 0.0.0.0 to the Azure VPN Gateway all traffic goes egress to the 'on-premise' site. So if you would only route the traffic you want the rest of your VNET wouldn't be known to the S2S tunnel.

Azure P2S client traffic to S2S network

My VNet won't allow me to connect to the s2s location via p2s connection.
I'm trying to connect the Azure VPN client on my machine and reach a site that is allowed in a network which I have a s2s connection to.
Here's the thing, I can't get traffic to flow from my pc running the VPN client, out to the target site.
Topology
PC > VPN Client > VNet via p2s > Remote network via s2s > FTP server
I'd like to be able to ping the FTP server from my machine.
Currently only devices in the VNet can ping.
I tried setting up BGP but it broke the connection, as I don't really know how things should be set.
I don't have access to the remote site or it's devices.
I have a Azure local network gateway which is configured as the s2s location.
I'm sorry if that doesn't make sense.
Edit: here is the picture of the network
BGP is the standard routing protocol which enables the Azure VPN Gateways and your on-premise VPN devices to exchange "routes" that will inform both gateways on the availability and reachability for those prefixes to go through the gateways or routers involved.
To configure the BGP, your on-premise device should also support BGP. Read
What address does Azure VPN gateway use for BGP Peer IP?
What are the requirements for the BGP Peer IP addresses on my VPN device?
What should I specify as my address prefixes for the Local Network Gateway when I use BGP?
Without BGP, If you add the point-to-site addresses after you create your site-to-site VPN connection, you need to update the routes manually. You need to manually add the routes to the remote network on your machine.
For more information, you could refer to configure and validate virtual network or VPN connections. Except the Ping tool, you prefer to use TCping tool, see the detailed steps.
Generally, you could troubleshoot the issue by searching the common issue and solution in the virtual network gateway---Diagnose and solve problems on Azure portal. It's recommended to new a support ticket to get your issue resolved quickly.
My solution to this as I can't enable BPG is to use a proxy server within the VNet.

Azure Cross-region VNet connectivity with on-premises access

I have one Vnet (VNet1) in region 1 which is connected to on-premises using s2s VPN. I have got this peered with a second Vnet (Vnet2) in the same region following hub-spoke network pattern. VNet2 is configured to use Vnet1 Gateway transit for on-premises connectivity.
Now I have a third Vnet (Vnet3) in region3 which is also a spoke for Vnet1. Since this is in a different region I used VNet-VNet VPN (since Global Vnet peering doesn't support transitive gateway.) I reused the existing VPN that was used for S2S on Vnet1 for the Vnet1-Vnet3 connectivity.
The question is how do I support transit Gateway feature from VNet3->Vnet1 to achieve on-premises connectivity? To test it out I have setup UDR to route all traffic from Vnet3 to VPN Gateway. So this should bring the traffic to Vnet1. But this doesn't allow me to reach on-premises. Shouldn't Vnet1 routes know that the traffic is for on-premises and route it accordingly? Do I need some kind of NVA in Vnet1?
Any help would be appreciated.
If you want to create multi VPNs between the vnets, first you should take care and pay attention to the limitations of it. See limitations for multi VPN. And you also can follow the steps to create the multi VPNs.

Resources