<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>I would like to report several critical errors in /var/log/ngcp/kamailio-proxy.log<br>
<br>
ERROR: <core> [core/udp_server.c:821]: udp_send(): sendto(... dst:(1.2.3.5:5060) ...) - err: Invalid argument (22)<br>
CRITICAL: <core> [core/udp_server.c:828]: udp_send(): invalid sendto parameters ... server is bound to localhost and attempts to send to the net<br>
ERROR: nathelper [nathelper.c:2458]: nh_timer(): sip udp_send failed<br>
<br>
<b>Cause</b><br>
<br>
This is the nathelper / NAT keepalive (natping) proxy module. From the active config:<br>
- natping_processes = 7, natping_interval = 30<br>
- no natping_socket defined.<br>
<br>
<b>The proxy sockets are 127.0.0.1:5060, 1.2.3.4:5060, 127.0.0.1:5062.</b><br>
<br>
REGISTERS arrive at the proxy from the load balancer via loopback, so the socket stored for contacts is 127.0.0.1. When natping tries to send a keepalive to the contact's public IP using the loopback socket as the source, the kernel rejects sendto() with EINVAL(22)
"server is bound to localhost". With ping_nated_only=0, it also tries non-NAT peers.<br>
<br>
<b>Impact</b><br>
<br>
- CPU waste on the 7 natping processes and hundreds of MB of logs per day (risk of filling up the /var disk).<br>
- NAT keepalives don't work for anyone: the NAT pinholes of phones actually behind the NAT are no longer refreshed after the NAT timeout, incoming calls to those phones may no longer arrive.<br>
<br>
Do you have any solutions?<br>
Version mr-13.5.1</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
<div class="" style="font-family:'segoe ui' ,'lucida sans' ,sans-serif; font-size:14.16px">
<strong class=""><span class="" style="font-family:'arial' ,'helvetica' ,sans-serif; font-size:small">----------</span></strong></div>
<div class="" style="font-family:'segoe ui' ,'lucida sans' ,sans-serif; font-size:14.16px">
<strong class=""><span class="" style="font-family:'arial' ,'helvetica' ,sans-serif; font-size:small">Cappellari Danny</span></strong></div>
<div class=""><span class="" style="font-size:10pt"><span style="font-family:'calibri' ,'helvetica' ,sans-serif ,'open sans'; font-size:14.6667px">CEO</span> | <span class="" style="color:#000080"><strong class="">ConnectLife S.p.A</strong></span></span></div>
<div> </div>
<div class=""><span class="" style="font-size:10pt">Tel. <span id="OBJ_PREFIX_DWT183_com_zimbra_phone" class="Object" style="color:#005a95"><a style="color:#005a95" id="LPNoLP">+39 045 2081019</a></span> | Mobile: <span id="OBJ_PREFIX_DWT184_com_zimbra_phone" class="Object" style="color:#005a95"><a style="color:#005a95" id="LPNoLP">+39
392 4206436</a></span></span></div>
<div class=""><span class="" style="font-size:10pt"><span id="OBJ_PREFIX_DWT185_ZmEmailObjectHandler" class="Object" style="color:#005a95"><span id="OBJ_PREFIX_DWT193_ZmEmailObjectHandler" class="Object"><a href="mailto:cappellari@connectlife.it" target="_blank" rel="nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer nofollow noopener noreferrer" style="color:#005a95" id="LPNoLP">cappellari@connectlife.it</a></span></span></span></div>
<div style="font-family:'helvetica'; font-size:12px"> </div>
<div style="font-family:'helvetica'; font-size:12px"><img class="EmojiInsert" alt="1770113372656" src="cid:79b731ab-88b0-4791-afd5-2a415b68313d"><br>
</div>
<div class="" style="font-family:'segoe ui' ,'lucida sans' ,sans-serif; font-size:14.16px">
<div style="font-family:'helvetica'; text-align:justify"><span class="" style="font-size:8pt; color:rgb(56,56,56); font-family:Arial,Helvetica,sans-serif"><br>
</span></div>
<div style="font-family:'helvetica'; text-align:justify"><span class="" style="font-size:8pt; color:rgb(56,56,56); font-family:Arial,Helvetica,sans-serif"><br>
<div>
<p class="MsoNormal" style="text-align:justify"><b>Informativa Privacy (art. 13 GDPR):</b> I dati personali trasmessi con la presente comunicazione saranno trattati da Connectlife S.p.A. nel rispetto del Regolamento (UE) 2016/679. Sul nostro sito sono disponibili
informative specifiche per le diverse categorie di interessati. La invitiamo a consultare quella di Suo interesse alla pagina seguente per conoscere le finalit del trattamento ed i Suoi diritti:
<a href="https://www.connectlife.it/documentazione/" class="OWAAutoLink" id="LPNoLP">
https://www.connectlife.it/documentazione/</a></p>
</div>
<br>
</span></div>
</div>
<br>
<p></p>
</div>
</div>
</div>
</body>
</html>