Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Two Asterisks behind NAT and need to link t


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
bilmar_gh at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 2:33 am    Post subject: [asterisk-users] Two Asterisks behind NAT and need to link t Reply with quote

Hi List;

I heared that IAX is good for NATing issues, but I do
not know if it can help me in that senario:

I have two Asterisks machines in different sites and
both are behind NAT (both have private IP address), I
need to link these two asterisks with IAX trunk (if it
help really in such senario), but I do not know if it
will work without doing special routing settings on
the router (like TCP/UDP port mapping or IP
forwarding)? How that will be it if possible? Or I
have to do a kind of port mapping?

If I will need to use port mapping, then I have to map
the TCP and UDP ports that are determined in iax.conf
and rtp.conf files at site A for asterisk ip address
at site A? Or I have to map the TCP and UDP ports that
are in iax.conf and rtp.conf at site B for asterisk ip
address at site A? In other words, if I am at site B
then I have to go for router B and do mapping for
TCP/UDP ports of the asterisk at site B or the
asterisk at site A?

Any help.
Regards
Bilal
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Back to top
thp at westhawk.co.uk
Guest





PostPosted: Wed Jan 02, 2008 9:15 am    Post subject: [asterisk-users] Two Asterisks behind NAT and need to link t Reply with quote

If you are careful, you only need to setup a port forward at one end
of the IAX trunk.

Have one Asterisk register (regularly) with the other.
The second asterisk (server) will need to have port 4569 forwarded
through it's router.
The first asterisk (client) wont need any port forwarding.

Tim.
On 2 Jan 2008, at 10:18, Rob Hillis wrote:

Quote:
The reason that IAX2 is considered good for NAT issues is that it
uses only one port for both control messages and voice traffic as
opposed to SIP that uses a predictable port for control messages and
an unpredictable one for voice/video traffic.

If both servers are behind NAT servers, you will need to ensure that
the appropriate UDP port (by default 4569) are forwarded to your
Asterisk servers. Only this port is required - RTP isn't used by
IAX2.

bilal ghayyad wrote:
Quote:

Hi List;

I heared that IAX is good for NATing issues, but I do
not know if it can help me in that senario:

I have two Asterisks machines in different sites and
both are behind NAT (both have private IP address), I
need to link these two asterisks with IAX trunk (if it
help really in such senario), but I do not know if it
will work without doing special routing settings on
the router (like TCP/UDP port mapping or IP
forwarding)? How that will be it if possible? Or I
have to do a kind of port mapping?

If I will need to use port mapping, then I have to map
the TCP and UDP ports that are determined in iax.conf
and rtp.conf files at site A for asterisk ip address
at site A? Or I have to map the TCP and UDP ports that
are in iax.conf and rtp.conf at site B for asterisk ip
address at site A? In other words, if I am at site B
then I have to go for router B and do mapping for
TCP/UDP ports of the asterisk at site B or the
asterisk at site A?

Any help.
Regards
Bilal



____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
bilmar_gh at yahoo.com
Guest





PostPosted: Wed Jan 02, 2008 10:26 am    Post subject: [asterisk-users] Two Asterisks behind NAT and need to link t Reply with quote

Hi Rob;

Big thanks for your kindly help and answer, so
rtp.conf file is used by sip and h323 only, correct?
In that case if I am going to use the sip trunk then I
need to route the UDP ports used by the rtp.conf file
and that existed in sip.conf, but really i do not know
if any use TCP. Correct?

But I would like to ask how all the calls of the trunk
(sometimes it could be 30 calls for example) will
handled by one port only (in iax protocol)? Does not
mean that in huge calls, sip might work better?

Your kindly help is high appreciated.
Regards
Bilal

-----------------------
The reason that IAX2 is considered good for NAT issues
is that it uses
only one port for both control messages and voice
traffic as opposed to
SIP that uses a predictable port for control messages
and an
unpredictable one for voice/video traffic.

If both servers are behind NAT servers, you /will/
need to ensure that
the appropriate UDP port (by default 4569) are
forwarded to your
Asterisk servers. Only this port is required - RTP
isn't used by IAX2.

bilal ghayyad wrote:
Quote:
Hi List;

I heared that IAX is good for NATing issues, but I
do
Quote:
not know if it can help me in that senario:

I have two Asterisks machines in different sites and
both are behind NAT (both have private IP address),
I
Quote:
need to link these two asterisks with IAX trunk (if
it
Quote:
help really in such senario), but I do not know if
it
Quote:
will work without doing special routing settings on
the router (like TCP/UDP port mapping or IP
forwarding)? How that will be it if possible? Or I
have to do a kind of port mapping?

If I will need to use port mapping, then I have to
map
Quote:
the TCP and UDP ports that are determined in
iax.conf
Quote:
and rtp.conf files at site A for asterisk ip address
at site A? Or I have to map the TCP and UDP ports
that
Quote:
are in iax.conf and rtp.conf at site B for asterisk
ip
Quote:
address at site A? In other words, if I am at site B
then I have to go for router B and do mapping for
TCP/UDP ports of the asterisk at site B or the
asterisk at site A?

Any help.
Regards
Bilal

____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Back to top
thp at westhawk.co.uk
Guest





PostPosted: Wed Jan 02, 2008 11:27 am    Post subject: [asterisk-users] Two Asterisks behind NAT and need to link t Reply with quote

30 calls in a trunk will be fine for IAX.

In fact IAX has a 'trunked' mode that could enable
that allows you to save
quite a lot of bandwidth by shrinking the packet headers
between a pair of asterisk systems.
Tim.

On 2 Jan 2008, at 15:26, bilal ghayyad wrote:

Quote:
Hi Rob;

Big thanks for your kindly help and answer, so
rtp.conf file is used by sip and h323 only, correct?
In that case if I am going to use the sip trunk then I
need to route the UDP ports used by the rtp.conf file
and that existed in sip.conf, but really i do not know
if any use TCP. Correct?

But I would like to ask how all the calls of the trunk
(sometimes it could be 30 calls for example) will
handled by one port only (in iax protocol)? Does not
mean that in huge calls, sip might work better?

Your kindly help is high appreciated.
Regards
Bilal

-----------------------
The reason that IAX2 is considered good for NAT issues
is that it uses
only one port for both control messages and voice
traffic as opposed to
SIP that uses a predictable port for control messages
and an
unpredictable one for voice/video traffic.

If both servers are behind NAT servers, you /will/
need to ensure that
the appropriate UDP port (by default 4569) are
forwarded to your
Asterisk servers. Only this port is required - RTP
isn't used by IAX2.

bilal ghayyad wrote:
Quote:
Hi List;

I heared that IAX is good for NATing issues, but I
do
Quote:
not know if it can help me in that senario:

I have two Asterisks machines in different sites and
both are behind NAT (both have private IP address),
I
Quote:
need to link these two asterisks with IAX trunk (if
it
Quote:
help really in such senario), but I do not know if
it
Quote:
will work without doing special routing settings on
the router (like TCP/UDP port mapping or IP
forwarding)? How that will be it if possible? Or I
have to do a kind of port mapping?

If I will need to use port mapping, then I have to
map
Quote:
the TCP and UDP ports that are determined in
iax.conf
Quote:
and rtp.conf files at site A for asterisk ip address
at site A? Or I have to map the TCP and UDP ports
that
Quote:
are in iax.conf and rtp.conf at site B for asterisk
ip
Quote:
address at site A? In other words, if I am at site B
then I have to go for router B and do mapping for
TCP/UDP ports of the asterisk at site B or the
asterisk at site A?

Any help.
Regards
Bilal




____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
thp at westhawk.co.uk
Guest





PostPosted: Wed Jan 02, 2008 11:29 am    Post subject: [asterisk-users] Two Asterisks behind NAT and need to link t Reply with quote

Sure, but if (as is often the case) you only have control over the
firewall at one end of the
link, you set the forwarding at the end you control and have the far
end to register to you every
30 seconds.

Tim.
On 2 Jan 2008, at 15:13, Rob Hillis wrote:

Quote:
Perhaps. I've never been one to trust that firewalls operate as
they should - I've been bitten far too many times by a firewall that
doesn't quite behave as you expect. Also, when diagnosing network
connectivity problems, I find that it helps to have the rules in
place rather than having to infer the rule.

Tim Panton wrote:
Quote:

If you are careful, you only need to setup a port forward at one end
of the IAX trunk.

Have one Asterisk register (regularly) with the other.
The second asterisk (server) will need to have port 4569 forwarded
through it's router.
The first asterisk (client) wont need any port forwarding.

Tim.
On 2 Jan 2008, at 10:18, Rob Hillis wrote:


Quote:
The reason that IAX2 is considered good for NAT issues is that it
uses only one port for both control messages and voice traffic as
opposed to SIP that uses a predictable port for control messages and
an unpredictable one for voice/video traffic.

If both servers are behind NAT servers, you will need to ensure that
the appropriate UDP port (by default 4569) are forwarded to your
Asterisk servers. Only this port is required - RTP isn't used by
IAX2.

bilal ghayyad wrote:

Quote:
Hi List;

I heared that IAX is good for NATing issues, but I do
not know if it can help me in that senario:

I have two Asterisks machines in different sites and
both are behind NAT (both have private IP address), I
need to link these two asterisks with IAX trunk (if it
help really in such senario), but I do not know if it
will work without doing special routing settings on
the router (like TCP/UDP port mapping or IP
forwarding)? How that will be it if possible? Or I
have to do a kind of port mapping?

If I will need to use port mapping, then I have to map
the TCP and UDP ports that are determined in iax.conf
and rtp.conf files at site A for asterisk ip address
at site A? Or I have to map the TCP and UDP ports that
are in iax.conf and rtp.conf at site B for asterisk ip
address at site A? In other words, if I am at site B
then I have to go for router B and do mapping for
TCP/UDP ports of the asterisk at site B or the
asterisk at site A?

Any help.
Regards
Bilal



____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
andres at paglayan.com
Guest





PostPosted: Wed Jan 02, 2008 7:37 pm    Post subject: [asterisk-users] Two Asterisks behind NAT and need to link t Reply with quote

On Jan 2, 2008, at 12:33 AM, bilal ghayyad wrote:

Quote:
Hi List;

I heared that IAX is good for NATing issues, but I do
not know if it can help me in that senario:

I have two Asterisks machines in different sites and
both are behind NAT (both have private IP address), I
need to link these two asterisks with IAX trunk (if it
help really in such senario), but I do not know if it
will work without doing special routing settings on
the router (like TCP/UDP port mapping or IP
forwarding)? How that will be it if possible? Or I
have to do a kind of port mapping?

If I will need to use port mapping, then I have to map
the TCP and UDP ports that are determined in iax.conf
and rtp.conf files at site A for asterisk ip address
at site A? Or I have to map the TCP and UDP ports that
are in iax.conf and rtp.conf at site B for asterisk ip
address at site A? In other words, if I am at site B
then I have to go for router B and do mapping for
TCP/UDP ports of the asterisk at site B or the
asterisk at site A?

I believe it is mostly a routing thing between your two points,
you are not providing info about your routers,
and the options are quite endless,

if this were my setup what I'd do budget wise is:

1./ setup two IPCops firewall/routers, one at each location,
2./ bridge the two IPCops as if they were in one network using UDP,
3./ shape traffic so VoIP takes priority

With this you can either use SIP or IAX as the natting issues are
likely to go away,
you also get some networking bonus between the two places,
Quote:

Any help.
Regards
Bilal



______________________________________________________________________
______________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/
newsearch/category.php?category=shopping

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services