VPN client and Azure FrontDoor

Jani Honko 1 Reputation point
2022-11-04T21:13:18.313+00:00

Our web app is installed as an Azure App Service and it's accessible through Azure FrontDoor Standard. This works fine.

The issue comes when using VPN client (in Windows 10) to access the web app through Azure FrontDoor. With VPN client but without Azure FrontDoor, the web app sees the company's network IP address as expected, BUT with Azure FrontDoor, the web app sees the calling client's IP address. So the company's network IP address is lost somewhere. It seems that the issue is in Azure FrontDoor.

With VPN client, without Azure FrontDoor:

X-Forwarded-For=<company's network IP address> // This is OK

With VPN client, with Azure FrontDoor:

X-Forwarded-For=<client's IP address>,<unknown IP address> // This is not OK

So, is it possible to pass through the IP address provided by the VPN client so that the web app can see it? There should not be any difference using VPN client with or without Azure FrontDoor.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
588 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 47,696 Reputation points Microsoft Employee
    2022-12-06T12:43:34.513+00:00

    Hello @Jani Honko ,

    I understand that you wanted to know if it is possible to pass through the VPN Client IP address to the webapp when accessing it through Azure Front Door via VPN and not the client IP.

    We discussed this issue in detail and collected various logs and traces but were unable to find anything concrete from the logs, so we decided to open a support request, however, you did some deeper investigations on your side and found that your VPN is configured to use split tunneling which means that not all traffic goes though it.
    And because Azure Front Door IP address was not on your VPN’s remote network list, traffic to Azure Front Door was not routed through the VPN. Hence, you were seeing your local IP address and not the VPN gateway IP address when accessing the webapp through Azure Front Door via VPN.

    You can allow the Azure Front Door's IP address on VPN’s remote network list to make it work.

    The AzureFrontDoor.Backend service tag provides a list of the IP addresses that Front Door uses to connect to your origins.
    You can download the Azure IP Ranges and Service Tags data set, which is updated regularly with the latest IP addresses for Azure Front Door and use them for whitelisting the traffic.

    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.

    0 comments No comments