[SR-Users] set_advertised_address

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 5 17:30:12 CET 2018


It is not about an external network interface, but external
traffic/devices. The NAT in this case is a port forwarding firewall,
like Amazon or Google cloud, where you have a local address on server
and the firewall is forwarding by port all traffic from an assigned
public address.

Such scenario is quite common in enterprise environment, the devices on
local network connect by private IP, and the external devices connect to
the firewall ip and this one does port forwarding.

Cheers,
Daniel

On 05.12.18 16:56, Sergiu Pojoga wrote:
> Slightly confused here... didn't he say that Kamailio and PBX are
> behind NAT? If so, what external interface are we talking about?
>
> On Wed, Dec 5, 2018 at 9:18 AM Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     you do not need a second kamailio, the same instance can listen on
>     multiple sockets. You can also use a single ip, just listen on one
>     port
>     for traffic from local network and on another port for external
>     traffic
>     (this socket with advertise address).
>
>     If the router cannot handle dns query based on local traffic, most
>     devices support so called outbound proxy address, you can set that to
>     the sip server address with ip.
>
>     Cheers,
>     Daniel
>
>     On 05.12.18 13:02, Kjeld Flarup wrote:
>     > That might work, provided that the router can handle a local DNS.
>     >
>     > It would, however still require adding an extra Kamailio
>     instance with
>     > another IP. Plus a branch of the invite to both local and public
>     > instance. Plus an extra location table.
>     >
>     > -------------------- Med Liberalistiske Hilsner
>     ----------------------
>     >    Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min
>     tegnebog
>     >    Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
>     >    Den ikke akademiske hjemmeside for liberalismen -
>     www.liberalismen.dk <http://www.liberalismen.dk>
>     >
>     > On 12/5/18 12:11 PM, Daniel Tryba wrote:
>     >> On Wed, Dec 05, 2018 at 09:40:38AM +0100, Kjeld Flarup wrote:
>     >>> Yes, the Phones may be on either local LAN (Wifi) and Internet via
>     >>> mobile
>     >>> data.
>     >> How about use different local address, 1 with an advertise for
>     external
>     >> clients, 1 without. Have local DNS resolv to the 1 ip without
>     advertise.
>     >>
>     >> _______________________________________________
>     >> Kamailio (SER) - Users Mailing List
>     >> sr-users at lists.kamailio.org <mailto: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 <mailto:sr-users at lists.kamailio.org>
>     > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>     -- 
>     Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
>     www.twitter.com/miconda <http://www.twitter.com/miconda> --
>     www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio World Conference -- www.kamailioworld.com
>     <http://www.kamailioworld.com>
>     Kamailio Advanced Training, Nov 12-14, 2018, in Berlin --
>     www.asipto.com <http://www.asipto.com>
>
>
>     _______________________________________________
>     Kamailio (SER) - Users Mailing List
>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20181205/a5b50494/attachment.html>


More information about the sr-users mailing list