you can try place haproxy + NAT on your own Linux router.
In this case inbound connections with be delivered via HAproxy.
Outbound connections will be NAT-ed on the same host, to the same IP.

On Sun, Nov 8, 2020 at 6:31 PM Joey Golan <[email protected]> wrote:

> Hello,
> I have a kamailio server running behind HAProxy with proxy protocol v2
> enabled.
> In Kamailio I have set the parameter tcp_accept_haproxy=yes and loaded
> tcpops module.
> UEs are registered using TLS and kamailio sees that the message has
> received from their real ip address + port and not HAProxy ip + port.
> When UE A calls UE B, kamailio is trying to reach UE B using his real ip
> address and port instead of HAProxy IP address + port.
>
> I know I can get the tcp ip and port of HAProxy using $tcp(c_si) and
> $tcp(c_sp) but I can’t make it work.
> What is the right way to do this? How should I use these variables
> properly in order to establish the call successfully?
>
> Thanks,
> Joey.
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to