Using WAF for custom ports

Mark Connolly 21 Reputation points
2022-08-11T08:58:36.23+00:00

Hi, is it possible to setup a Web Application Firewall for ports other than 80 and 443.

We have webservers that also listen on TCP port 7048 for API calls. Is it possible to create a policy to filter and load balance the traffic on that port?

If not, what would the solution be for this?

Thanks

Internet Information Services
Azure Web Application Firewall
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 34,926 Reputation points Microsoft Employee
    2022-08-15T13:54:16.58+00:00

    Hi @Mark Connolly ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
    I understand that you are trying to configure the WAF policy for Ports other than Port 80 and 443.

    With App Gateway, the WAF policy is supposed to work across all the listeners, irrespective of the port.

    You can also configure, per Listener WAF in App Gateway.
    https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/per-site-policies
    231152-image.png

    You can refer to this for best practices on the App gateway WAF,
    https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/best-practices

    Other docs that may come in handy are:

    Thanks,
    Kapil

    ----------------------------------------------------------------------------------------------------------------

    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful