### Description
Scenario: Kamailio servers running behind a loadbalancer (AWS network loadbalancer in this
case). This causes all packets to come from the same IP address in Kamailio's POV.
The change
https://github.com/kamailio/kamailio/commit/a902e4a032a85a7755de32eeadac800…
introduced a connection limit per source IP address. This obviously conflicts with the
setup mentioned above. We need up to 10000 client connections, which would seem to all
come from the same IP address.
Apart from this limit being introduced without a changelog entry (at least I didn't
find one), I would expect it to be configurable. But from the commit it looks like it is a
compile time option only.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
#### Log Messages
```
Feb 15 09:24:00 sipproxy /usr/sbin/kamailio[174]: CRITICAL: <core>
[core/tcp_main.c:4447]: handle_new_connect(): hit the limit of connections per source IP
(100.68.15.172:33334) - rejecting
Feb 15 09:24:01 sipproxy /usr/sbin/kamailio[174]: CRITICAL: <core>
[core/tcp_main.c:4447]: handle_new_connect(): hit the limit of connections per source IP
(100.68.15.172:1153) - rejecting
Feb 15 09:24:01 sipproxy /usr/sbin/kamailio[174]: CRITICAL: <core>
[core/tcp_main.c:4447]: handle_new_connect(): hit the limit of connections per source IP
(100.68.15.172:59946) - rejecting
```
### Additional Information
Using the packages from the official Kamailio repository.
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.7.4 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST,
DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, F_MALLOC, TLSF_MALLOC,
DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535,
DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 11.4.0
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04,
CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->
```
Ubuntu Jammy
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3755
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3755(a)github.com>