Implementing Firewall for function apps with inbound HTTPS traffic

Copper Contributor

Hi Team,

 

We are looking to implement an Azure Firewall for filtering Inbound HTTPS traffic to Azure Function Apps hosted in premium App service plan. Is it possible to use Azure Firewall for this or Should we be using Azure Web Application Firewall?

 

Thanks,

Pavan.

5 Replies
Typically you want to use WAF for that scenario. If using AzFW Premium, the main problem you will found is that with TLS insection it will replace the public cert of AzFunctions with a self-signed one. If not using TLS inspection, the AzFW offers little added value from a security perspective IMHO.

@pavanpavuluri 

 

Hi   

Azure Firewall operate at layer 4 while  WAF operate at layer 7 . Since you want to filter   https traffic WAF is more suitable . 

You can also find in the FAQ this :  

Does Azure Firewall support inbound traffic filtering?

Azure Firewall supports inbound and outbound filtering. Inbound protection is typically used for non-HTTP/S protocols. For example RDP, SSH, and FTP protocols. For best inbound HTTP/S protection, use a web application firewall such as Azure Web Application Firewall (WAF).

 

Ref: https://docs.microsoft.com/en-us/azure/firewall/firewall-faq

That is not entirely correct, AzFW Premium with features such as TLS Inspection or IDPS operates at layer 7 as well

I'm only referring to Azure Firewall not premium because it's still in preview ( correct me if i'm wrong) and then not recommended for production use . Even if it operates at layer 7 i don't get the point to use a firewall instead of WAF unless you tell me that it can protect from top 10 OWASP vulnerabilities and provide Load balancing options as application gateway do.

I would suggest using Azure Frontdoor and WAF policy, it's a globally resilient resource compared with regional Application Gateway, also less expensive or at least not so high static monthly costs. Don't forget to add IP restrictions with FDID header value on App Service, then you would achieve Nirvana of Security. :) Azure Firewall is more suitable for outbound scanning, however, the new premium preview SKU supports scenarios with Layer 7 and inbound.