Hello Elias Juremalm,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you have configured Azure Application Gateway (AGW) and proxy, you would like to know and verify if AGW supports receiving proxied packets that uses the proxy protocol due to SSL error packet you had when trying to send a request to the AGW via the proxy.
You will need to understand that Azure Application Gateway (AGW) can handle TCP and TLS connections at the transport layer and HTTP/HTTPS connections at the application layer, but it does not include native support for the PROXY protocol. To read more: https://learn.microsoft.com/en-us/azure/application-gateway/tcp-tls-proxy-overview and https://learn.microsoft.com/en-us/azure/application-gateway/application-gateway-faq
To resolve the issues and limitation you can try the following options:
- Use Azure Load Balancer it supports the PROXY protocol and can be used in conjunction with AGW, and you can configure the Load Balancer to handle the PROXY protocol and then forward the traffic to AGW.
- Or implement a custom solution where the proxy server extracts the client IP and passes it as a custom header to the AGW, where the backend application can then read this header to get the original client IP.
- Use a different proxy solution that can handle the PROXY protocol and is compatible with AGW.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam