[arm-allstar] 2 nodes behind 1 IP address
Doug Crompton
doug at crompton.com
Sat Aug 29 10:51:19 EST 2015
Just to make that clear. Allstar unlike IRLP or Echolink has no limit up to available resources on the number of nodes or servers that can be behind one public IP address.
A server is one computer. In the case of users on this list a BBB or RPI2. You can put multiple nodes on one server but radio nodes on each server are limited by system capabilities. Recommendations are one node maximum on the BBB and two on the RPi2.
There is no limit on servers up to a reasonable and manageable number. So you could have 10 servers each with two nodes for a total of 20 nodes using RPi2's. Not practical but it could be done.
If you just had one server it would be assigned an IP address and port. In this case you would probably just use the default IAX port 4569. No port changes would be needed at allstarlink.org. You would need to port forward that port in your router to the IP address of the server for incoming connections to work.
Each server you add would need to have a distinct port and IP address in your LAN and the assigned port would need to be changed in both iax.conf on the server and also in the network settings for that server at allstarlink.org
Local IP addresses could be DHCP with persistent assignment base on the server mac address but for multiple servers it would probably be better to use static IP assignment for local addressees. The router has to have port forwarding for the IAX port to each server for incoming connections to work.
While persistent DHCP IP address assignment is nice be aware it is based on that one specific board which has a distinct MAC address. If you change boards, even if you use the same SD card things will break until you go into your router and make changes. If you use a static IP that would not happen.
There are advantages and disadvantages to both methods so you have to weigh your application. If total redundancy is your thing - being able to swap in a new board with cloned SD card then static would be the way to go.
Multiple servers need addressing setup in rpt.conf in order to be able to connect and talk to each other locally. Both IP local IP addresses and ports need to be known at server about all the other servers. There is a how-to on this on the hamvoip.org web page.
The port is the key one you have one public IP and multiple servers. Your router knows how to pass the traffic locally by using the port. Each node is assigned a IP address and port in the Allstar database. If you had multiple servers the IP address would be the same and the port would be different for each server.
Here is an example from the database of two nodes on one server. They both have identical routing information.
29014=radio at 73.30.112.57:4569/29014,73.30.112.57
29015=radio at 73.30.112.57:4569/29015,73.30.112.57
and two nodes on different servers and same public IP. The ports define the servers.
27225=radio at 73.30.112.57:4569/27225,73.30.112.57
42291=radio at 73.30.112.57:4560/42291,73.30.112.57
If you want to run two nodes with an RPi2 you have two choices. Put both nodes on the one server or use two RPi2's and setup two servers each with one node. Of course each could also have two nodes for a total of four.
Putting two nodes on one server is described in the setup how-to and there is a separate how-to on multiple servers at hamvoip.org.
http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/config-setup.pdf
http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/multi-server%20howto.pdf
73 Doug
WA3DSP
http://www.crompton.com/hamradio
From: kk6ecm at gmail.com
To: arm-allstar at hamvoip.org
Date: Sat, 29 Aug 2015 06:53:30 -0700
Subject: Re: [arm-allstar] 2 nodes behind 1 IP address
Yes, you can run multiple nodes on one
server, and multiple servers behind one IP address. Each server requires a
separate sub IP address, and corresponding port number. The port number
differentiates the servers via the public IP address. The router ports are set for
the server, not each node. In iaxRpt, the node number is used for the account
"Name."
iasRpt example
Name Description
Host Username
(setup in iax.conf and extensions.conf)
<node 1> Node 1 / Server
1 192.168.x.105:4569
gui (or whatever you choose for the iax.conf stanza name)
<node x> Node x / Server
2 192.168.x.120:4568 gui
<node y> Node y / ext
server 245.xxx.x.xxx:4569 gui
(external server, not at your public IP address)
see http://docs.allstarlink.org/drupal/node/132
From:
arm-allstar-bounces at hamvoip.org [mailto:arm-allstar-bounces at hamvoip.org] On Behalf Of Chuck Kraly
Sent: Saturday, August 29, 2015
5:28 AM
To: ARM
Allstar
Subject: Re: [arm-allstar] 2 nodes
behind 1 IP address
yes. you may have to set one iax port different. I have been able to go
with both on 4569, and also had to have different ports. kinda weird but it has
happened.
On Sat, Aug 29, 2015 at 7:17 AM, Sal P. De Franco <sal at spdavanti.com>
wrote:
Can 2 nodes work behind 1 IP address
Sal
N6SPD
_______________________________________________
arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org
_______________________________________________
arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20150829/04d3fc35/attachment-0001.html>
More information about the arm-allstar
mailing list