Feasibility of rtpengine located behind a HAProxy UDP Balancer

4 views
Skip to first unread message

Denys Pozniak

unread,
Dec 1, 2025, 5:54:43 AM (yesterday) Dec 1
to Sipwise rtpengine
Hello,

I am reaching out to see if anyone in the community has experience or insights regarding the feasibility of placing rtpengine behind a HAProxy UDP load balancer.
I understand that balancing RTP/UDP traffic in this way is generally not a conventional or ideal setup, but I am exploring this possibility for our architecture.

The core issue is related to maintaining the original client IP address when traffic is passed through the balancer. For a proper media session, rtpengine needs to know the true source IP and port of the upstream client for correct routing and security.

I am looking for a mechanism similar to what Kamailio has for SIP/TCP based traffic (tcp_accept_haproxy=yes).

Does rtpengine have a built-in or configurable feature to accept and parse the PROXY protocol header on UDP traffic?

For reference, the PROXY protocol specification is available here: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt


Thank you in advance for your help.
udp_lb.png
Reply all
Reply to author
Forward
0 new messages