[OpenSIPS-Users] media server behind nat

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Feb 6 16:03:45 CET 2014


Hello,

There is also another much simpler solution. Stefano correctly point out 
that new need two "interfaces" as you want to interact with 2 different 
networks (private and public) in different ways (you should do the 
advertising only for the traffic going to public interface).

Here is what I suggest:
     - keep the current private IP you now on OpenSIPS -> IPa
     - add (on the same interface as IPa) a second private IP -> IPb
     - for IPb set advertising the public IP
     - for new calls, from MS to GW, switch from IPa to IPb (use the 
force_send_socket() function)
http://www.opensips.org/Documentation/Script-CoreFunctions-1-10#toc15)
     - for new calls, from GW to MS, switch from IPb to IPa

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 06.02.2014 09:38, Stefano Pisani wrote:
> There are a problem in the network configuration.
> Opensips has only one network card, in this way it cound only use one 
> IP but it actually has two IPs (one external and one interna).
> You need to enable a second network card with a public IP (in the 
> DMZ)  and use mhomed=1 in configuration to change IP in SIP header 
> according to interface used.
>
> Or you can use (if available and working properly) the SIP ALG in you 
> firewall instead of advertising_address.
>
> The third option is to create DNAT (with different port) also for 
> media server so all server are on public IP.
>
> You can't mix public and private IP as you done using a single network 
> card.
>
> s
>
> Il 06/02/2014 03.47, Tony Ward ha scritto:
>>
>> *From:*Tony Ward
>> *Sent:* Wednesday, February 05, 2014 3:43 PM
>> *To:* 'stefano.pisani at omnianet.it'; 'OpenSIPS users mailling list'
>> *Subject:* RE: [OpenSIPS-Users] media server behind nat
>>
>> Sorry for the lack of clarity.  Network drawing is at 
>> http://www.ais-rx.com/pub/network.jpg
>>
>> Thanks,
>>
>> Tony
>>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140206/152ae12c/attachment-0001.htm>


More information about the Users mailing list