[SR-Users] Kamailio behind HAProxy
joeygo at gmail.com
Sun Nov 8 19:06:38 CET 2020
It doesn’t make much sense to me.
On local installations (on-premise) I have 1 HAProxy and multiple kamailio servers.
On AWS I have multiple kamailio servers behind ELB.
On 8 Nov 2020, 19:45 +0200, Sergey Safarov <s.safarov at gmail.com>, wrote:
> 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 <joeygo at gmail.com> 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
> > > sr-users at lists.kamailio.org
> > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-users