[asterisk-users] Nat=yes

Muhammad Ali ali_i31 at yahoo.com
Sun Apr 24 04:55:57 CDT 2011


Hi,

When NAT = YES, Asterisk server will extract IP from the network layer. 
 
When Nat = No, the Asterisk server will respond to the IP in the SIP header. Am I right?

May be such type of options can be helpful for SIP application developers.

Can't think of a scenario but If it is set to be YES for all peers, what will happen is that the response to all the SIP request will be routed to the IP in the network layer. IP's in the SIP header will be ignored,  should not create a problem.
 

Regards

--- On Sun, 4/24/11, Steve Totaro <stotaro at asteriskhelpdesk.com> wrote:

From: Steve Totaro <stotaro at asteriskhelpdesk.com>
Subject: Re: [asterisk-users] Nat=yes
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Date: Sunday, April 24, 2011, 2:13 PM



On Thu, Apr 21, 2011 at 5:42 AM, Alexandru Oniciuc <Alexandru.Oniciuc at trivenet.it> wrote:

Dear * users, in your opinion, when using a * as a public server, is good practice enabling nat=yes in sip.conf for all the peers?
Can anyone imagine a scenario when enabling this parameter (even for peers that don’t require it) can cause problems? 
Regards and thanks in advance,Alex 

I asked this same exact question several years ago.  There are many replies with different takes.  I would skim through Alex's posts, there is really nothing worth reading except it will break the SIP RFC handed down by the internets themselves.


I use nat=yes all the time and it works just fine.

http://www.mail-archive.com/asterisk-users@lists.digium.com/msg213941.html


Nobody actually answered the question about the bad side, they just argued about the SIP RFC.

Many others agreed to make it default behavior and that setting nat=yes gives a an extra degree of security.


RFCs are great and all, but in the real world, phones just need to work.

Thanks,
Steve Totaro
 


-----Inline Attachment Follows-----

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110424/bf519292/attachment.htm>


More information about the asterisk-users mailing list