Slightly OT: Help with IAX2 protocol/NAT

I have a problem that I need help with, and google is not being very useful at the moment (or I’m feeding it the wrong query, which is probably the case).

I have two Asterisk boxes, both sitting behind a single NAT’ed public IP address. I have IAX2 traffic from Allstar pointing to the app_rpt box, and SIP traffic pointing to the other box which is acting as my home phone system. I keep both systems separate for various reasons, so running this all on one installation was not an option, hence the two separate boxes :slight_smile:

I want to take advantage of the IAX2 protocol for the box running my home phone system outside of my LAN, but the problem is as I only have a single IP address UDP port 4569 is already pointing to the app_rpt box.

I have been shifting a few ideas around in my head, none of which I think will be easy to implement, or even guaranteed to work with my desired results. It’s entirely possible that I may be trying to re-invent the wheel, but as I know there is much talent on this list concerning Asterisk maybe someone already has a solution for this :smiley:

Please reply to me off-list if you can/are willing to offer me some help or maybe even a clue :wink:

73 and tnx
Stephen
K1LNX

···


Stephen Brown - ARS K1LNX

Johnson City, TN EM86
http://www.k1lnx.net
google voice: 423-665-9367


Most certainly!

Set the app_rpt box up so that the default IAX2 port is something other then 4569, like
4568, for example. This needs to be done in the iax.conf (bindport) and static references
to the nodes in rpt.conf (ipaddr:4568). And, of course, forward the public address 4568
to the NAT address for the app_rpt machine. If there is a problem with the router
deciminiating this port info when registering, let us know, and we can override the port
number for you.

Use port 4569 for the phone box as normal.

···

Date: Tue, 27 Oct 2009 23:15:03 -0400
From: k1lnx@k1lnx.net
To: app_rpt-users@qrvc.com
Subject: [App_rpt-users] Slightly OT: Help with IAX2 protocol/NAT

I have a problem that I need help with, and google is not being very useful at the moment (or I’m feeding it the wrong query, which is probably the case).

I have two Asterisk boxes, both sitting behind a single NAT’ed public IP address. I have IAX2 traffic from Allstar pointing to the app_rpt box, and SIP traffic pointing to the other box which is acting as my home phone system. I keep both systems separate for various reasons, so running this all on one installation was not an option, hence the two separate boxes :slight_smile:

I want to take advantage of the IAX2 protocol for the box running my home phone system outside of my LAN, but the problem is as I only have a single IP address UDP port 4569 is already pointing to the app_rpt box.

I have been shifting a few ideas around in my head, none of which I think will be easy to implement, or even guaranteed to work with my desired results. It’s entirely possible that I may be trying to re-invent the wheel, but as I know there is much talent on this list concerning Asterisk maybe someone already has a solution for this :smiley:

Please reply to me off-list if you can/are willing to offer me some help or maybe even a clue :wink:

73 and tnx
Stephen
K1LNX


Stephen Brown - ARS K1LNX

Johnson City, TN EM86
http://www.k1lnx.net
google voice: 423-665-9367


Thanks Jim and all who responded off-list. This wasn’t as clear to me lastnight, I thought this might work with what you have suggested, but wasn’t sure. It makes sense for me to move the port for the app_rpt box.

My other method involved massaging a custom SRV record or writing a very large (and kludgey) set of IPTABLES rules to shift packets around based on address, yep another famous “making it harder than it needs to be” for me :smiley:

lol thanks all and 73…

I’m gonna make my changes now and I’ll let you know if it doesn’t propagate to the network.

Stephen
K1LNX

···

On Wed, Oct 28, 2009 at 6:18 AM, Jim Duuuude telesistant@hotmail.com wrote:

Most certainly!

Set the app_rpt box up so that the default IAX2 port is something other then 4569, like
4568, for example. This needs to be done in the iax.conf (bindport) and static references
to the nodes in rpt.conf (ipaddr:4568). And, of course, forward the public address 4568

to the NAT address for the app_rpt machine. If there is a problem with the router
deciminiating this port info when registering, let us know, and we can override the port
number for you.

Use port 4569 for the phone box as normal.


Date: Tue, 27 Oct 2009 23:15:03 -0400
From: k1lnx@k1lnx.net
To: app_rpt-users@qrvc.com

Subject: [App_rpt-users] Slightly OT: Help with IAX2 protocol/NAT

I have a problem that I need help with, and google is not being very useful at the moment (or I’m feeding it the wrong query, which is probably the case).

I have two Asterisk boxes, both sitting behind a single NAT’ed public IP address. I have IAX2 traffic from Allstar pointing to the app_rpt box, and SIP traffic pointing to the other box which is acting as my home phone system. I keep both systems separate for various reasons, so running this all on one installation was not an option, hence the two separate boxes :slight_smile:

I want to take advantage of the IAX2 protocol for the box running my home phone system outside of my LAN, but the problem is as I only have a single IP address UDP port 4569 is already pointing to the app_rpt box.

I have been shifting a few ideas around in my head, none of which I think will be easy to implement, or even guaranteed to work with my desired results. It’s entirely possible that I may be trying to re-invent the wheel, but as I know there is much talent on this list concerning Asterisk maybe someone already has a solution for this :smiley:

Please reply to me off-list if you can/are willing to offer me some help or maybe even a clue :wink:

73 and tnx
Stephen
K1LNX


Stephen Brown - ARS K1LNX

Johnson City, TN EM86
http://www.k1lnx.net
google voice: 423-665-9367



Stephen Brown - ARS K1LNX
Johnson City, TN EM86
http://www.k1lnx.net
google voice: 423-665-9367