An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
Hello LeRoy, Kevin,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your question regarding Azure VPN Gateway(P2S) Traffic Segmentation.
The Azure VPN Gateway provides VPN connectivity and route propagation, but it is not a firewall and does not natively enforce per-user or per-prefix deny rules directly on the gateway. The correct Microsoft-supported solution is to assign P2S users to deterministic IP pools using Azure VPN Gateway User Groups, then enforce access using NSGs, Azure Firewall, NVA, or downstream ACLs based on those assigned P2S source IP ranges. - https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-user-groups-about, https://learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview
The best practice to resolve is to:
- Configure P2S User Groups / Policy Groups so each user category receives a dedicated VPN client address pool.
- Use NSG rules if the target resources are Azure VMs/subnets.
- Use Azure Firewall or an NVA if traffic must be inspected centrally or if the destination is another branch, S2S site, ExpressRoute network, or shared hub route.
- Do not rely on custom traffic selectors as a security control because they control IPsec negotiation scope, not full traffic authorization.
- Validate the result with effective routes, NSG rules, Azure Firewall logs, and client source IP assignment.
After users are mapped to separate P2S IP pools and the appropriate deny/allow policies are applied, the customer can reliably block unwanted access without changing the VPN authentication model or opening an Azure Support case, unless the documented configuration fails after validation.
Use the below resource links for more reading and steps:
- About User Groups and IP Address Pools for P2S connections - https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-user-groups-about
- Assign IP addresses from defined pools to P2S VPN users - https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-user-groups-create
- Azure virtual network traffic routing- https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
- Azure Firewall in a hybrid network - https://learn.microsoft.com/en-us/azure/firewall/tutorial-hybrid-portal
I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.