Forum Discussion
Forced Tunnel in XML VPN Profile not Working
<DeviceTunnel>false</DeviceTunnel>
<LockDown>true</LockDown>
<AlwaysOn>true</AlwaysOn>
<RoutingPolicyType>ForceTunnel</RoutingPolicyType>
this should be included in the <NativeProfile> section, could you try this?
- Moe_KinaniFeb 15, 2022Bronze Contributor
Hi Anon4343
Just like you mentioned earlier NativeProfile does not apply on Azure VPN Client. You can force tunneling using two methods, either advertising custom routes in Azure Gateway using Set AzVirtualNetworkGateway to 0.0.0.0/1 , 128.0.0.0/1 or including these routes in the config file under <clientconfig> section (screenshot attached).
FYI- Internet connectivity will not be provided through the VPN gateway. As a result, all traffic bound for the Internet is dropped.
Hope this helps!
Moe
https://docs.microsoft.com/en-us/azure/vpn-gateway/openvpn-azure-ad-client
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-p2s-advertise-custom-routes