<div dir="auto">As long as traffic to IPv4_public : 5060 lands on IPv4_private: 5060, yes, you can use this double NAT setup.</div><div dir="auto"><br></div><div dir="auto">-ovidiu</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 5, 2022 at 08:35 Youssef Boujraf <<a href="mailto:yboujraf@gmail.com">yboujraf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Question :</div><div><br></div><div>If kamailio is behind a double NAT setup <br></div><div><br></div><div>Internet - (Model-router : NAT 1) - (router - NAT2) - kamailio</div><div><br></div><div>Could I use this settings ?</div></div><div dir="ltr"><div><br></div><div>
<div>- For public softphone :</div><span><div><br></div><div>
<div style="margin-left:40px">
listen=udp:
IPv4_private:
5060
advertise
IPv4_public
:
5060 <br></div></div><div><br>
</div></span><div style="margin-left:40px">Domain :
IPv4_public:5060<br></div><div><br></div><div>- For private softphone on same vlan as kamailio<br></div><div><div style="margin-left:40px"><br>
</div><div style="margin-left:40px">listen=udp:
IPv4_private:5066</div>
</div><div><br></div><div style="margin-left:40px">Domain :
IPv4_private:5066</div><span><div><br></div></span>
</div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div>Best Regards,<br><br>Youssef BOUJRAF <br>Email: <a href="mailto:yboujraf@gmail.com" target="_blank">yboujraf@gmail.com</a><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 5, 2022 at 1:23 AM Youssef Boujraf <<a href="mailto:yboujraf@gmail.com" target="_blank">yboujraf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear,</div><div><br></div><div>Then;</div><div><br></div><div>- For public softphone :</div><div><br></div><div>
<div style="margin-left:40px">
listen=udp:
IPv4_private:
5060
advertise
IPv4_public
:
5060 <br></div></div><div><br>
</div><div style="margin-left:40px">Domain :
IPv4_public:5060<br></div><div><br></div><div>- For private softphone on same vlan as kamailio<br></div><div><div style="margin-left:40px"><br>
</div><div style="margin-left:40px">listen=udp:
IPv4_private:5066</div>
</div><div><br></div><div style="margin-left:40px">Domain :
IPv4_private:5066</div><div><br></div><div><br></div><div><br></div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Best Regards,<br><br>Youssef BOUJRAF <br>Email: <a href="mailto:yboujraf@gmail.com" target="_blank">yboujraf@gmail.com</a><br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 4, 2022 at 3:00 PM Youssef Boujraf <<a href="mailto:yboujraf@gmail.com" target="_blank">yboujraf@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Dear</div><div><br></div><div>I am trying to understand how "listen" and "advertise" work for sip signaling purpose (
corebooks : <a href="http://www.kamailio.org/wiki/cookbooks/5.4.x/core#listen" target="_blank">listen</a> and advertise )<br></div><div><br></div><div>Flow : kamailio behind NAT using softphones on private and public networks.</div><br><div></div><div>- kamailio :</div><div><br></div><div>Network :</div><div><br></div><div style="margin-left:40px">IPv4_private 192.168.1.6 / IPv4_public<br></div><div style="margin-left:40px"></div><div><br></div><div>kamailio.cfg :</div><div><br></div><div style="margin-left:40px">listen=udp:
IPv4_private:
5060
advertise
IPv4_public
:
5060 </div><div><br></div><div>- uac (softphone) :</div><div><br></div><div style="margin-left:40px">zoiper, microsip, cisco spa508g<br></div><div><br></div><div>USE CASE :</div><div><br></div><div>I 'd like to force all softphone on the same local network to reach kamailio through a public ip address.</div><div><br></div><div></div><div>??? QUESTION : Do I need to REGISTER on IPv4_private address of Kamailio OR REGISTER on IPv4_public address of kamailio or DEFINE another "listen" with another PORT WITHOUT "advertise" for softphone on same kamailio network ?</div><div><br></div><div style="margin-left:40px">
listen=udp:
IPv4_private:
5060
advertise
IPv4_public
:
5060 <br></div><div style="margin-left:40px">
listen=udp:
IPv4_private:
5066<br></div><div><div><br></div><div><br></div><div>Do I need to use "kamctl ps" to verify which interface is listening on port ?<br></div><div><br></div><div>Thanks in advance</div><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div>Best Regards,<br><br>Youssef BOUJRAF <br>Email: <a href="mailto:yboujraf@gmail.com" target="_blank">yboujraf@gmail.com</a><br></div></div></div></div></div></div></div>
</blockquote></div></div>
</blockquote></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">VoIP Embedded, Inc.<br><a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a></div>