Does Basic Azure Firewall supports X-FOrward-For

Deepaklal-FT 66 Reputation points
2025-02-10T13:52:27.39+00:00

Does Basic Azure Firewall supports X-FOrward-For?

How do I verify the client IP is passing to VM(apache2)?

Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
721 questions
Azure FastTrack
Azure FastTrack
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.FastTrack: This tag is no longer in use. Please use 'Azure Startups' instead.
77 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rohith Vinnakota 2,720 Reputation points Microsoft Vendor
    2025-02-13T19:50:22.3866667+00:00

    Hi

    Greetings!

    X-Forwarded-For headers are part of HTTP/S traffic (Layer 7). This capability is only available in the Premium SKU of Azure Firewall. Since premium tier supports TLS inspection and IDPS, it can inspect HTTP/S traffic and thus handle XFF headers whereas Basic SKU operates at Layer 3/4, so it supports basic stateful firewall rules (IP/port filtering) but cannot inspect/modify HTTP headers like XFF.
    Refer this link:https://learn.microsoft.com/en-us/azure/firewall/premium-deploy#tls-inspection-with-url-filtering

    How do I verify the client IP is passing to VM(apache2)?

    In the Application rule logs you can the see the client ip.
    User's image

     

    If you require XFF header then upgrade to Azure Firewall Premium for native XFF support, TLS inspection and advanced threat protection. If cost is a concern, you can try to use Azure Application Gateway (WAF feature) behind Basic SKU Azure Firewall for hybrid Layer 3/4 and Layer 7 traffic inspection.


    If above is unclear and/or you are unsure about something add a comment below.

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.