How to add repeaters, private reflectors and other gateways
Dec 4, 2014 17:38:14 GMT -7
Post by W6KD on Dec 4, 2014 17:38:14 GMT -7
The hosts files that are distributed with DStar Commander, and those which are obtained when performing an update (by sending the HOSTUPDT command in your URCall field), are set up ONLY to connect to reflectors, including all the known XRF, DCS, and REF reflectors.
If you want to connect to the internet gateway on a particular repeater (if, for example it is not normally connected to a reflector), or to a non-public reflector, then you will need to add the gateway to the hosts files yourself. Note that if the target repeater is normally connected to a reflector, it's considered poor form to use the repeater's own gateway rather than the reflector, as most repeater internet gateways have far less bandwidth than most reflectors, and they need to pass internode backbone traffic across that link as well. In other words, if the repeater is connected to a reflector, then it's best to connect your Raspberry Pi gateway there. A number of repeaters are also set up to refuse connections from user nodes directly to the internet gateway.
To add a gateway to your DStar Commander image, it's best to do this in the /root directory...if a hosts file is present there, it is seen and processed first, and if you lock an entry in this top-level hosts file, then it trumps all other hosts sources, including the default hosts files in /usr/local/etc and the online callsign servers. The hosts file in /root is also never bothered by the automatic RF-triggered hosts file updates (those triggered with the HOSTUPDT command). By contrast, if you add entries to the default hosts files in /usr/local/etc, the next time you run the HOSTUPDT command, the hosts file you modified will be overwritten by the new hosts file downloaded from the servers, and you would lose the changes you made (the old file is saved to a .bak file).
For repeaters and both XRF/REF reflectors, you want to place the additional entry or entries into /root/DPlus_Hosts.txt -- note that in Linux, upper/lower case always matters in file names, so DPlus_Hosts.txt is *not* the same as dplus_hosts.txt Run nano or another editor with superuser priveleges (i.e. with "sudo nano" command) to edit the file (if the file doesn't already exist, you will open the editor and then create the file when you save it at the end). The file is a list of gateways, one per line, with the name of the gateway (all caps) followed by a tab or at least one space, followed by the TCP/IP address of the gateway, and optionally followed by a space and an upper-case "L" if the entry is to be locked. Entries for additional gateways go on subsequent lines. For example:
W0ABC 123.45.678.90 L
W1CDH 234.55.66.77
XRF666 beelzebub.net L
In the example above, with these lines added to the /root/DPlus_Hosts.txt file, repeater gateways are defined for the W0ABC and W1CDH repeaters, and the W0ABC entry is locked, meaning that if an entry for W0ABC appears in the default hosts file or on the online callsign server, it will be ignored in favor of your entry. An additional nonpublic XReflector, XRF666, is also defined and locked. The locking feature is particularly useful when a repeater or reflector has recently had its IP address changed and the change is not yet reflected on the hosts file servers and/or the online callsign servers.
Note also that, because the /root level hosts file(s) are not touched by the update process, if you make an entry there and lock it, and then that data later changes, you will need to make the correction in the /root level file yourself.
Regards
If you want to connect to the internet gateway on a particular repeater (if, for example it is not normally connected to a reflector), or to a non-public reflector, then you will need to add the gateway to the hosts files yourself. Note that if the target repeater is normally connected to a reflector, it's considered poor form to use the repeater's own gateway rather than the reflector, as most repeater internet gateways have far less bandwidth than most reflectors, and they need to pass internode backbone traffic across that link as well. In other words, if the repeater is connected to a reflector, then it's best to connect your Raspberry Pi gateway there. A number of repeaters are also set up to refuse connections from user nodes directly to the internet gateway.
To add a gateway to your DStar Commander image, it's best to do this in the /root directory...if a hosts file is present there, it is seen and processed first, and if you lock an entry in this top-level hosts file, then it trumps all other hosts sources, including the default hosts files in /usr/local/etc and the online callsign servers. The hosts file in /root is also never bothered by the automatic RF-triggered hosts file updates (those triggered with the HOSTUPDT command). By contrast, if you add entries to the default hosts files in /usr/local/etc, the next time you run the HOSTUPDT command, the hosts file you modified will be overwritten by the new hosts file downloaded from the servers, and you would lose the changes you made (the old file is saved to a .bak file).
For repeaters and both XRF/REF reflectors, you want to place the additional entry or entries into /root/DPlus_Hosts.txt -- note that in Linux, upper/lower case always matters in file names, so DPlus_Hosts.txt is *not* the same as dplus_hosts.txt Run nano or another editor with superuser priveleges (i.e. with "sudo nano" command) to edit the file (if the file doesn't already exist, you will open the editor and then create the file when you save it at the end). The file is a list of gateways, one per line, with the name of the gateway (all caps) followed by a tab or at least one space, followed by the TCP/IP address of the gateway, and optionally followed by a space and an upper-case "L" if the entry is to be locked. Entries for additional gateways go on subsequent lines. For example:
W0ABC 123.45.678.90 L
W1CDH 234.55.66.77
XRF666 beelzebub.net L
In the example above, with these lines added to the /root/DPlus_Hosts.txt file, repeater gateways are defined for the W0ABC and W1CDH repeaters, and the W0ABC entry is locked, meaning that if an entry for W0ABC appears in the default hosts file or on the online callsign server, it will be ignored in favor of your entry. An additional nonpublic XReflector, XRF666, is also defined and locked. The locking feature is particularly useful when a repeater or reflector has recently had its IP address changed and the change is not yet reflected on the hosts file servers and/or the online callsign servers.
Note also that, because the /root level hosts file(s) are not touched by the update process, if you make an entry there and lock it, and then that data later changes, you will need to make the correction in the /root level file yourself.
Regards