<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ampr.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KN6DWI</id>
	<title>44Net Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ampr.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=KN6DWI"/>
	<link rel="alternate" type="text/html" href="https://wiki.ampr.org/wiki/Special:Contributions/KN6DWI"/>
	<updated>2026-11-28T03:22:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3180</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3180"/>
		<updated>2026-11-07T03:33:45Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added references header&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is highly recommended, but not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Expert&amp;lt;/code&amp;gt; in the top bar, then to &amp;lt;code&amp;gt;Quick Edir &amp;gt; DMR GW&amp;lt;/code&amp;gt;. For each DMR network you want to use, change &amp;lt;code&amp;gt;Enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Fill in the password field with the password provided to you by the network, fill in your DMR ID, and set your TGRewrites as desired. The format is &amp;lt;code&amp;gt;RF time slot, RF talk group, network time slot, network talk group, talk group number range&amp;lt;/code&amp;gt;. Settings on the RF side are what your radio should use, and they will be translated to the network side values by DMRGateway. The range specifies how large of a contiguous block of talk groups should be translated from the specified starting location. For a single talk group, set it to 1. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1969, 2, 1969, 1&amp;lt;/code&amp;gt; will translate TG 1969 on TS 2 on RF to TG 1969 on TS 2 in the network where this rewrite is set. This is an example of a rewrite for a single talkgroup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1100, 2, 100, 100&amp;lt;/code&amp;gt; will translate TGs 1100-1200 on TS 2 on RF to TGs 100-200 on TS 2 in the network where this rewrite is set. This is an example of using a prefix for talk groups on the RF side, which can let you work around conflicting talk group numbers between different networks when you want to connect both to your hotspot.&lt;br /&gt;
&lt;br /&gt;
The same syntax can be used in the &amp;lt;code&amp;gt;PCRewrite&amp;lt;/code&amp;gt; field to translate private calls. If you want to use a network that is not included by default, you can overwrite one of the existing networks. If you want to use all the existing networks as well as additional ones, &lt;br /&gt;
you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add a new &amp;lt;code&amp;gt;[DMR Network X]&amp;lt;/code&amp;gt; header for each additional network, where X is the next number not in use. Then, fill in the required fields present in other networks.&lt;br /&gt;
If a network&#039;s configuration is missing desired fields, or doesn&#039;t have enough of an existing field such as &amp;lt;code&amp;gt;TGRewrite&amp;lt;/code&amp;gt;s, you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add fields under that network&#039;s section. &lt;br /&gt;
&lt;br /&gt;
After configuring each network, make sure to save that network&#039;s configuration with the &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
== Step 6: Verify Functionality ==&lt;br /&gt;
To ease later troubleshooting of the WireGuard tunnel, verify that your MMDVMHost/DMRGateway configuration is functional before installing the tunnel. &lt;br /&gt;
Key up with your radio on one of the configured talk group/time slot combos, and ensure your traffic is making it out to the network. &lt;br /&gt;
This can be done using the network&#039;s parrot talk group, which plays your audio back to you, or ensuring your callsign appears on the network&#039;s &amp;quot;last heard&amp;quot; page. &lt;br /&gt;
&lt;br /&gt;
== Step 7: Install wireguard-tools ==&lt;br /&gt;
SSH into Pi-Star and run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to make the filesystem writable. Then, run &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;, let that finish, and run &amp;lt;code&amp;gt;sudo apt install wireguard-tools&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 8: Set up 44Net Connect tunnel ==&lt;br /&gt;
=== Make network configuration changes ===&lt;br /&gt;
The default network configuration on Pi-Star denies outgoing traffic not explicitly allowed by a rule. &lt;br /&gt;
This will block your WireGuard tunnel, and provides little additional security, so you&#039;ll need to change the configuration. &lt;br /&gt;
Andy MW0MWZ says that the correct way to change Pi-Star network configuration is to write custom &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; rules in &amp;lt;code&amp;gt;/root/ipv4.fw&amp;lt;/code&amp;gt;, then run &amp;lt;code&amp;gt;sudo pistar-firewall&amp;lt;/code&amp;gt; to load the rules persistently.&amp;lt;ref&amp;gt;Personal communications with Connor KN6DWI, November 2026.&amp;lt;/ref&amp;gt; &lt;br /&gt;
This file location and program are Pi-Star specific and not applicable to other Debian installations. &lt;br /&gt;
The file does not exist by default, so you&#039;ll need to create it. &lt;br /&gt;
If you haven&#039;t already done so in this SSH session, run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to make the filesystem read-write.&lt;br /&gt;
Then, run &amp;lt;code&amp;gt;sudo nano /root/ipv4.fw&amp;lt;/code&amp;gt; and add the following line: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;iptables -P OUTPUT ACCEPT&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Ctrl + X to exit, Y to save, and enter to save to the default location. Then, run &amp;lt;code&amp;gt;sudo pistar-firewall&amp;lt;/code&amp;gt;. You can cancel it with Ctrl + C after it says &amp;lt;code&amp;gt;Custom IPv4 Firewall rules loaded...&amp;lt;/code&amp;gt; if you didn&#039;t set any IPv6 rules, since after that it&#039;s only performing slow port lookups for the informational printout. &lt;br /&gt;
&lt;br /&gt;
=== Enable tunnel ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt; to copy your wg-quick config from your computer to Pi-Star. First copy it to your home directory: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;scp ~/Downloads/&amp;lt;hostname&amp;gt;_wg-quick.conf pi-star@&amp;lt;local IP&amp;gt;:/home/pi-star/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then copy it to &amp;lt;code&amp;gt;/etc/wireguard&amp;lt;/code&amp;gt; using superuser privileges.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo cp ~/&amp;lt;hostname&amp;gt;_wg-quick.conf /etc/wireguard&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;code&amp;gt;sudo systemctl edit wg-quick@&amp;lt;name of config file without the extension&amp;gt;&amp;lt;/code&amp;gt;, and insert the following line where indicated by the comments: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[Unit]&lt;br /&gt;
After=ntpd.service&lt;br /&gt;
Wants=ntpd.service&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is necessary because WireGuard requires accurate system time, but the Pi does not come with a real time clock to maintain the time between boots. &lt;br /&gt;
This results in the tunnel attempting to start before the time sync, which will fail and simultaneously block all network traffic as it tries to get through the failing tunnel.&amp;lt;ref&amp;gt;https://forum.openwrt.org/t/booting-wireguard-on-routers-without-a-realtime-clock/143249&amp;lt;/ref&amp;gt;&lt;br /&gt;
For some reason, this is not an issue with most Raspberry Pi OS installations, only with Pi-Star. &lt;br /&gt;
These modifications force the tunnel to wait for time sync via &amp;lt;code&amp;gt;ntpd&amp;lt;/code&amp;gt; before starting. &lt;br /&gt;
&lt;br /&gt;
Finally, run &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl enable --now wg-quick@&amp;lt;name of config file without extension&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3179</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3179"/>
		<updated>2026-11-07T03:33:25Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote set up 44Net Connect tunnel&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is highly recommended, but not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Expert&amp;lt;/code&amp;gt; in the top bar, then to &amp;lt;code&amp;gt;Quick Edir &amp;gt; DMR GW&amp;lt;/code&amp;gt;. For each DMR network you want to use, change &amp;lt;code&amp;gt;Enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Fill in the password field with the password provided to you by the network, fill in your DMR ID, and set your TGRewrites as desired. The format is &amp;lt;code&amp;gt;RF time slot, RF talk group, network time slot, network talk group, talk group number range&amp;lt;/code&amp;gt;. Settings on the RF side are what your radio should use, and they will be translated to the network side values by DMRGateway. The range specifies how large of a contiguous block of talk groups should be translated from the specified starting location. For a single talk group, set it to 1. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1969, 2, 1969, 1&amp;lt;/code&amp;gt; will translate TG 1969 on TS 2 on RF to TG 1969 on TS 2 in the network where this rewrite is set. This is an example of a rewrite for a single talkgroup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1100, 2, 100, 100&amp;lt;/code&amp;gt; will translate TGs 1100-1200 on TS 2 on RF to TGs 100-200 on TS 2 in the network where this rewrite is set. This is an example of using a prefix for talk groups on the RF side, which can let you work around conflicting talk group numbers between different networks when you want to connect both to your hotspot.&lt;br /&gt;
&lt;br /&gt;
The same syntax can be used in the &amp;lt;code&amp;gt;PCRewrite&amp;lt;/code&amp;gt; field to translate private calls. If you want to use a network that is not included by default, you can overwrite one of the existing networks. If you want to use all the existing networks as well as additional ones, &lt;br /&gt;
you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add a new &amp;lt;code&amp;gt;[DMR Network X]&amp;lt;/code&amp;gt; header for each additional network, where X is the next number not in use. Then, fill in the required fields present in other networks.&lt;br /&gt;
If a network&#039;s configuration is missing desired fields, or doesn&#039;t have enough of an existing field such as &amp;lt;code&amp;gt;TGRewrite&amp;lt;/code&amp;gt;s, you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add fields under that network&#039;s section. &lt;br /&gt;
&lt;br /&gt;
After configuring each network, make sure to save that network&#039;s configuration with the &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
== Step 6: Verify Functionality ==&lt;br /&gt;
To ease later troubleshooting of the WireGuard tunnel, verify that your MMDVMHost/DMRGateway configuration is functional before installing the tunnel. &lt;br /&gt;
Key up with your radio on one of the configured talk group/time slot combos, and ensure your traffic is making it out to the network. &lt;br /&gt;
This can be done using the network&#039;s parrot talk group, which plays your audio back to you, or ensuring your callsign appears on the network&#039;s &amp;quot;last heard&amp;quot; page. &lt;br /&gt;
&lt;br /&gt;
== Step 7: Install wireguard-tools ==&lt;br /&gt;
SSH into Pi-Star and run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to make the filesystem writable. Then, run &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;, let that finish, and run &amp;lt;code&amp;gt;sudo apt install wireguard-tools&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 8: Set up 44Net Connect tunnel ==&lt;br /&gt;
=== Make network configuration changes ===&lt;br /&gt;
The default network configuration on Pi-Star denies outgoing traffic not explicitly allowed by a rule. &lt;br /&gt;
This will block your WireGuard tunnel, and provides little additional security, so you&#039;ll need to change the configuration. &lt;br /&gt;
Andy MW0MWZ says that the correct way to change Pi-Star network configuration is to write custom &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; rules in &amp;lt;code&amp;gt;/root/ipv4.fw&amp;lt;/code&amp;gt;, then run &amp;lt;code&amp;gt;sudo pistar-firewall&amp;lt;/code&amp;gt; to load the rules persistently.&amp;lt;ref&amp;gt;Personal communications with Connor KN6DWI, November 2026.&amp;lt;/ref&amp;gt; &lt;br /&gt;
This file location and program are Pi-Star specific and not applicable to other Debian installations. &lt;br /&gt;
The file does not exist by default, so you&#039;ll need to create it. &lt;br /&gt;
If you haven&#039;t already done so in this SSH session, run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to make the filesystem read-write.&lt;br /&gt;
Then, run &amp;lt;code&amp;gt;sudo nano /root/ipv4.fw&amp;lt;/code&amp;gt; and add the following line: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;iptables -P OUTPUT ACCEPT&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Press Ctrl + X to exit, Y to save, and enter to save to the default location. Then, run &amp;lt;code&amp;gt;sudo pistar-firewall&amp;lt;/code&amp;gt;. You can cancel it with Ctrl + C after it says &amp;lt;code&amp;gt;Custom IPv4 Firewall rules loaded...&amp;lt;/code&amp;gt; if you didn&#039;t set any IPv6 rules, since after that it&#039;s only performing slow port lookups for the informational printout. &lt;br /&gt;
&lt;br /&gt;
=== Enable tunnel ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;scp&amp;lt;/code&amp;gt; to copy your wg-quick config from your computer to Pi-Star. First copy it to your home directory: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;scp ~/Downloads/&amp;lt;hostname&amp;gt;_wg-quick.conf pi-star@&amp;lt;local IP&amp;gt;:/home/pi-star/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then copy it to &amp;lt;code&amp;gt;/etc/wireguard&amp;lt;/code&amp;gt; using superuser privileges.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo cp ~/&amp;lt;hostname&amp;gt;_wg-quick.conf /etc/wireguard&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run &amp;lt;code&amp;gt;sudo systemctl edit wg-quick@&amp;lt;name of config file without the extension&amp;gt;&amp;lt;/code&amp;gt;, and insert the following line where indicated by the comments: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[Unit]&lt;br /&gt;
After=ntpd.service&lt;br /&gt;
Wants=ntpd.service&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is necessary because WireGuard requires accurate system time, but the Pi does not come with a real time clock to maintain the time between boots. &lt;br /&gt;
This results in the tunnel attempting to start before the time sync, which will fail and simultaneously block all network traffic as it tries to get through the failing tunnel.&amp;lt;ref&amp;gt;https://forum.openwrt.org/t/booting-wireguard-on-routers-without-a-realtime-clock/143249&amp;lt;/ref&amp;gt;&lt;br /&gt;
For some reason, this is not an issue with most Raspberry Pi OS installations, only with Pi-Star. &lt;br /&gt;
These modifications force the tunnel to wait for time sync via &amp;lt;code&amp;gt;ntpd&amp;lt;/code&amp;gt; before starting. &lt;br /&gt;
&lt;br /&gt;
Finally, run &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl enable --now wg-quick@&amp;lt;name of config file without extension&amp;gt;&amp;lt;/code&amp;gt;.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3178</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3178"/>
		<updated>2026-11-07T01:37:50Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added step 6: verify functionality&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is highly recommended, but not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Expert&amp;lt;/code&amp;gt; in the top bar, then to &amp;lt;code&amp;gt;Quick Edir &amp;gt; DMR GW&amp;lt;/code&amp;gt;. For each DMR network you want to use, change &amp;lt;code&amp;gt;Enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Fill in the password field with the password provided to you by the network, fill in your DMR ID, and set your TGRewrites as desired. The format is &amp;lt;code&amp;gt;RF time slot, RF talk group, network time slot, network talk group, talk group number range&amp;lt;/code&amp;gt;. Settings on the RF side are what your radio should use, and they will be translated to the network side values by DMRGateway. The range specifies how large of a contiguous block of talk groups should be translated from the specified starting location. For a single talk group, set it to 1. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1969, 2, 1969, 1&amp;lt;/code&amp;gt; will translate TG 1969 on TS 2 on RF to TG 1969 on TS 2 in the network where this rewrite is set. This is an example of a rewrite for a single talkgroup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1100, 2, 100, 100&amp;lt;/code&amp;gt; will translate TGs 1100-1200 on TS 2 on RF to TGs 100-200 on TS 2 in the network where this rewrite is set. This is an example of using a prefix for talk groups on the RF side, which can let you work around conflicting talk group numbers between different networks when you want to connect both to your hotspot.&lt;br /&gt;
&lt;br /&gt;
The same syntax can be used in the &amp;lt;code&amp;gt;PCRewrite&amp;lt;/code&amp;gt; field to translate private calls. If you want to use a network that is not included by default, you can overwrite one of the existing networks. If you want to use all the existing networks as well as additional ones, &lt;br /&gt;
you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add a new &amp;lt;code&amp;gt;[DMR Network X]&amp;lt;/code&amp;gt; header for each additional network, where X is the next number not in use. Then, fill in the required fields present in other networks.&lt;br /&gt;
If a network&#039;s configuration is missing desired fields, or doesn&#039;t have enough of an existing field such as &amp;lt;code&amp;gt;TGRewrite&amp;lt;/code&amp;gt;s, you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add fields under that network&#039;s section. &lt;br /&gt;
&lt;br /&gt;
After configuring each network, make sure to save that network&#039;s configuration with the &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
== Step 6: Verify Functionality ==&lt;br /&gt;
To ease later troubleshooting of the WireGuard tunnel, verify that your MMDVMHost/DMRGateway configuration is functional before installing the tunnel. &lt;br /&gt;
Key up with your radio on one of the configured talk group/time slot combos, and ensure your traffic is making it out to the network. &lt;br /&gt;
This can be done using the network&#039;s parrot talk group, which plays your audio back to you, or ensuring your callsign appears on the network&#039;s &amp;quot;last heard&amp;quot; page. &lt;br /&gt;
&lt;br /&gt;
== Step 7: Install wireguard-tools ==&lt;br /&gt;
SSH into Pi-Star and run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to make the filesystem writable. Then, run &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;, let that finish, and run &amp;lt;code&amp;gt;sudo apt install wireguard-tools&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 8: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3177</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3177"/>
		<updated>2026-11-07T01:28:06Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote install wireguard-tools&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is highly recommended, but not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Expert&amp;lt;/code&amp;gt; in the top bar, then to &amp;lt;code&amp;gt;Quick Edir &amp;gt; DMR GW&amp;lt;/code&amp;gt;. For each DMR network you want to use, change &amp;lt;code&amp;gt;Enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Fill in the password field with the password provided to you by the network, fill in your DMR ID, and set your TGRewrites as desired. The format is &amp;lt;code&amp;gt;RF time slot, RF talk group, network time slot, network talk group, talk group number range&amp;lt;/code&amp;gt;. Settings on the RF side are what your radio should use, and they will be translated to the network side values by DMRGateway. The range specifies how large of a contiguous block of talk groups should be translated from the specified starting location. For a single talk group, set it to 1. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1969, 2, 1969, 1&amp;lt;/code&amp;gt; will translate TG 1969 on TS 2 on RF to TG 1969 on TS 2 in the network where this rewrite is set. This is an example of a rewrite for a single talkgroup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1100, 2, 100, 100&amp;lt;/code&amp;gt; will translate TGs 1100-1200 on TS 2 on RF to TGs 100-200 on TS 2 in the network where this rewrite is set. This is an example of using a prefix for talk groups on the RF side, which can let you work around conflicting talk group numbers between different networks when you want to connect both to your hotspot.&lt;br /&gt;
&lt;br /&gt;
The same syntax can be used in the &amp;lt;code&amp;gt;PCRewrite&amp;lt;/code&amp;gt; field to translate private calls. If you want to use a network that is not included by default, you can overwrite one of the existing networks. If you want to use all the existing networks as well as additional ones, &lt;br /&gt;
you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add a new &amp;lt;code&amp;gt;[DMR Network X]&amp;lt;/code&amp;gt; header for each additional network, where X is the next number not in use. Then, fill in the required fields present in other networks.&lt;br /&gt;
If a network&#039;s configuration is missing desired fields, or doesn&#039;t have enough of an existing field such as &amp;lt;code&amp;gt;TGRewrite&amp;lt;/code&amp;gt;s, you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add fields under that network&#039;s section. &lt;br /&gt;
&lt;br /&gt;
After configuring each network, make sure to save that network&#039;s configuration with the &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools ==&lt;br /&gt;
SSH into Pi-Star and run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to make the filesystem writable. Then, run &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;, let that finish, and run &amp;lt;code&amp;gt;sudo apt install wireguard-tools&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3176</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3176"/>
		<updated>2026-11-07T01:19:16Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Small edit to recommendation language&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is highly recommended, but not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Expert&amp;lt;/code&amp;gt; in the top bar, then to &amp;lt;code&amp;gt;Quick Edir &amp;gt; DMR GW&amp;lt;/code&amp;gt;. For each DMR network you want to use, change &amp;lt;code&amp;gt;Enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Fill in the password field with the password provided to you by the network, fill in your DMR ID, and set your TGRewrites as desired. The format is &amp;lt;code&amp;gt;RF time slot, RF talk group, network time slot, network talk group, talk group number range&amp;lt;/code&amp;gt;. Settings on the RF side are what your radio should use, and they will be translated to the network side values by DMRGateway. The range specifies how large of a contiguous block of talk groups should be translated from the specified starting location. For a single talk group, set it to 1. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1969, 2, 1969, 1&amp;lt;/code&amp;gt; will translate TG 1969 on TS 2 on RF to TG 1969 on TS 2 in the network where this rewrite is set. This is an example of a rewrite for a single talkgroup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1100, 2, 100, 100&amp;lt;/code&amp;gt; will translate TGs 1100-1200 on TS 2 on RF to TGs 100-200 on TS 2 in the network where this rewrite is set. This is an example of using a prefix for talk groups on the RF side, which can let you work around conflicting talk group numbers between different networks when you want to connect both to your hotspot.&lt;br /&gt;
&lt;br /&gt;
The same syntax can be used in the &amp;lt;code&amp;gt;PCRewrite&amp;lt;/code&amp;gt; field to translate private calls. If you want to use a network that is not included by default, you can overwrite one of the existing networks. If you want to use all the existing networks as well as additional ones, &lt;br /&gt;
you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add a new &amp;lt;code&amp;gt;[DMR Network X]&amp;lt;/code&amp;gt; header for each additional network, where X is the next number not in use. Then, fill in the required fields present in other networks.&lt;br /&gt;
If a network&#039;s configuration is missing desired fields, or doesn&#039;t have enough of an existing field such as &amp;lt;code&amp;gt;TGRewrite&amp;lt;/code&amp;gt;s, you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add fields under that network&#039;s section. &lt;br /&gt;
&lt;br /&gt;
After configuring each network, make sure to save that network&#039;s configuration with the &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools == &lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3175</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3175"/>
		<updated>2026-11-07T01:16:38Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote DMRGateway configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Expert&amp;lt;/code&amp;gt; in the top bar, then to &amp;lt;code&amp;gt;Quick Edir &amp;gt; DMR GW&amp;lt;/code&amp;gt;. For each DMR network you want to use, change &amp;lt;code&amp;gt;Enabled&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. Fill in the password field with the password provided to you by the network, fill in your DMR ID, and set your TGRewrites as desired. The format is &amp;lt;code&amp;gt;RF time slot, RF talk group, network time slot, network talk group, talk group number range&amp;lt;/code&amp;gt;. Settings on the RF side are what your radio should use, and they will be translated to the network side values by DMRGateway. The range specifies how large of a contiguous block of talk groups should be translated from the specified starting location. For a single talk group, set it to 1. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1969, 2, 1969, 1&amp;lt;/code&amp;gt; will translate TG 1969 on TS 2 on RF to TG 1969 on TS 2 in the network where this rewrite is set. This is an example of a rewrite for a single talkgroup.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example:&#039;&#039;&#039; &amp;lt;code&amp;gt;2, 1100, 2, 100, 100&amp;lt;/code&amp;gt; will translate TGs 1100-1200 on TS 2 on RF to TGs 100-200 on TS 2 in the network where this rewrite is set. This is an example of using a prefix for talk groups on the RF side, which can let you work around conflicting talk group numbers between different networks when you want to connect both to your hotspot.&lt;br /&gt;
&lt;br /&gt;
The same syntax can be used in the &amp;lt;code&amp;gt;PCRewrite&amp;lt;/code&amp;gt; field to translate private calls. If you want to use a network that is not included by default, you can overwrite one of the existing networks. If you want to use all the existing networks as well as additional ones, &lt;br /&gt;
you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add a new &amp;lt;code&amp;gt;[DMR Network X]&amp;lt;/code&amp;gt; header for each additional network, where X is the next number not in use. Then, fill in the required fields present in other networks.&lt;br /&gt;
If a network&#039;s configuration is missing desired fields, or doesn&#039;t have enough of an existing field such as &amp;lt;code&amp;gt;TGRewrite&amp;lt;/code&amp;gt;s, you&#039;ll have to go to &amp;lt;code&amp;gt;Full Edit &amp;gt; DMR GW&amp;lt;/code&amp;gt; and add fields under that network&#039;s section. &lt;br /&gt;
&lt;br /&gt;
After configuring each network, make sure to save that network&#039;s configuration with the &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; button.&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools == &lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3174</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3174"/>
		<updated>2026-11-06T21:47:10Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote main page DMR configuration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
Under &amp;lt;code&amp;gt;Config &amp;gt; DMR Configuration&amp;lt;/code&amp;gt;, select your preferred DMR master server and enter your DMR ID. If you want to connect to more than one DMR network, you&#039;ll need to set your DMR Master to &amp;lt;code&amp;gt;DMRGateway&amp;lt;/code&amp;gt;, then configure your networks and talk group rewrites according to the next section. If you intend to use a color code other than the default setting of 1, change that here. After configuring, click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools == &lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3173</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3173"/>
		<updated>2026-11-06T21:11:01Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added callout stating that there are only detailed instructions for DMR&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Note|This page currently only has detailed setup and testing instructions for DMR, though the 44Net Connect setup instructions are not mode specific. If you have hardware for other digital voice modes, please edit this page and add testing instructions for other modes.}}&lt;br /&gt;
&lt;br /&gt;
[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5 (Optional): Customize DMR Configuration ==&lt;br /&gt;
=== Main Page DMR Configuration ===&lt;br /&gt;
=== DMRGateway Configuration ===&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools == &lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3172</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3172"/>
		<updated>2026-11-06T21:06:57Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote customize MMDVMHost section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
Go to &amp;lt;code&amp;gt;Configuration &amp;gt; MMDVMHost Configuration&amp;lt;/code&amp;gt; and toggle on the modes you want to use. If you have a display, select the appropriate options for it. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt; to save the settings.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Customize DMRGateway Configuration ==&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools == &lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3171</id>
		<title>Firewalling Basics</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3171"/>
		<updated>2026-11-05T22:57:46Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Explained the netfilter diagram&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 44Net Connect and Security == &lt;br /&gt;
44Net Connect provides every device with a public facing IPv4 address, and does not inspect, filter, or block any traffic directed towards 44Net devices. Devices with publicly routable IP addresses face a constant barrage of traffic from various scanners and bots on the internet. Some of them are malicious, and correctly configuring your firewall is a key part of defending against them. &lt;br /&gt;
&lt;br /&gt;
== What does a firewall do? ==&lt;br /&gt;
At its most basic, a firewall inspects incoming and outgoing packets, and based on its set of rules, decides whether each packet should be allowed through, dropped, or diverted. Rules may consider a packet&#039;s source and destination IP, source and destination interface, port, protocol (TCP vs UDP), or various special flags that may be set. Basic firewall usage is primarily concerned with source/destination IP, source/destination interface, and port. There are several goals we can achieve via firewall rules: allow outside connections to public-facing services, block outside connections to private services, and in case your device is compromised, block outgoing malicious traffic originating from your device. &lt;br /&gt;
&lt;br /&gt;
Outside connections to a public-facing service are typically allowed using a firewall rule that accepts all packets on the port that service is using, regardless of the packet&#039;s source IP. Private services, such as those only intended for your LAN, are typically protected by a firewall rule that only accepts packets whose source IP is inside your LAN. Packets sent to that port that originate externally will be dropped. You may have services that are only meant to be accessed from &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;, such as control interfaces accessed only by other software on the same device. &lt;br /&gt;
&lt;br /&gt;
=== Stateful Firewalls ===&lt;br /&gt;
Stateful firewalls are capable of remembering information about previous packets, and using it when making later decisions. The most common use for this is connection tracking, a feature enabled by default on many firewalls. Connection tracking remembers when a trusted device, usually one inside your LAN, has initiated a connection to an external device. When the return traffic from the external device comes in, it will be allowed through the firewall, even if the default policy would have otherwise dropped it. It&#039;s important to remember this feature when testing your firewall. Even if your device is able to initiate connections to an untrusted device on the outside of your firewall, that device may not be able to initiate a connection to your device, depending on your firewall rules. Most modern firewalls, such as those based on &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;, are stateful. If for some reason this behavior is undesirable, it can be overridden with rules that explicitly drop the unwanted external traffic. &lt;br /&gt;
&lt;br /&gt;
Stateful firewalls also enable various advanced security features that are outside the scope of this guide, such as those utilizing TCP sequence numbers. &lt;br /&gt;
&lt;br /&gt;
Stateless firewalls are not capable of remembering previous packets, and handle each packet as if it&#039;s completely unrelated to all other packets.&lt;br /&gt;
&lt;br /&gt;
== Configuration Recommendations ==&lt;br /&gt;
When configuring any kind of security policy, best practice is to apply the &#039;&#039;&#039;principle of least privilege.&#039;&#039;&#039; This means that a person or device is given the minimum level of access to perform their job. This minimizes attack surface (the ways in which a malicious party can attack your network) and minimizes damage if a device or user&#039;s credentials are compromised. When it comes to configuring a firewall, that means only opening the ports on which you&#039;re actually running services, and only allowing communication between network segments if it&#039;s actually necessary. &lt;br /&gt;
&lt;br /&gt;
For example, some people confine Internet of Things (IoT) devices to their own {{term|VLAN}} due to their often poor security. In such a configuration, you might allow devices from the regular LAN to initiate connections to the IoT devices, but not the other way around, to prevent a compromised IoT device from attacking the rest of your network. We recommend a similar configuration for your 44Net subnet. Some take it a step further, and block {{term|WAN}} access from the IoT VLAN to prevent devices from sending telemetry to their manufacturer.&lt;br /&gt;
&lt;br /&gt;
When restricting access between devices on your internal network, it can be helpful to use a policy that explicitly rejects disallowed packets rather than silently dropping them. This feedback can be helpful when troubleshooting, as it immediately lets you know that packets are being blocked by firewall policy rather than something like a port mismatch or a hostname/IP typo. Reject policies should not be used for WAN-facing interfaces, otherwise you may spend lots of compute power sending packet rejections to automated scanners and other malicious actors on the wider internet.&lt;br /&gt;
&lt;br /&gt;
== Low Level Tools ==&lt;br /&gt;
=== iptables ===&lt;br /&gt;
&amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; is a Linux firewall rule management tool that was deprecated in favor of &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; in 2014. It allows system administrators to define &#039;&#039;tables&#039;&#039; containing &#039;&#039;chains&#039;&#039; of &#039;&#039;rules&#039;&#039; for the treatment of packets.&amp;lt;ref&amp;gt;https://en.wikipedia.org/wiki/Iptables&amp;lt;/ref&amp;gt; Both &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; use the netfilter framework to interface with the Linux kernel. &lt;br /&gt;
&lt;br /&gt;
Modern systems no longer ship with an actual copy of &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, instead using a compatibility layer that translates its rules to &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== nftables ===&lt;br /&gt;
nftables is the currently maintained Linux firewall rule management tool. It interfaces with the Linux kernel via the netfilter framework, and can be administrated with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; command line tool as well as editing &amp;lt;code&amp;gt;/etc/nftables.conf&amp;lt;/code&amp;gt;. Changes made with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; tool will not persist between reboots, and must be written into the config file to ensure persistence. It functions similarly to &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, employing tables of chains of rules, but with no predefined chains and more flexible rules. A packet will pass through each rule in a chain, and when it reaches a matching rule, a routing decision is made. If no rules in a chain are matched, it proceeds to the next chain. Some rules may transfer the packet to a different chain rather than making a routing decision.&lt;br /&gt;
&lt;br /&gt;
[[ File:Netfilter.png | 500px | A diagram illustrating the table, chain, and rule hierarchy used by iptables and nftables. A packet proceeds into the table, through the first chain, and does not match any rules. It proceeds through the second chain, matches the second rule, and makes a routing decision. ]]&lt;br /&gt;
&lt;br /&gt;
While firewall rules can be directly configured with &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt;, this is not recommended. The output of &amp;lt;code&amp;gt;sudo nft list ruleset&amp;lt;/code&amp;gt; is extremely verbose and not well formatted. &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; provides few formatting options for this output. See the next section for user-friendly tools that interface with nftables.&lt;br /&gt;
&lt;br /&gt;
== High Level Tools ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is an &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;-based CLI firewall management tool. It ships by default on CentOS, Fedora, OpenSUSE, RHEL, SUSE Enterprise, and EndeavourOS, and is packaged for many more distributions. It introduces the idea of a &amp;quot;zone,&amp;quot; which is a named set of policies that an interface can be assigned to. Each zone has a target, which is set to &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt;. These targets determine what action will be taken on packets in the zone that don&#039;t match any of the rules, services, or ports. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; will accept ICMP and drop everything else.&lt;br /&gt;
* &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; will discard packets without notifying the sender.&lt;br /&gt;
* &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will discard the packet and notify the sender of its rejection.&lt;br /&gt;
* &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow the packet through.&lt;br /&gt;
&lt;br /&gt;
Check your current zone configuration by running &amp;lt;code&amp;gt;sudo firewalld --list-all-zones&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It&#039;s best to put public-facing interfaces into a &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; target zone. &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow unwanted or malicious traffic, and &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will spend lots of bandwidth replying to the barrage of traffic from bots scanning the internet. Devices owned by you but publicly accessible from the internet are typically put in a demilitarized zone (DMZ), a network area with only some access to the LAN. This typically involves preventing DMZ devices from initiating connections to LAN devices, but allowing the opposite. &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; comes with a &amp;lt;code&amp;gt;dmz&amp;lt;/code&amp;gt; zone by default, and this is a good place to put the interface that faces your 44Net subnet. (Note that your LAN interface must also be in a default accept zone for it to allow initiating connections to DMZ devices.) &lt;br /&gt;
&lt;br /&gt;
{{Info|Warn|Fedora comes with the &amp;lt;code&amp;gt;FedoraWorkstation&amp;lt;/code&amp;gt; zone as the default zone for all interfaces. It leaves open all ports above 1024. &#039;&#039;This configuration is not suitable for public-facing interfaces.&#039;&#039; Always move interfaces directly exposed to the internet, such as 44Net Connect tunnels, to a more restrictive zone. }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; can be controlled using the &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; utility, or by editing the config file at &amp;lt;code&amp;gt;/etc/firewalld&amp;lt;/code&amp;gt;. Typical policy changes introduced using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; are called &amp;quot;runtime&amp;quot; changes, and will not persist after a restart of the service or a reboot. Permanent changes can be made by adding the &amp;lt;code&amp;gt;--permanent&amp;lt;/code&amp;gt; flag, or by introducing runtime changes and then invoking &amp;lt;code&amp;gt;firewall-cmd --runtime-to-permanent&amp;lt;/code&amp;gt;, which saves all current runtime changes to permanent configuration.&lt;br /&gt;
&lt;br /&gt;
Services are a &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; abstraction containing a list of ports, protocols, destinations, and optionally a list of firewall helper modules to be loaded if the service is enabled. They make it easy to toggle these configuration groups, rather than having to toggle every rule in them individually. They can be configured using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; or by creating an XML file in &amp;lt;code&amp;gt;/etc/firewalld/services/&amp;lt;/code&amp;gt;. See &amp;lt;code&amp;gt;man firewalld.service&amp;lt;/code&amp;gt; for more information on services. As an example, the following command would enable the &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; service in the &amp;lt;code&amp;gt;public&amp;lt;/code&amp;gt; zone. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo firewall-cmd --permanent --zone public --add-service ssh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another advantage of using services is that the service definition can be edited, and then it will apply to all zones with that service enabled when firewalld is reloaded. firewalld can be reloaded using &amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
Uncomplicated Firewall is a CLI program designed for easily managing a netfilter firewall. It also supports GUI management via the &amp;lt;code&amp;gt;gufw&amp;lt;/code&amp;gt; tool. When running, the active firewall rules can be viewed with &amp;lt;code&amp;gt;sudo ufw status&amp;lt;/code&amp;gt;. If you want to see the firewall rules while &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not running, use &amp;lt;code&amp;gt;sudo ufw show added&amp;lt;/code&amp;gt;. It uses a simple syntax with property names rather than flags. For the very simple operation of opening a port without utilizing any optional parameters, you need not even specify property names. One can allow TCP connections on port 22 (for example, to allow an SSH server) and start UFW as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo ufw allow 22/tcp&lt;br /&gt;
sudo ufw enable&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It also allows comments by specifying the &amp;lt;code&amp;gt;comment&amp;lt;/code&amp;gt; property and enclosing the actual comment in quotes. For example, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ufw allow 22/tcp comment &#039;SSH port&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will show in the &amp;lt;code&amp;gt;ufw status&amp;lt;/code&amp;gt; output as &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
To                         Action      From&lt;br /&gt;
--                         ------      ----&lt;br /&gt;
22/tcp                     ALLOW       Anywhere                 # SSH port&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; uses similar targets to &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, except it uses &amp;lt;code&amp;gt;deny&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;. To put a 44Net subnet in a {{term:DMZ}}, apply the following rules. &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
sudo ufw reject in on &amp;lt;subnet interface&amp;gt; to &amp;lt;LAN interface&amp;gt;&lt;br /&gt;
sudo ufw accept in on &amp;lt;LAN interface&amp;gt; to &amp;lt;subnet interface&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, Docker writes its own &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; rules and ignores &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules. This can cause conflicts and security issues in combination with &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;“Uncomplicated Firewall - ArchWiki.” 2024. Archlinux.Org. https://wiki.archlinux.org/title/Uncomplicated_Firewall.&amp;lt;/ref&amp;gt;&lt;br /&gt;
If you wish to use &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; on a system that has Docker, consider [https://docs.docker.com/engine/network/firewall-nftables#migrating-from-iptables-to-nftables migrating Docker to nftables.]&lt;br /&gt;
&lt;br /&gt;
== Verifying Configuration ==&lt;br /&gt;
After configuring your firewall, it&#039;s important to test the configuration to ensure that it&#039;s working how you think it is. This can be done with the help of a few command line tools. &lt;br /&gt;
&lt;br /&gt;
=== Verify that a port is open or closed === &lt;br /&gt;
To test whether a port is properly opened or closed, you can use set up a &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener a device behind the firewall, and use &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt; to connect to it with a device outside the firewall. On the inside device, run &amp;lt;code&amp;gt;nc -l -p &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt; (but replace &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; with your desired port) to start the listener. If you have a service that normally runs on this port, you&#039;ll need to temporarily stop it so that &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; can bind to the port. On the outside device, run &amp;lt;code&amp;gt;curl &amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;, and if the port is open, you&#039;ll see some text pop up on the &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener indicating that it received an HTTP GET request. &lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Traffic is supposed to pass but only works intermittently ===&lt;br /&gt;
This can happen when you have duplicate or conflicting firewall rules. Rules may be accidentally duplicated if you add runtime rules that are already part of persistent configuration, or add the same rules to multiple scripts or configuration files. Re-read your firewall rules and ensure there are no duplicates or conflicting rules. It may help to restore the last known working configuration, and retrace your steps until you either reproduce the issue or achieve your target working configuration.&lt;br /&gt;
&lt;br /&gt;
=== Traffic is supposed to pass but is not going through ===&lt;br /&gt;
Common causes:&lt;br /&gt;
* The firewall was not reloaded after changing configuration files&lt;br /&gt;
* The device has its own firewall &#039;&#039;and&#039;&#039; is behind the router firewall, and one of them is missing allow rules. &lt;br /&gt;
* Traffic has not been allowed on the correct protocol (TCP instead of UDP, or vice versa)&lt;br /&gt;
* The interface receiving the traffic is not in the correct &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3170</id>
		<title>Firewalling Basics</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3170"/>
		<updated>2026-11-05T22:55:34Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Suggest that traffic might not pass when intended if interface is in the wrong firewalld zone&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 44Net Connect and Security == &lt;br /&gt;
44Net Connect provides every device with a public facing IPv4 address, and does not inspect, filter, or block any traffic directed towards 44Net devices. Devices with publicly routable IP addresses face a constant barrage of traffic from various scanners and bots on the internet. Some of them are malicious, and correctly configuring your firewall is a key part of defending against them. &lt;br /&gt;
&lt;br /&gt;
== What does a firewall do? ==&lt;br /&gt;
At its most basic, a firewall inspects incoming and outgoing packets, and based on its set of rules, decides whether each packet should be allowed through, dropped, or diverted. Rules may consider a packet&#039;s source and destination IP, source and destination interface, port, protocol (TCP vs UDP), or various special flags that may be set. Basic firewall usage is primarily concerned with source/destination IP, source/destination interface, and port. There are several goals we can achieve via firewall rules: allow outside connections to public-facing services, block outside connections to private services, and in case your device is compromised, block outgoing malicious traffic originating from your device. &lt;br /&gt;
&lt;br /&gt;
Outside connections to a public-facing service are typically allowed using a firewall rule that accepts all packets on the port that service is using, regardless of the packet&#039;s source IP. Private services, such as those only intended for your LAN, are typically protected by a firewall rule that only accepts packets whose source IP is inside your LAN. Packets sent to that port that originate externally will be dropped. You may have services that are only meant to be accessed from &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;, such as control interfaces accessed only by other software on the same device. &lt;br /&gt;
&lt;br /&gt;
=== Stateful Firewalls ===&lt;br /&gt;
Stateful firewalls are capable of remembering information about previous packets, and using it when making later decisions. The most common use for this is connection tracking, a feature enabled by default on many firewalls. Connection tracking remembers when a trusted device, usually one inside your LAN, has initiated a connection to an external device. When the return traffic from the external device comes in, it will be allowed through the firewall, even if the default policy would have otherwise dropped it. It&#039;s important to remember this feature when testing your firewall. Even if your device is able to initiate connections to an untrusted device on the outside of your firewall, that device may not be able to initiate a connection to your device, depending on your firewall rules. Most modern firewalls, such as those based on &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;, are stateful. If for some reason this behavior is undesirable, it can be overridden with rules that explicitly drop the unwanted external traffic. &lt;br /&gt;
&lt;br /&gt;
Stateful firewalls also enable various advanced security features that are outside the scope of this guide, such as those utilizing TCP sequence numbers. &lt;br /&gt;
&lt;br /&gt;
Stateless firewalls are not capable of remembering previous packets, and handle each packet as if it&#039;s completely unrelated to all other packets.&lt;br /&gt;
&lt;br /&gt;
== Configuration Recommendations ==&lt;br /&gt;
When configuring any kind of security policy, best practice is to apply the &#039;&#039;&#039;principle of least privilege.&#039;&#039;&#039; This means that a person or device is given the minimum level of access to perform their job. This minimizes attack surface (the ways in which a malicious party can attack your network) and minimizes damage if a device or user&#039;s credentials are compromised. When it comes to configuring a firewall, that means only opening the ports on which you&#039;re actually running services, and only allowing communication between network segments if it&#039;s actually necessary. &lt;br /&gt;
&lt;br /&gt;
For example, some people confine Internet of Things (IoT) devices to their own {{term|VLAN}} due to their often poor security. In such a configuration, you might allow devices from the regular LAN to initiate connections to the IoT devices, but not the other way around, to prevent a compromised IoT device from attacking the rest of your network. We recommend a similar configuration for your 44Net subnet. Some take it a step further, and block {{term|WAN}} access from the IoT VLAN to prevent devices from sending telemetry to their manufacturer.&lt;br /&gt;
&lt;br /&gt;
When restricting access between devices on your internal network, it can be helpful to use a policy that explicitly rejects disallowed packets rather than silently dropping them. This feedback can be helpful when troubleshooting, as it immediately lets you know that packets are being blocked by firewall policy rather than something like a port mismatch or a hostname/IP typo. Reject policies should not be used for WAN-facing interfaces, otherwise you may spend lots of compute power sending packet rejections to automated scanners and other malicious actors on the wider internet.&lt;br /&gt;
&lt;br /&gt;
== Low Level Tools ==&lt;br /&gt;
=== iptables ===&lt;br /&gt;
&amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; is a Linux firewall rule management tool that was deprecated in favor of &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; in 2014. It allows system administrators to define &#039;&#039;tables&#039;&#039; containing &#039;&#039;chains&#039;&#039; of &#039;&#039;rules&#039;&#039; for the treatment of packets.&amp;lt;ref&amp;gt;https://en.wikipedia.org/wiki/Iptables&amp;lt;/ref&amp;gt; Both &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; use the netfilter framework to interface with the Linux kernel. &lt;br /&gt;
&lt;br /&gt;
Modern systems no longer ship with an actual copy of &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, instead using a compatibility layer that translates its rules to &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== nftables ===&lt;br /&gt;
nftables is the currently maintained Linux firewall rule management tool. It interfaces with the Linux kernel via the netfilter framework, and can be administrated with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; command line tool as well as editing &amp;lt;code&amp;gt;/etc/nftables.conf&amp;lt;/code&amp;gt;. Changes made with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; tool will not persist between reboots, and must be written into the config file to ensure persistence. It functions similarly to &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, employing tables of chains of rules, but with no predefined chains and more flexible rules.&lt;br /&gt;
&lt;br /&gt;
[[ File:Netfilter.png | 500px | A diagram illustrating the table, chain, and rule hierarchy used by iptables and nftables. A packet proceeds into the table, through the first chain, and does not match any rules. It proceeds through the second chain, matches the second rule, and makes a routing decision. ]]&lt;br /&gt;
&lt;br /&gt;
While firewall rules can be directly configured with &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt;, this is not recommended. The output of &amp;lt;code&amp;gt;sudo nft list ruleset&amp;lt;/code&amp;gt; is extremely verbose and not well formatted. &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; provides few formatting options for this output. See the next section for user-friendly tools that interface with nftables.&lt;br /&gt;
&lt;br /&gt;
== High Level Tools ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is an &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;-based CLI firewall management tool. It ships by default on CentOS, Fedora, OpenSUSE, RHEL, SUSE Enterprise, and EndeavourOS, and is packaged for many more distributions. It introduces the idea of a &amp;quot;zone,&amp;quot; which is a named set of policies that an interface can be assigned to. Each zone has a target, which is set to &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt;. These targets determine what action will be taken on packets in the zone that don&#039;t match any of the rules, services, or ports. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; will accept ICMP and drop everything else.&lt;br /&gt;
* &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; will discard packets without notifying the sender.&lt;br /&gt;
* &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will discard the packet and notify the sender of its rejection.&lt;br /&gt;
* &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow the packet through.&lt;br /&gt;
&lt;br /&gt;
Check your current zone configuration by running &amp;lt;code&amp;gt;sudo firewalld --list-all-zones&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It&#039;s best to put public-facing interfaces into a &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; target zone. &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow unwanted or malicious traffic, and &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will spend lots of bandwidth replying to the barrage of traffic from bots scanning the internet. Devices owned by you but publicly accessible from the internet are typically put in a demilitarized zone (DMZ), a network area with only some access to the LAN. This typically involves preventing DMZ devices from initiating connections to LAN devices, but allowing the opposite. &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; comes with a &amp;lt;code&amp;gt;dmz&amp;lt;/code&amp;gt; zone by default, and this is a good place to put the interface that faces your 44Net subnet. (Note that your LAN interface must also be in a default accept zone for it to allow initiating connections to DMZ devices.) &lt;br /&gt;
&lt;br /&gt;
{{Info|Warn|Fedora comes with the &amp;lt;code&amp;gt;FedoraWorkstation&amp;lt;/code&amp;gt; zone as the default zone for all interfaces. It leaves open all ports above 1024. &#039;&#039;This configuration is not suitable for public-facing interfaces.&#039;&#039; Always move interfaces directly exposed to the internet, such as 44Net Connect tunnels, to a more restrictive zone. }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; can be controlled using the &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; utility, or by editing the config file at &amp;lt;code&amp;gt;/etc/firewalld&amp;lt;/code&amp;gt;. Typical policy changes introduced using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; are called &amp;quot;runtime&amp;quot; changes, and will not persist after a restart of the service or a reboot. Permanent changes can be made by adding the &amp;lt;code&amp;gt;--permanent&amp;lt;/code&amp;gt; flag, or by introducing runtime changes and then invoking &amp;lt;code&amp;gt;firewall-cmd --runtime-to-permanent&amp;lt;/code&amp;gt;, which saves all current runtime changes to permanent configuration.&lt;br /&gt;
&lt;br /&gt;
Services are a &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; abstraction containing a list of ports, protocols, destinations, and optionally a list of firewall helper modules to be loaded if the service is enabled. They make it easy to toggle these configuration groups, rather than having to toggle every rule in them individually. They can be configured using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; or by creating an XML file in &amp;lt;code&amp;gt;/etc/firewalld/services/&amp;lt;/code&amp;gt;. See &amp;lt;code&amp;gt;man firewalld.service&amp;lt;/code&amp;gt; for more information on services. As an example, the following command would enable the &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; service in the &amp;lt;code&amp;gt;public&amp;lt;/code&amp;gt; zone. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo firewall-cmd --permanent --zone public --add-service ssh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another advantage of using services is that the service definition can be edited, and then it will apply to all zones with that service enabled when firewalld is reloaded. firewalld can be reloaded using &amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
Uncomplicated Firewall is a CLI program designed for easily managing a netfilter firewall. It also supports GUI management via the &amp;lt;code&amp;gt;gufw&amp;lt;/code&amp;gt; tool. When running, the active firewall rules can be viewed with &amp;lt;code&amp;gt;sudo ufw status&amp;lt;/code&amp;gt;. If you want to see the firewall rules while &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not running, use &amp;lt;code&amp;gt;sudo ufw show added&amp;lt;/code&amp;gt;. It uses a simple syntax with property names rather than flags. For the very simple operation of opening a port without utilizing any optional parameters, you need not even specify property names. One can allow TCP connections on port 22 (for example, to allow an SSH server) and start UFW as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo ufw allow 22/tcp&lt;br /&gt;
sudo ufw enable&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It also allows comments by specifying the &amp;lt;code&amp;gt;comment&amp;lt;/code&amp;gt; property and enclosing the actual comment in quotes. For example, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ufw allow 22/tcp comment &#039;SSH port&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will show in the &amp;lt;code&amp;gt;ufw status&amp;lt;/code&amp;gt; output as &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
To                         Action      From&lt;br /&gt;
--                         ------      ----&lt;br /&gt;
22/tcp                     ALLOW       Anywhere                 # SSH port&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; uses similar targets to &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, except it uses &amp;lt;code&amp;gt;deny&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;. To put a 44Net subnet in a {{term:DMZ}}, apply the following rules. &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
sudo ufw reject in on &amp;lt;subnet interface&amp;gt; to &amp;lt;LAN interface&amp;gt;&lt;br /&gt;
sudo ufw accept in on &amp;lt;LAN interface&amp;gt; to &amp;lt;subnet interface&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, Docker writes its own &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; rules and ignores &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules. This can cause conflicts and security issues in combination with &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;“Uncomplicated Firewall - ArchWiki.” 2024. Archlinux.Org. https://wiki.archlinux.org/title/Uncomplicated_Firewall.&amp;lt;/ref&amp;gt;&lt;br /&gt;
If you wish to use &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; on a system that has Docker, consider [https://docs.docker.com/engine/network/firewall-nftables#migrating-from-iptables-to-nftables migrating Docker to nftables.]&lt;br /&gt;
&lt;br /&gt;
== Verifying Configuration ==&lt;br /&gt;
After configuring your firewall, it&#039;s important to test the configuration to ensure that it&#039;s working how you think it is. This can be done with the help of a few command line tools. &lt;br /&gt;
&lt;br /&gt;
=== Verify that a port is open or closed === &lt;br /&gt;
To test whether a port is properly opened or closed, you can use set up a &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener a device behind the firewall, and use &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt; to connect to it with a device outside the firewall. On the inside device, run &amp;lt;code&amp;gt;nc -l -p &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt; (but replace &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; with your desired port) to start the listener. If you have a service that normally runs on this port, you&#039;ll need to temporarily stop it so that &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; can bind to the port. On the outside device, run &amp;lt;code&amp;gt;curl &amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;, and if the port is open, you&#039;ll see some text pop up on the &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener indicating that it received an HTTP GET request. &lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Traffic is supposed to pass but only works intermittently ===&lt;br /&gt;
This can happen when you have duplicate or conflicting firewall rules. Rules may be accidentally duplicated if you add runtime rules that are already part of persistent configuration, or add the same rules to multiple scripts or configuration files. Re-read your firewall rules and ensure there are no duplicates or conflicting rules. It may help to restore the last known working configuration, and retrace your steps until you either reproduce the issue or achieve your target working configuration.&lt;br /&gt;
&lt;br /&gt;
=== Traffic is supposed to pass but is not going through ===&lt;br /&gt;
Common causes:&lt;br /&gt;
* The firewall was not reloaded after changing configuration files&lt;br /&gt;
* The device has its own firewall &#039;&#039;and&#039;&#039; is behind the router firewall, and one of them is missing allow rules. &lt;br /&gt;
* Traffic has not been allowed on the correct protocol (TCP instead of UDP, or vice versa)&lt;br /&gt;
* The interface receiving the traffic is not in the correct &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3169</id>
		<title>Firewalling Basics</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3169"/>
		<updated>2026-11-05T22:54:10Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Phrasing improvements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 44Net Connect and Security == &lt;br /&gt;
44Net Connect provides every device with a public facing IPv4 address, and does not inspect, filter, or block any traffic directed towards 44Net devices. Devices with publicly routable IP addresses face a constant barrage of traffic from various scanners and bots on the internet. Some of them are malicious, and correctly configuring your firewall is a key part of defending against them. &lt;br /&gt;
&lt;br /&gt;
== What does a firewall do? ==&lt;br /&gt;
At its most basic, a firewall inspects incoming and outgoing packets, and based on its set of rules, decides whether each packet should be allowed through, dropped, or diverted. Rules may consider a packet&#039;s source and destination IP, source and destination interface, port, protocol (TCP vs UDP), or various special flags that may be set. Basic firewall usage is primarily concerned with source/destination IP, source/destination interface, and port. There are several goals we can achieve via firewall rules: allow outside connections to public-facing services, block outside connections to private services, and in case your device is compromised, block outgoing malicious traffic originating from your device. &lt;br /&gt;
&lt;br /&gt;
Outside connections to a public-facing service are typically allowed using a firewall rule that accepts all packets on the port that service is using, regardless of the packet&#039;s source IP. Private services, such as those only intended for your LAN, are typically protected by a firewall rule that only accepts packets whose source IP is inside your LAN. Packets sent to that port that originate externally will be dropped. You may have services that are only meant to be accessed from &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;, such as control interfaces accessed only by other software on the same device. &lt;br /&gt;
&lt;br /&gt;
=== Stateful Firewalls ===&lt;br /&gt;
Stateful firewalls are capable of remembering information about previous packets, and using it when making later decisions. The most common use for this is connection tracking, a feature enabled by default on many firewalls. Connection tracking remembers when a trusted device, usually one inside your LAN, has initiated a connection to an external device. When the return traffic from the external device comes in, it will be allowed through the firewall, even if the default policy would have otherwise dropped it. It&#039;s important to remember this feature when testing your firewall. Even if your device is able to initiate connections to an untrusted device on the outside of your firewall, that device may not be able to initiate a connection to your device, depending on your firewall rules. Most modern firewalls, such as those based on &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;, are stateful. If for some reason this behavior is undesirable, it can be overridden with rules that explicitly drop the unwanted external traffic. &lt;br /&gt;
&lt;br /&gt;
Stateful firewalls also enable various advanced security features that are outside the scope of this guide, such as those utilizing TCP sequence numbers. &lt;br /&gt;
&lt;br /&gt;
Stateless firewalls are not capable of remembering previous packets, and handle each packet as if it&#039;s completely unrelated to all other packets.&lt;br /&gt;
&lt;br /&gt;
== Configuration Recommendations ==&lt;br /&gt;
When configuring any kind of security policy, best practice is to apply the &#039;&#039;&#039;principle of least privilege.&#039;&#039;&#039; This means that a person or device is given the minimum level of access to perform their job. This minimizes attack surface (the ways in which a malicious party can attack your network) and minimizes damage if a device or user&#039;s credentials are compromised. When it comes to configuring a firewall, that means only opening the ports on which you&#039;re actually running services, and only allowing communication between network segments if it&#039;s actually necessary. &lt;br /&gt;
&lt;br /&gt;
For example, some people confine Internet of Things (IoT) devices to their own {{term|VLAN}} due to their often poor security. In such a configuration, you might allow devices from the regular LAN to initiate connections to the IoT devices, but not the other way around, to prevent a compromised IoT device from attacking the rest of your network. We recommend a similar configuration for your 44Net subnet. Some take it a step further, and block {{term|WAN}} access from the IoT VLAN to prevent devices from sending telemetry to their manufacturer.&lt;br /&gt;
&lt;br /&gt;
When restricting access between devices on your internal network, it can be helpful to use a policy that explicitly rejects disallowed packets rather than silently dropping them. This feedback can be helpful when troubleshooting, as it immediately lets you know that packets are being blocked by firewall policy rather than something like a port mismatch or a hostname/IP typo. Reject policies should not be used for WAN-facing interfaces, otherwise you may spend lots of compute power sending packet rejections to automated scanners and other malicious actors on the wider internet.&lt;br /&gt;
&lt;br /&gt;
== Low Level Tools ==&lt;br /&gt;
=== iptables ===&lt;br /&gt;
&amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; is a Linux firewall rule management tool that was deprecated in favor of &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; in 2014. It allows system administrators to define &#039;&#039;tables&#039;&#039; containing &#039;&#039;chains&#039;&#039; of &#039;&#039;rules&#039;&#039; for the treatment of packets.&amp;lt;ref&amp;gt;https://en.wikipedia.org/wiki/Iptables&amp;lt;/ref&amp;gt; Both &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; use the netfilter framework to interface with the Linux kernel. &lt;br /&gt;
&lt;br /&gt;
Modern systems no longer ship with an actual copy of &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, instead using a compatibility layer that translates its rules to &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== nftables ===&lt;br /&gt;
nftables is the currently maintained Linux firewall rule management tool. It interfaces with the Linux kernel via the netfilter framework, and can be administrated with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; command line tool as well as editing &amp;lt;code&amp;gt;/etc/nftables.conf&amp;lt;/code&amp;gt;. Changes made with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; tool will not persist between reboots, and must be written into the config file to ensure persistence. It functions similarly to &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, employing tables of chains of rules, but with no predefined chains and more flexible rules.&lt;br /&gt;
&lt;br /&gt;
[[ File:Netfilter.png | 500px | A diagram illustrating the table, chain, and rule hierarchy used by iptables and nftables. A packet proceeds into the table, through the first chain, and does not match any rules. It proceeds through the second chain, matches the second rule, and makes a routing decision. ]]&lt;br /&gt;
&lt;br /&gt;
While firewall rules can be directly configured with &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt;, this is not recommended. The output of &amp;lt;code&amp;gt;sudo nft list ruleset&amp;lt;/code&amp;gt; is extremely verbose and not well formatted. &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; provides few formatting options for this output. See the next section for user-friendly tools that interface with nftables.&lt;br /&gt;
&lt;br /&gt;
== High Level Tools ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is an &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;-based CLI firewall management tool. It ships by default on CentOS, Fedora, OpenSUSE, RHEL, SUSE Enterprise, and EndeavourOS, and is packaged for many more distributions. It introduces the idea of a &amp;quot;zone,&amp;quot; which is a named set of policies that an interface can be assigned to. Each zone has a target, which is set to &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt;. These targets determine what action will be taken on packets in the zone that don&#039;t match any of the rules, services, or ports. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; will accept ICMP and drop everything else.&lt;br /&gt;
* &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; will discard packets without notifying the sender.&lt;br /&gt;
* &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will discard the packet and notify the sender of its rejection.&lt;br /&gt;
* &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow the packet through.&lt;br /&gt;
&lt;br /&gt;
Check your current zone configuration by running &amp;lt;code&amp;gt;sudo firewalld --list-all-zones&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It&#039;s best to put public-facing interfaces into a &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; target zone. &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow unwanted or malicious traffic, and &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will spend lots of bandwidth replying to the barrage of traffic from bots scanning the internet. Devices owned by you but publicly accessible from the internet are typically put in a demilitarized zone (DMZ), a network area with only some access to the LAN. This typically involves preventing DMZ devices from initiating connections to LAN devices, but allowing the opposite. &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; comes with a &amp;lt;code&amp;gt;dmz&amp;lt;/code&amp;gt; zone by default, and this is a good place to put the interface that faces your 44Net subnet. (Note that your LAN interface must also be in a default accept zone for it to allow initiating connections to DMZ devices.) &lt;br /&gt;
&lt;br /&gt;
{{Info|Warn|Fedora comes with the &amp;lt;code&amp;gt;FedoraWorkstation&amp;lt;/code&amp;gt; zone as the default zone for all interfaces. It leaves open all ports above 1024. &#039;&#039;This configuration is not suitable for public-facing interfaces.&#039;&#039; Always move interfaces directly exposed to the internet, such as 44Net Connect tunnels, to a more restrictive zone. }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; can be controlled using the &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; utility, or by editing the config file at &amp;lt;code&amp;gt;/etc/firewalld&amp;lt;/code&amp;gt;. Typical policy changes introduced using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; are called &amp;quot;runtime&amp;quot; changes, and will not persist after a restart of the service or a reboot. Permanent changes can be made by adding the &amp;lt;code&amp;gt;--permanent&amp;lt;/code&amp;gt; flag, or by introducing runtime changes and then invoking &amp;lt;code&amp;gt;firewall-cmd --runtime-to-permanent&amp;lt;/code&amp;gt;, which saves all current runtime changes to permanent configuration.&lt;br /&gt;
&lt;br /&gt;
Services are a &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; abstraction containing a list of ports, protocols, destinations, and optionally a list of firewall helper modules to be loaded if the service is enabled. They make it easy to toggle these configuration groups, rather than having to toggle every rule in them individually. They can be configured using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; or by creating an XML file in &amp;lt;code&amp;gt;/etc/firewalld/services/&amp;lt;/code&amp;gt;. See &amp;lt;code&amp;gt;man firewalld.service&amp;lt;/code&amp;gt; for more information on services. As an example, the following command would enable the &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; service in the &amp;lt;code&amp;gt;public&amp;lt;/code&amp;gt; zone. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo firewall-cmd --permanent --zone public --add-service ssh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another advantage of using services is that the service definition can be edited, and then it will apply to all zones with that service enabled when firewalld is reloaded. firewalld can be reloaded using &amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
Uncomplicated Firewall is a CLI program designed for easily managing a netfilter firewall. It also supports GUI management via the &amp;lt;code&amp;gt;gufw&amp;lt;/code&amp;gt; tool. When running, the active firewall rules can be viewed with &amp;lt;code&amp;gt;sudo ufw status&amp;lt;/code&amp;gt;. If you want to see the firewall rules while &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not running, use &amp;lt;code&amp;gt;sudo ufw show added&amp;lt;/code&amp;gt;. It uses a simple syntax with property names rather than flags. For the very simple operation of opening a port without utilizing any optional parameters, you need not even specify property names. One can allow TCP connections on port 22 (for example, to allow an SSH server) and start UFW as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo ufw allow 22/tcp&lt;br /&gt;
sudo ufw enable&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It also allows comments by specifying the &amp;lt;code&amp;gt;comment&amp;lt;/code&amp;gt; property and enclosing the actual comment in quotes. For example, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ufw allow 22/tcp comment &#039;SSH port&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will show in the &amp;lt;code&amp;gt;ufw status&amp;lt;/code&amp;gt; output as &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
To                         Action      From&lt;br /&gt;
--                         ------      ----&lt;br /&gt;
22/tcp                     ALLOW       Anywhere                 # SSH port&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; uses similar targets to &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, except it uses &amp;lt;code&amp;gt;deny&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;. To put a 44Net subnet in a {{term:DMZ}}, apply the following rules. &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
sudo ufw reject in on &amp;lt;subnet interface&amp;gt; to &amp;lt;LAN interface&amp;gt;&lt;br /&gt;
sudo ufw accept in on &amp;lt;LAN interface&amp;gt; to &amp;lt;subnet interface&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, Docker writes its own &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; rules and ignores &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules. This can cause conflicts and security issues in combination with &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;“Uncomplicated Firewall - ArchWiki.” 2024. Archlinux.Org. https://wiki.archlinux.org/title/Uncomplicated_Firewall.&amp;lt;/ref&amp;gt;&lt;br /&gt;
If you wish to use &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; on a system that has Docker, consider [https://docs.docker.com/engine/network/firewall-nftables#migrating-from-iptables-to-nftables migrating Docker to nftables.]&lt;br /&gt;
&lt;br /&gt;
== Verifying Configuration ==&lt;br /&gt;
After configuring your firewall, it&#039;s important to test the configuration to ensure that it&#039;s working how you think it is. This can be done with the help of a few command line tools. &lt;br /&gt;
&lt;br /&gt;
=== Verify that a port is open or closed === &lt;br /&gt;
To test whether a port is properly opened or closed, you can use set up a &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener a device behind the firewall, and use &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt; to connect to it with a device outside the firewall. On the inside device, run &amp;lt;code&amp;gt;nc -l -p &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt; (but replace &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; with your desired port) to start the listener. If you have a service that normally runs on this port, you&#039;ll need to temporarily stop it so that &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; can bind to the port. On the outside device, run &amp;lt;code&amp;gt;curl &amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;, and if the port is open, you&#039;ll see some text pop up on the &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener indicating that it received an HTTP GET request. &lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Traffic is supposed to pass but only works intermittently ===&lt;br /&gt;
This can happen when you have duplicate or conflicting firewall rules. Rules may be accidentally duplicated if you add runtime rules that are already part of persistent configuration, or add the same rules to multiple scripts or configuration files. Re-read your firewall rules and ensure there are no duplicates or conflicting rules. It may help to restore the last known working configuration, and retrace your steps until you either reproduce the issue or achieve your target working configuration.&lt;br /&gt;
&lt;br /&gt;
=== Traffic is supposed to pass but is not going through ===&lt;br /&gt;
Common causes:&lt;br /&gt;
* The firewall was not reloaded after changing configuration files&lt;br /&gt;
* The device has its own firewall &#039;&#039;and&#039;&#039; is behind the router firewall, and one of them is missing allow rules. &lt;br /&gt;
* Traffic has not been allowed on the correct protocol (TCP instead of UDP, or vice versa) &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3168</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3168"/>
		<updated>2026-11-04T18:06:40Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote secure auto AP and made more sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 3: Secure auto AP ==&lt;br /&gt;
Pi-Star automatically generates a WiFi network for configuration, in case you can&#039;t connect it to ethernet. This network is necessarily open at first, but should be configured with a password immediately for security. Go to &amp;lt;code&amp;gt;Configuration &amp;gt; Wireless Configuration &amp;gt; PSK&amp;lt;/code&amp;gt; and type your desired password in both boxes, then click &amp;lt;code&amp;gt;Set PSK&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If your Pi is connected using ethernet, and you want to disable the automatic WiFi network entirely, go to &amp;lt;code&amp;gt;Configuration &amp;gt; Firewall Configuration &amp;gt; Auto AP&amp;lt;/code&amp;gt; and set it to off. Click &amp;lt;code&amp;gt;Apply Changes&amp;lt;/code&amp;gt;, then reboot the Pi by going to &amp;lt;code&amp;gt;Power &amp;gt; Reboot&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Customize MMDVMHost configuration ==&lt;br /&gt;
&lt;br /&gt;
== Step 5: Customize DMRGateway Configuration ==&lt;br /&gt;
&lt;br /&gt;
== Step 6: Install wireguard-tools == &lt;br /&gt;
&lt;br /&gt;
== Step 7: Set up 44Net Connect tunnel ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3167</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3167"/>
		<updated>2026-10-31T00:08:34Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Finished writing section on disabling password-based SSH&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. &lt;br /&gt;
# SSH into Pi-Star to validate that your public key has been correctly added. It should not prompt you for a password. If it does, your key may not have been copied correctly, or you may be attempting to SSH with the wrong username.&lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.) Uncomment the line starting with &amp;lt;code&amp;gt;PasswordAuthentication&amp;lt;/code&amp;gt; and change its value to &amp;lt;code&amp;gt;no&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Reload the config file and restart &amp;lt;code&amp;gt;sshd&amp;lt;/code&amp;gt; using the following commands &amp;lt;code&amp;gt;sudo systemctl daemon-reload &amp;amp;&amp;amp; sudo systemctl restart sshd&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3166</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3166"/>
		<updated>2026-10-30T22:56:39Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Started section on disabling password-based SSH&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
* An SSH keypair&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;br /&gt;
&lt;br /&gt;
== Step 2: Disable password-based SSH == &lt;br /&gt;
This step is not strictly necessary unless you&#039;re going to allow SSH from outside your LAN. The default Pi-Star network configuration does not allow SSH from {{Term|WAN}}, but making this configuration change is good security practice anyway. SSH into your Pi-Star installation by running &amp;lt;code&amp;gt;ssh pi-star@&amp;lt;IP of device&amp;gt;&amp;lt;/code&amp;gt; in your terminal, or by navigating to &amp;lt;code&amp;gt;Expert &amp;gt; Tools &amp;gt; SSH Access&amp;lt;/code&amp;gt; in the Pi-Star web interface. Then: &lt;br /&gt;
&lt;br /&gt;
# Run &amp;lt;code&amp;gt;rpi-rw&amp;lt;/code&amp;gt; to switch the file system from read-only mode to read-write mode. &lt;br /&gt;
# From your device (not the SSH session for Pi-Star), use &amp;lt;code&amp;gt;ssh-copy-id&amp;lt;/code&amp;gt; to copy your SSH public key to Pi-Star: &amp;lt;code&amp;gt;ssh-copy-id pi-star@&amp;lt;ip of device&amp;gt;&amp;lt;/code&amp;gt;. If you don&#039;t have an SSH keypair, &lt;br /&gt;
# Edit the &amp;lt;code&amp;gt;/etc/ssh/sshd_config&amp;lt;/code&amp;gt; file using your terminal text editor of choice. Make sure to edit as superuser, such as &amp;lt;code&amp;gt;sudo nano /etc/ssh/sshd_config&amp;lt;/code&amp;gt;. (Pi-Star includes &amp;lt;code&amp;gt;vi&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nano&amp;lt;/code&amp;gt; by default.)&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3165</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3165"/>
		<updated>2026-10-30T21:59:49Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote step 1: change default password&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. &lt;br /&gt;
For those hosting a reflector or repeater, a static IP via 44Net Connect will prevent service interruptions caused by IP rotation, at the cost of a small latency increase.&amp;lt;ref&amp;gt;Repeater and reflector operators may find it useful to directly advertise 44Net addresses where possible to reduce latency.&amp;lt;/ref&amp;gt; &lt;br /&gt;
44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Change default password ==&lt;br /&gt;
After flashing your Pi-Star image and booting up your Pi, locate its IP address on the local network and navigate to that IP in your browser. You may be able to navigate to http://pi-star.local/admin/ instead, but resolution of &amp;lt;code&amp;gt;.local&amp;lt;/code&amp;gt; domains depends on your LAN allowing {{Term|mDNS}}. On first access, you&#039;ll be prompted to enter your login. The default username is &amp;lt;code&amp;gt;pi-star&amp;lt;/code&amp;gt; and the default password is &amp;lt;code&amp;gt;raspberry&amp;lt;/code&amp;gt;. Click on &amp;lt;code&amp;gt;Configuration&amp;lt;/code&amp;gt; at the top, then scroll to the &amp;lt;code&amp;gt;Remote Access Password&amp;lt;/code&amp;gt; section at the bottom. Use it to change your password to something non-default. &lt;br /&gt;
&lt;br /&gt;
[[File:Pi-star_change_password.png|A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password. ]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:Pi-star_change_password.png&amp;diff=3164</id>
		<title>File:Pi-star change password.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:Pi-star_change_password.png&amp;diff=3164"/>
		<updated>2026-10-30T21:59:03Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A screenshot of the Pi-Star configuration menu showing the section for changing the remote access password.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3163</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3163"/>
		<updated>2026-10-30T00:02:28Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote section on what you need&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;br /&gt;
&lt;br /&gt;
A static IPv4 address is not necessary for hotspot usage, but can be convenient for remote management so that dynamic DNS is not necessary. 44Net Connect usage is not officially endorsed by Pi-Star, and requires manual &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; management. &lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
* A 44Net Portal account&lt;br /&gt;
* A verified amateur radio callsign &lt;br /&gt;
* A Raspberry Pi running Pi-Star ([https://www.pistar.uk/downloads/ downloads and install guide here])&lt;br /&gt;
* Some sort of internet access &lt;br /&gt;
* Some sort of digital voice modem hardware (unless you intend to operate an internet-only reflector)&lt;br /&gt;
* DMR users need a DMR ID from RadioID.net&lt;br /&gt;
* NXDN users need an NXDN ID from RadioID.net&lt;br /&gt;
* Users setting up a DMR or NXDN repeater need a Repeater ID from RadioID.net&lt;br /&gt;
&lt;br /&gt;
If you haven&#039;t set up your Portal account or verified your callsign yet, see [[GetStarted|44Net: Get Started]] for instructions.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3162</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3162"/>
		<updated>2026-10-29T23:23:06Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added link to Pi-Star&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://www.pistar.uk/index.php Pi-Star] is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3161</id>
		<title>Pi-Star</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Pi-Star&amp;diff=3161"/>
		<updated>2026-10-29T23:08:54Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Created page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pi-Star is a prebuilt Debian image for Raspberry Pi that includes Multi-Mode Digital Voice Modem (MMDVM), DMRGateway, and a web UI. It provides an easy way for users to construct a DIY hotspot using {{Term|MMDVM}}, which supports {{Term|DMR}}, {{Term|D-Star}}, Yaesu System Fusion ({{Term|YSF}}), {{Term|M17}}, {{Term|P25}}, {{Term|POCSAG}}, and {{Term|FM}}.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3160</id>
		<title>Firewalling Basics</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=Firewalling_Basics&amp;diff=3160"/>
		<updated>2026-10-28T22:32:54Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Changed warning about FedoraWorkstation zone to a callout&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 44Net Connect and Security == &lt;br /&gt;
44Net Connect provides every device with a public facing IPv4 address, and does not inspect, filter, or block any traffic directed towards 44Net devices. Devices with publicly routable IP addresses face a constant barrage of traffic from various scanners and bots on the internet. Some of them are malicious, and correctly configuring your firewall is a key part of defending against them. &lt;br /&gt;
&lt;br /&gt;
== What does a firewall do? ==&lt;br /&gt;
At its most basic, a firewall inspects incoming and outgoing packets, and based on its set of rules, decides whether each packet should be allowed through, dropped, or diverted. Rules may consider a packet&#039;s source and destination IP, source and destination interface, port, protocol (TCP vs UDP), or various special flags that may be set. Basic firewall usage is primarily concerned with source/destination IP, source/destination interface, and port. There are several goals we can achieve via firewall rules: allow outside connections to public-facing services, block outside connections to private services, and in case your device is compromised, block outgoing malicious traffic originating from your device. &lt;br /&gt;
&lt;br /&gt;
Outside connections to a public-facing service are typically allowed using a firewall rule that accepts all packets on the port that service is using, regardless of the packet&#039;s source IP. Private services, such as those only intended for your LAN, are typically protected by a firewall rule that only accepts packets whose source IP is inside your LAN. Packets sent to that port that originate externally will be dropped. You may have services that are only meant to be accessed from &amp;lt;code&amp;gt;localhost&amp;lt;/code&amp;gt;, such as control interfaces accessed only by other software on the same device. &lt;br /&gt;
&lt;br /&gt;
=== Stateful Firewalls ===&lt;br /&gt;
Stateful firewalls are capable of remembering information about previous packets, and using it when making later decisions. The most common use for this is connection tracking, a feature enabled by default on many firewalls. Connection tracking remembers when a trusted device, usually one inside your LAN, has initiated a connection to an external device. When the return traffic from the external device comes in, it will be allowed through the firewall, even if the default policy would have otherwise dropped it. It&#039;s important to remember this feature when testing your firewall. Even if your device is able to initiate connections to an untrusted device on the outside of your firewall, that device may not be able to initiate a connection to your device, depending on your firewall rules. Most modern firewalls, such as those based on &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;, are stateful. If for some reason this behavior is undesirable, it can be overridden with rules that explicitly drop the unwanted external traffic. &lt;br /&gt;
&lt;br /&gt;
Stateful firewalls also enable various advanced security features that are outside the scope of this guide, such as those utilizing TCP sequence numbers. &lt;br /&gt;
&lt;br /&gt;
Stateless firewalls are not capable of remembering previous packets, and handle each packet as if it&#039;s completely unrelated to all other packets.&lt;br /&gt;
&lt;br /&gt;
== Configuration Recommendations ==&lt;br /&gt;
When configuring any kind of security policy, best practice is to apply the &#039;&#039;&#039;principle of least privilege.&#039;&#039;&#039; This means that a person or device is given the minimum level of access to perform their job. This minimizes attack surface (the ways in which a malicious party can attack your network) and minimizes damage if a device or user&#039;s credentials are compromised. When it comes to configuring a firewall, that means only opening the ports on which you&#039;re actually running services, and only allowing communication between network segments if it&#039;s actually necessary. &lt;br /&gt;
&lt;br /&gt;
For example, some people confine Internet of Things (IoT) devices to their own {{term|VLAN}} due to their often poor security. In such a configuration, you might allow devices from the regular LAN to initiate connections to the IoT devices, but not the other way around, to prevent a compromised IoT device from attacking the rest of your network. We recommend a similar configuration for your 44Net subnet. Some take it a step further, and block {{term|WAN}} access from the IoT VLAN to prevent devices from sending telemetry to their manufacturer.&lt;br /&gt;
&lt;br /&gt;
When restricting access between devices on your internal network, it can be helpful to use a policy that explicitly rejects disallowed packets rather than silently dropping them. This feedback can be helpful when troubleshooting, as it immediately lets you know that packets are being blocked by firewall policy rather than something like a port mismatch or a hostname/IP typo. Reject policies should not be used for WAN-facing interfaces, otherwise you may spend lots of compute power sending packet rejections to automated scanners and other malicious actors on the wider internet.&lt;br /&gt;
&lt;br /&gt;
== Low Level Tools ==&lt;br /&gt;
=== iptables ===&lt;br /&gt;
&amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; is a Linux firewall rule management tool that was deprecated in favor of &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; in 2014. It allows system administrators to define &#039;&#039;tables&#039;&#039; containing &#039;&#039;chains&#039;&#039; of &#039;&#039;rules&#039;&#039; for the treatment of packets.&amp;lt;ref&amp;gt;https://en.wikipedia.org/wiki/Iptables&amp;lt;/ref&amp;gt; Both &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt; use the netfilter framework to interface with the Linux kernel. &lt;br /&gt;
&lt;br /&gt;
Modern systems no longer ship with an actual copy of &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, instead using a compatibility layer that translates its rules to &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== nftables ===&lt;br /&gt;
nftables is the currently maintained Linux firewall rule management tool. It interfaces with the Linux kernel via the netfilter framework, and can be administrated with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; command line tool as well as editing &amp;lt;code&amp;gt;/etc/nftables.conf&amp;lt;/code&amp;gt;. Changes made with the &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; tool will not persist between reboots, and must be written into the config file to ensure persistence. It functions similarly to &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt;, employing tables of chains of rules, but with no predefined chains and more flexible rules.&lt;br /&gt;
&lt;br /&gt;
[[ File:Netfilter.png | 500px | A diagram illustrating the table, chain, and rule hierarchy used by iptables and nftables. A packet proceeds into the table, through the first chain, and does not match any rules. It proceeds through the second chain, matches the second rule, and makes a routing decision. ]]&lt;br /&gt;
&lt;br /&gt;
While firewall rules can be directly configured with &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt;, this is not recommended. The output of &amp;lt;code&amp;gt;sudo nft list ruleset&amp;lt;/code&amp;gt; is extremely verbose and not well formatted. &amp;lt;code&amp;gt;nft&amp;lt;/code&amp;gt; provides few formatting options for this output. See the next section for user-friendly tools that interface with nftables.&lt;br /&gt;
&lt;br /&gt;
== High Level Tools ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is an &amp;lt;code&amp;gt;nftables&amp;lt;/code&amp;gt;-based CLI firewall management tool. It ships by default on CentOS, Fedora, OpenSUSE, RHEL, SUSE Enterprise, and EndeavourOS, and is packaged for many more distributions. It introduces the idea of a &amp;quot;zone,&amp;quot; which is a named set of policies that an interface can be assigned to. Each zone has a target, which is set to &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt;. These targets determine what action will be taken on packets in the zone that don&#039;t match any of the rules, services, or ports. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; will accept ICMP and drop everything else.&lt;br /&gt;
* &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; will discard packets without notifying the sender.&lt;br /&gt;
* &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will discard the packet and notify the sender of its rejection.&lt;br /&gt;
* &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow the packet through.&lt;br /&gt;
&lt;br /&gt;
Check your current zone configuration by running &amp;lt;code&amp;gt;sudo firewalld --list-all-zones&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
It&#039;s best to put public-facing interfaces into a &amp;lt;code&amp;gt;default&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt; target zone. &amp;lt;code&amp;gt;ACCEPT&amp;lt;/code&amp;gt; will allow unwanted or malicious traffic, and &amp;lt;code&amp;gt;REJECT&amp;lt;/code&amp;gt; will spend lots of bandwidth replying to the barrage of traffic from bots scanning the internet. Devices owned by you but publicly accessible from the internet are typically put in a demilitarized zone (DMZ), a network area with only some access to the LAN. This typically involves preventing DMZ devices from initiating connections to LAN devices, but allowing the opposite. &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; comes with a &amp;lt;code&amp;gt;dmz&amp;lt;/code&amp;gt; zone by default, and this is a good place to put the interface that faces your 44Net subnet. (Note that your LAN interface must also be in a default accept zone for it to allow initiating connections to DMZ devices.) &lt;br /&gt;
&lt;br /&gt;
{{Info|Warn|Fedora comes with the &amp;lt;code&amp;gt;FedoraWorkstation&amp;lt;/code&amp;gt; zone as the default zone for all interfaces. It leaves open all ports above 1024. &#039;&#039;This configuration is not suitable for public-facing interfaces.&#039;&#039; Always move interfaces directly exposed to the internet, such as 44Net Connect tunnels, to a more restrictive zone. }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; can be controlled using the &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; utility, or by editing the config file at &amp;lt;code&amp;gt;/etc/firewalld&amp;lt;/code&amp;gt;. Typical policy changes introduced using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; are called &amp;quot;runtime&amp;quot; changes, and will not persist after a restart of the service or a reboot. Permanent changes can be made by adding the &amp;lt;code&amp;gt;--permanent&amp;lt;/code&amp;gt; flag, or by introducing runtime changes and then invoking &amp;lt;code&amp;gt;firewall-cmd --runtime-to-permanent&amp;lt;/code&amp;gt;, which saves all current runtime changes to permanent configuration.&lt;br /&gt;
&lt;br /&gt;
Services are a &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; abstraction containing a list of ports, protocols, destinations, and optionally a list of firewall helper modules to be loaded if the service is enabled. They make it easy to toggle these configuration groups, rather than having to toggle every rule in them individually. They can be configured using &amp;lt;code&amp;gt;firewall-cmd&amp;lt;/code&amp;gt; or by creating an XML file in &amp;lt;code&amp;gt;/etc/firewalld/services/&amp;lt;/code&amp;gt;. See &amp;lt;code&amp;gt;man firewalld.service&amp;lt;/code&amp;gt; for more information on services. As an example, the following command would enable the &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; service in the &amp;lt;code&amp;gt;public&amp;lt;/code&amp;gt; zone. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo firewall-cmd --permanent --zone public --add-service ssh&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another advantage of using services is that the service definition can be edited, and then it will apply to all zones with that service enabled when firewalld is reloaded. firewalld can be reloaded using &amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
Uncomplicated Firewall is a CLI program designed for easily managing a netfilter firewall. It also supports GUI management via the &amp;lt;code&amp;gt;gufw&amp;lt;/code&amp;gt; tool. When running, the active firewall rules can be viewed with &amp;lt;code&amp;gt;sudo ufw status&amp;lt;/code&amp;gt;. If you want to see the firewall rules while &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not running, use &amp;lt;code&amp;gt;sudo ufw show added&amp;lt;/code&amp;gt;. It uses a simple syntax with property names rather than flags. For the very simple operation of opening a port without utilizing any optional parameters, you need not even specify property names. One can allow TCP connections on port 22 (for example, to allow an SSH server) and start UFW as follows:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo ufw allow 22/tcp&lt;br /&gt;
sudo ufw enable&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It also allows comments by specifying the &amp;lt;code&amp;gt;comment&amp;lt;/code&amp;gt; property and enclosing the actual comment in quotes. For example, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ufw allow 22/tcp comment &#039;SSH port&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will show in the &amp;lt;code&amp;gt;ufw status&amp;lt;/code&amp;gt; output as &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
To                         Action      From&lt;br /&gt;
--                         ------      ----&lt;br /&gt;
22/tcp                     ALLOW       Anywhere                 # SSH port&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; uses similar targets to &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, except it uses &amp;lt;code&amp;gt;deny&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;DROP&amp;lt;/code&amp;gt;. To put a 44Net subnet in a {{term:DMZ}}, apply the following rules. &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
sudo ufw reject in on &amp;lt;subnet interface&amp;gt; to &amp;lt;LAN interface&amp;gt;&lt;br /&gt;
sudo ufw accept in on &amp;lt;LAN interface&amp;gt; to &amp;lt;subnet interface&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default, Docker writes its own &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; rules and ignores &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules. This can cause conflicts and security issues in combination with &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;“Uncomplicated Firewall - ArchWiki.” 2024. Archlinux.Org. https://wiki.archlinux.org/title/Uncomplicated_Firewall.&amp;lt;/ref&amp;gt;&lt;br /&gt;
If you wish to use &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; on a system that has Docker, consider [https://docs.docker.com/engine/network/firewall-nftables#migrating-from-iptables-to-nftables migrating Docker to nftables.]&lt;br /&gt;
&lt;br /&gt;
== Verifying Configuration ==&lt;br /&gt;
After configuring your firewall, it&#039;s important to test the configuration to ensure that it&#039;s working how you think it is. This can be done with the help of a few command line tools. &lt;br /&gt;
&lt;br /&gt;
=== Verify that a port is open or closed === &lt;br /&gt;
To test whether a port is properly opened or closed, you can use set up a &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener a device behind the firewall, and use &amp;lt;code&amp;gt;curl&amp;lt;/code&amp;gt; to connect to it with a device outside the firewall. On the inside device, run &amp;lt;code&amp;gt;nc -l -p &amp;lt;port&amp;gt;&amp;lt;/code&amp;gt; (but replace &amp;lt;code&amp;gt;port&amp;lt;/code&amp;gt; with your desired port) to start the listener. If you have a service that normally runs on this port, you&#039;ll need to temporarily stop it so that &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; can bind to the port. On the outside device, run &amp;lt;code&amp;gt;curl &amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;&amp;lt;/code&amp;gt;, and if the port is open, you&#039;ll see some text pop up on the &amp;lt;code&amp;gt;netcat&amp;lt;/code&amp;gt; listener indicating that it received an HTTP GET request. &lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Traffic is supposed to pass but only works intermittently ===&lt;br /&gt;
This can happen when you have duplicate or conflicting firewall rules. This can happen if you add runtime rules that are already part of persistent configuration, or add the same rules to multiple scripts or configuration files. Re-read your firewall rules and ensure there are no duplicates or conflicting rules. It may help to restore the last known working configuration, and start from there.&lt;br /&gt;
&lt;br /&gt;
=== Traffic is supposed to pass but is not going through ===&lt;br /&gt;
Common causes:&lt;br /&gt;
* The firewall was not reloaded after changing configuration files&lt;br /&gt;
* The device has its own firewall &#039;&#039;and&#039;&#039; is behind the router firewall, and one of them is missing allow rules. &lt;br /&gt;
* Traffic has not been allowed on the correct protocol (TCP instead of UDP, or vice versa) &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3152</id>
		<title>44Net Connect/Split Tunnel</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3152"/>
		<updated>2026-10-19T23:53:47Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote troubleshooting section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, 44Net Connect uses a full tunnel, meaning all of your device&#039;s traffic goes through the WireGuard tunnel and comes out of the 44Net Connect endpoint. This simplifies configuration and troubleshooting, so it&#039;s good for new users. It also puts unnecessary traffic, such as software updates, through 44Net Connect endpoints. Bandwidth is a major expense for running 44Net Connect, so we request that users who are comfortable with advanced network configuration use a split tunnel, which puts necessary traffic through the tunnel. Split tunnel usage will remain opt-in because the advanced configuration required is not beginner friendly.&lt;br /&gt;
&lt;br /&gt;
== WireGuard configuration ==&lt;br /&gt;
Below is a template for the split tunnel WireGuard configuration. To fill it out, complete the following steps: &lt;br /&gt;
# Fill in the name of the file where this config will be saved, in every spot labeled &amp;lt;code&amp;gt;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;lt;/code&amp;gt;. WireGuard uses the file name for the name of the interface it creates, which is why this is necessary configuration information. &lt;br /&gt;
# Fill in the 44Net IPv4 address from your original config in every spot labeled &amp;lt;code&amp;gt;&amp;lt;YOUR 44NET ADDRESS&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Place the new config file in &amp;lt;code&amp;gt;/etc/wireguard/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Interface]&lt;br /&gt;
PrivateKey = INSERT PRIVATE KEY&lt;br /&gt;
Address = YOUR ADDRESSES&lt;br /&gt;
&lt;br /&gt;
# The below line disables the default WireGuard routing rules&lt;br /&gt;
Table = off&lt;br /&gt;
MTU = 1380&lt;br /&gt;
&lt;br /&gt;
PostUp = ip route add default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
PostUp = ip rule add from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
&lt;br /&gt;
# Apply a firewall mark (fwmark) to connections initiated through the tunnel, and &lt;br /&gt;
# route marked return traffic through the tunnel&lt;br /&gt;
PostUp = nft add table ip wgsplit&lt;br /&gt;
PostUp = nft &#039;add chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostUp = nft add rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostUp = ip rule add fwmark 0x2a lookup 51820&lt;br /&gt;
&lt;br /&gt;
# Undo connection tracking&lt;br /&gt;
PostDown = ip rule del fwmark 0x2a lookup 51820&lt;br /&gt;
PostDown = nft del rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostDown = &#039;delete chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostDown = nft delete table ip wgsplit&lt;br /&gt;
&lt;br /&gt;
PostDown = ip rule del from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
PostDown = ip route del default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[Peer]&lt;br /&gt;
PublicKey = PxVe0R15aG7ZraLIXgzkz96/yEzHXFce3rtH8XOCTCc=&lt;br /&gt;
Endpoint = 44.27.228.1:44000&lt;br /&gt;
PersistentKeepalive = 20&lt;br /&gt;
# AllowedIPs must remain 0.0.0.0/0 because people may initiate connections from non-44Net&lt;br /&gt;
# IP addresses, and those should be allowed in.&lt;br /&gt;
AllowedIPs = 0.0.0.0/0, ::/0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing the file, but before enabling the systemd unit, run &amp;lt;code&amp;gt;sudo systemctl edit wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt; and add the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Conflicts=wg-quick@&amp;lt;name of full tunnel config file&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will mark your split tunnel &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit as conflicting with the full tunnel unit. That prevents you from accidentally running them both at the same time. When you start one, if the other is running, it will be automatically stopped. &lt;br /&gt;
&lt;br /&gt;
Now the tunnel is ready, and can be started with &amp;lt;code&amp;gt;sudo systemctl enable --now wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
When using a split tunnel, you may experience traffic intended to exit via the 44Net Connect tunnel instead exiting via your normal connection. The cause for this varies based on application. The following tools may be helpful in diagnosing the issue. &lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;traceroute&amp;lt;/code&amp;gt;&lt;br /&gt;
* Wireshark / &amp;lt;code&amp;gt;tshark&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;tcpdump&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;ip route&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ip rule&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applications that support binding to a particular IP address should be instructed to bind to the 44Net IP address if their traffic is meant to always exit via the 44Net Connect tunnel. The Asterisk PBX software is one example that requires this.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3151</id>
		<title>44Net Connect/Split Tunnel</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3151"/>
		<updated>2026-10-19T23:16:10Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Another comment and formatting fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, 44Net Connect uses a full tunnel, meaning all of your device&#039;s traffic goes through the WireGuard tunnel and comes out of the 44Net Connect endpoint. This simplifies configuration and troubleshooting, so it&#039;s good for new users. It also puts unnecessary traffic, such as software updates, through 44Net Connect endpoints. Bandwidth is a major expense for running 44Net Connect, so we request that users who are comfortable with advanced network configuration use a split tunnel, which puts necessary traffic through the tunnel. Split tunnel usage will remain opt-in because the advanced configuration required is not beginner friendly.&lt;br /&gt;
&lt;br /&gt;
== WireGuard configuration ==&lt;br /&gt;
Below is a template for the split tunnel WireGuard configuration. To fill it out, complete the following steps: &lt;br /&gt;
# Fill in the name of the file where this config will be saved, in every spot labeled &amp;lt;code&amp;gt;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;lt;/code&amp;gt;. WireGuard uses the file name for the name of the interface it creates, which is why this is necessary configuration information. &lt;br /&gt;
# Fill in the 44Net IPv4 address from your original config in every spot labeled &amp;lt;code&amp;gt;&amp;lt;YOUR 44NET ADDRESS&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Place the new config file in &amp;lt;code&amp;gt;/etc/wireguard/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Interface]&lt;br /&gt;
PrivateKey = INSERT PRIVATE KEY&lt;br /&gt;
Address = YOUR ADDRESSES&lt;br /&gt;
&lt;br /&gt;
# The below line disables the default WireGuard routing rules&lt;br /&gt;
Table = off&lt;br /&gt;
MTU = 1380&lt;br /&gt;
&lt;br /&gt;
PostUp = ip route add default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
PostUp = ip rule add from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
&lt;br /&gt;
# Apply a firewall mark (fwmark) to connections initiated through the tunnel, and &lt;br /&gt;
# route marked return traffic through the tunnel&lt;br /&gt;
PostUp = nft add table ip wgsplit&lt;br /&gt;
PostUp = nft &#039;add chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostUp = nft add rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostUp = ip rule add fwmark 0x2a lookup 51820&lt;br /&gt;
&lt;br /&gt;
# Undo connection tracking&lt;br /&gt;
PostDown = ip rule del fwmark 0x2a lookup 51820&lt;br /&gt;
PostDown = nft del rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostDown = &#039;delete chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostDown = nft delete table ip wgsplit&lt;br /&gt;
&lt;br /&gt;
PostDown = ip rule del from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
PostDown = ip route del default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[Peer]&lt;br /&gt;
PublicKey = PxVe0R15aG7ZraLIXgzkz96/yEzHXFce3rtH8XOCTCc=&lt;br /&gt;
Endpoint = 44.27.228.1:44000&lt;br /&gt;
PersistentKeepalive = 20&lt;br /&gt;
# AllowedIPs must remain 0.0.0.0/0 because people may initiate connections from non-44Net&lt;br /&gt;
# IP addresses, and those should be allowed in.&lt;br /&gt;
AllowedIPs = 0.0.0.0/0, ::/0&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing the file, but before enabling the systemd unit, run &amp;lt;code&amp;gt;sudo systemctl edit wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt; and add the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Conflicts=wg-quick@&amp;lt;name of full tunnel config file&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will mark your split tunnel &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit as conflicting with the full tunnel unit. That prevents you from accidentally running them both at the same time. When you start one, if the other is running, it will be automatically stopped. &lt;br /&gt;
&lt;br /&gt;
Now the tunnel is ready, and can be started with &amp;lt;code&amp;gt;sudo systemctl enable --now wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Recommended troubleshooting tools ==&lt;br /&gt;
* &amp;lt;code&amp;gt;traceroute&amp;lt;/code&amp;gt;&lt;br /&gt;
* Wireshark / &amp;lt;code&amp;gt;tshark&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;tcpdump&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;ip route&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ip rule&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3150</id>
		<title>44Net Connect/Split Tunnel</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3150"/>
		<updated>2026-10-19T23:15:09Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added comment and formatting fix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, 44Net Connect uses a full tunnel, meaning all of your device&#039;s traffic goes through the WireGuard tunnel and comes out of the 44Net Connect endpoint. This simplifies configuration and troubleshooting, so it&#039;s good for new users. It also puts unnecessary traffic, such as software updates, through 44Net Connect endpoints. Bandwidth is a major expense for running 44Net Connect, so we request that users who are comfortable with advanced network configuration use a split tunnel, which puts necessary traffic through the tunnel. Split tunnel usage will remain opt-in because the advanced configuration required is not beginner friendly.&lt;br /&gt;
&lt;br /&gt;
== WireGuard configuration ==&lt;br /&gt;
Below is a template for the split tunnel WireGuard configuration. To fill it out, complete the following steps: &lt;br /&gt;
# Fill in the name of the file where this config will be saved, in every spot labeled &amp;lt;code&amp;gt;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;lt;/code&amp;gt;. WireGuard uses the file name for the name of the interface it creates, which is why this is necessary configuration information. &lt;br /&gt;
# Fill in the 44Net IPv4 address from your original config in every spot labeled &amp;lt;code&amp;gt;&amp;lt;YOUR 44NET ADDRESS&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Place the new config file in &amp;lt;code&amp;gt;/etc/wireguard/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Interface]&lt;br /&gt;
PrivateKey = INSERT PRIVATE KEY&lt;br /&gt;
Address = YOUR ADDRESSES&lt;br /&gt;
&lt;br /&gt;
# The below line disables the default WireGuard routing rules&lt;br /&gt;
Table = off&lt;br /&gt;
MTU = 1380&lt;br /&gt;
&lt;br /&gt;
PostUp = ip route add default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
PostUp = ip rule add from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
&lt;br /&gt;
# Apply a firewall mark (fwmark) to connections initiated through the tunnel, and &lt;br /&gt;
# route marked return traffic through the tunnel&lt;br /&gt;
PostUp = nft add table ip wgsplit&lt;br /&gt;
PostUp = nft &#039;add chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostUp = nft add rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostUp = ip rule add fwmark 0x2a lookup 51820&lt;br /&gt;
&lt;br /&gt;
# Undo connection tracking&lt;br /&gt;
PostDown = ip rule del fwmark 0x2a lookup 51820&lt;br /&gt;
PostDown = nft del rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostDown = &#039;delete chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostDown = nft delete table ip wgsplit&lt;br /&gt;
&lt;br /&gt;
PostDown = ip rule del from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
PostDown = ip route del default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[Peer]&lt;br /&gt;
PublicKey = PxVe0R15aG7ZraLIXgzkz96/yEzHXFce3rtH8XOCTCc=&lt;br /&gt;
Endpoint = 44.27.228.1:44000&lt;br /&gt;
PersistentKeepalive = 20&lt;br /&gt;
AllowedIPs = 0.0.0.0/0, ::/0&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing the file, but before enabling the systemd unit, run &amp;lt;code&amp;gt;sudo systemctl edit wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt; and add the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Conflicts=wg-quick@&amp;lt;name of full tunnel config file&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will mark your split tunnel &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit as conflicting with the full tunnel unit. That prevents you from accidentally running them both at the same time. When you start one, if the other is running, it will be automatically stopped. &lt;br /&gt;
&lt;br /&gt;
Now the tunnel is ready, and can be started with &amp;lt;code&amp;gt;sudo systemctl enable --now wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Recommended troubleshooting tools ==&lt;br /&gt;
* &amp;lt;code&amp;gt;traceroute&amp;lt;/code&amp;gt;&lt;br /&gt;
* Wireshark / &amp;lt;code&amp;gt;tshark&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;tcpdump&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;ip route&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ip rule&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3149</id>
		<title>44Net Connect/Split Tunnel</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3149"/>
		<updated>2026-10-19T23:14:14Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added configuration template and explanation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, 44Net Connect uses a full tunnel, meaning all of your device&#039;s traffic goes through the WireGuard tunnel and comes out of the 44Net Connect endpoint. This simplifies configuration and troubleshooting, so it&#039;s good for new users. It also puts unnecessary traffic, such as software updates, through 44Net Connect endpoints. Bandwidth is a major expense for running 44Net Connect, so we request that users who are comfortable with advanced network configuration use a split tunnel, which puts necessary traffic through the tunnel. Split tunnel usage will remain opt-in because the advanced configuration required is not beginner friendly.&lt;br /&gt;
&lt;br /&gt;
== WireGuard configuration ==&lt;br /&gt;
Below is a template for the split tunnel WireGuard configuration. To fill it out, complete the following steps: &lt;br /&gt;
# Fill in the name of the file where this config will be saved, in every spot labeled &amp;lt;code&amp;gt;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;lt;/code&amp;gt;. WireGuard uses the file name for the name of the interface it creates, which is why this is necessary configuration information. &lt;br /&gt;
# Fill in the 44Net IPv4 address from your original config in every spot labeled &amp;lt;code&amp;gt;&amp;lt;YOUR 44NET ADDRESS&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Place the new config file in &amp;lt;code&amp;gt;/etc/wireguard/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Interface]&lt;br /&gt;
PrivateKey = INSERT PRIVATE KEY&lt;br /&gt;
Address = YOUR ADDRESSES&lt;br /&gt;
&lt;br /&gt;
Table = off&lt;br /&gt;
MTU = 1380&lt;br /&gt;
&lt;br /&gt;
PostUp = ip route add default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
PostUp = ip rule add from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
&lt;br /&gt;
# Apply a firewall mark (fwmark) to connections initiated through the tunnel, and &lt;br /&gt;
# route marked return traffic through the tunnel&lt;br /&gt;
PostUp = nft add table ip wgsplit&lt;br /&gt;
PostUp = nft &#039;add chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostUp = nft add rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostUp = ip rule add fwmark 0x2a lookup 51820&lt;br /&gt;
&lt;br /&gt;
# Undo connection tracking&lt;br /&gt;
PostDown = ip rule del fwmark 0x2a lookup 51820&lt;br /&gt;
PostDown = nft del rule ip wgsplit pre iifname &amp;quot;&amp;lt;NAME OF CONFIG FILE&amp;gt;&amp;quot; ct mark set 0x2a&lt;br /&gt;
PostDown = &#039;delete chain ip wgsplit pre { type filter hook prerouting priority mangle; }&#039;&lt;br /&gt;
PostDown = nft delete table ip wgsplit&lt;br /&gt;
&lt;br /&gt;
PostDown = ip rule del from &amp;lt;YOUR 44NET ADDRESS&amp;gt;/32 table 51820&lt;br /&gt;
PostDown = ip route del default dev &amp;lt;NAME OF CONFIG FILE&amp;gt; table 51820&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[Peer]&lt;br /&gt;
PublicKey = PxVe0R15aG7ZraLIXgzkz96/yEzHXFce3rtH8XOCTCc=&lt;br /&gt;
Endpoint = 44.27.228.1:44000&lt;br /&gt;
PersistentKeepalive = 20&lt;br /&gt;
AllowedIPs = 0.0.0.0/0, ::/0&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing the file, but before enabling the systemd unit, run &amp;lt;code&amp;gt;sudo systemctl edit wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt; and add the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Conflicts=wg-quick@&amp;lt;name of full tunnel config file&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will mark your split tunnel &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit as conflicting with the full tunnel unit. That prevents you from accidentally running them both at the same time. When you start one, if the other is running, it will be automatically stopped. &lt;br /&gt;
&lt;br /&gt;
Now the tunnel is ready, and can be started with &amp;lt;code&amp;gt;sudo systemctl enable --now wg-quick@&amp;lt;name of config file&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Recommended troubleshooting tools ==&lt;br /&gt;
* &amp;lt;code&amp;gt;traceroute&amp;lt;/code&amp;gt;&lt;br /&gt;
* Wireshark / &amp;lt;code&amp;gt;tshark&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;tcpdump&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;ip route&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;ip rule&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3148</id>
		<title>44Net Connect/Split Tunnel</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=44Net_Connect/Split_Tunnel&amp;diff=3148"/>
		<updated>2026-10-19T21:22:12Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Created page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;By default, 44Net Connect uses a full tunnel, meaning all of your device&#039;s traffic goes through the WireGuard tunnel and comes out of the 44Net Connect endpoint. This simplifies configuration and troubleshooting, so it&#039;s good for new users. It also puts unnecessary traffic, such as software updates, through 44Net Connect endpoints. Bandwidth is a major expense for running 44Net Connect, so we request that users who are comfortable with advanced network configuration use a split tunnel, which puts necessary traffic through the tunnel. Split tunnel usage will remain opt-in because the advanced configuration required is not beginner friendly.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3146</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3146"/>
		<updated>2026-10-15T17:27:30Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
Look up a node to connect to for testing purposes, using [https://www.allstarlink.org/nodelist/ AllStarLink node search] or a third party site like [https://repeaterbook.com/ RepeaterBook]. In the linking command dialogue, select the connect command, type in the node number, and select &amp;quot;No&amp;quot; for whether the connection is permanent. &lt;br /&gt;
&lt;br /&gt;
[[File:link_connect_dialogue.png|alt=A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent. ]]&lt;br /&gt;
&lt;br /&gt;
After you issue the connect command, if the connection succeeds, the state will change to &amp;quot;ESTABLISHED&amp;quot; in your connection table. If it stays on connecting for a while and then disconnects, try another node. If the command shows an error in the dialogue instead of proceeding to connecting, see the troubleshooting section at the bottom. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_connected.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; ]]&lt;br /&gt;
&lt;br /&gt;
Once the connection is established, you can disconnect using the button all the way to the left. (It&#039;s very low contrast, but turns red when moused-over. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_disconnect.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; The disconnect button is highlighted with a red square.]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
RepeaterPhone is a paid iOS VoIP app that lets you connect directly to AllStar nodes. It can be used to test the functionality of your node after setup. &lt;br /&gt;
&lt;br /&gt;
# Download RepeaterPhone&lt;br /&gt;
# Go to &amp;lt;code&amp;gt;Settings &amp;gt; Accounts&amp;lt;/code&amp;gt; and click &amp;quot;New Account.&amp;quot; &lt;br /&gt;
# Click on the AllStarLink logo, and fill in the callsign and password you use to access the AllStarLink portal. Click &amp;quot;Add Account&amp;quot; at the bottom. &lt;br /&gt;
# Go to the Directory tab, and look up your node by number or callsign. &lt;br /&gt;
# Click on it, then click the big &amp;quot;Connect&amp;quot; button. &lt;br /&gt;
&lt;br /&gt;
On a successful connection, the node should read out the node number to you. If it fails to connect, or gets stuck on calling for more than 30s, you may have a configuration error. In that case, consult the troubleshooting section at the bottom.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Command Error, undefined when executing linking commands in Allmon3 ===&lt;br /&gt;
According to [https://community.allstarlink.org/t/command-error-undefined/23298 this ASL forum thread], this error happens when your &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; IP is set incorrectly in &amp;lt;code&amp;gt;/etc/allmon3/allmon3.ini&amp;lt;/code&amp;gt;. It should be set to &amp;lt;code&amp;gt;127.0.0.1&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3145</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3145"/>
		<updated>2026-10-15T17:27:03Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added instructions for RepeaterPhone&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
Look up a node to connect to for testing purposes, using [https://www.allstarlink.org/nodelist/ AllStarLink node search] or a third party site like [https://repeaterbook.com/ RepeaterBook]. In the linking command dialogue, select the connect command, type in the node number, and select &amp;quot;No&amp;quot; for whether the connection is permanent. &lt;br /&gt;
&lt;br /&gt;
[[File:link_connect_dialogue.png|alt=A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent. ]]&lt;br /&gt;
&lt;br /&gt;
After you issue the connect command, if the connection succeeds, the state will change to &amp;quot;ESTABLISHED&amp;quot; in your connection table. If it stays on connecting for a while and then disconnects, try another node. If the command shows an error in the dialogue instead of proceeding to connecting, see the troubleshooting section at the bottom. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_connected.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; ]]&lt;br /&gt;
&lt;br /&gt;
Once the connection is established, you can disconnect using the button all the way to the left. (It&#039;s very low contrast, but turns red when moused-over. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_disconnect.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; The disconnect button is highlighted with a red square.]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
RepeaterPhone is a paid iOS VoIP app that lets you connect directly to AllStar nodes. It can be used to test the functionality of your node after setup. &lt;br /&gt;
&lt;br /&gt;
# Download RepeaterPhone&lt;br /&gt;
# Go to &amp;lt;code&amp;gt;Settings &amp;gt; Accounts&amp;lt;/code&amp;gt; and click &amp;quot;New Account.&amp;quot; &lt;br /&gt;
# Click on the AllStarLink logo, and fill in the callsign and password you use to access the AllStarLink portal. Click &amp;quot;Add Account&amp;quot; at the bottom. &lt;br /&gt;
# Go to the Directory tab, and look up your node by number or callsign. &lt;br /&gt;
# Click on it, then click the big &amp;quot;Connect&amp;quot; button. &lt;br /&gt;
&lt;br /&gt;
On a successful connection, the node should read out the node number to you. If it fails to connect, or gets stuck on calling for more than 30s, you may have a configuration error. In that case, consult the troubleshooting section at the bottom.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Command Error, undefined when executing linking commands in Allmon3 ===&lt;br /&gt;
According to [https://community.allstarlink.org/t/command-error-undefined/23298 this ASL forum thread], this error happens when your &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; IP is set incorrectly in &amp;lt;code&amp;gt;/etc/allmon3/allmon3.ini&amp;lt;/code&amp;gt;. It should be set to &amp;lt;code&amp;gt;127.0.0.1&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3144</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3144"/>
		<updated>2026-10-15T00:05:25Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added troubleshooting section for command error undefined&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
Look up a node to connect to for testing purposes, using [https://www.allstarlink.org/nodelist/ AllStarLink node search] or a third party site like [https://repeaterbook.com/ RepeaterBook]. In the linking command dialogue, select the connect command, type in the node number, and select &amp;quot;No&amp;quot; for whether the connection is permanent. &lt;br /&gt;
&lt;br /&gt;
[[File:link_connect_dialogue.png|alt=A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent. ]]&lt;br /&gt;
&lt;br /&gt;
After you issue the connect command, if the connection succeeds, the state will change to &amp;quot;ESTABLISHED&amp;quot; in your connection table. If it stays on connecting for a while and then disconnects, try another node. If the command shows an error in the dialogue instead of proceeding to connecting, see the troubleshooting section at the bottom. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_connected.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; ]]&lt;br /&gt;
&lt;br /&gt;
Once the connection is established, you can disconnect using the button all the way to the left. (It&#039;s very low contrast, but turns red when moused-over. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_disconnect.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; The disconnect button is highlighted with a red square.]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Command Error, undefined when executing linking commands in Allmon3 ===&lt;br /&gt;
According to [https://community.allstarlink.org/t/command-error-undefined/23298 this ASL forum thread], this error happens when your &amp;lt;code&amp;gt;host&amp;lt;/code&amp;gt; IP is set incorrectly in &amp;lt;code&amp;gt;/etc/allmon3/allmon3.ini&amp;lt;/code&amp;gt;. It should be set to &amp;lt;code&amp;gt;127.0.0.1&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3143</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3143"/>
		<updated>2026-10-14T23:59:10Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Instruct user on disconnecting node after testing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
Look up a node to connect to for testing purposes, using [https://www.allstarlink.org/nodelist/ AllStarLink node search] or a third party site like [https://repeaterbook.com/ RepeaterBook]. In the linking command dialogue, select the connect command, type in the node number, and select &amp;quot;No&amp;quot; for whether the connection is permanent. &lt;br /&gt;
&lt;br /&gt;
[[File:link_connect_dialogue.png|alt=A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent. ]]&lt;br /&gt;
&lt;br /&gt;
After you issue the connect command, if the connection succeeds, the state will change to &amp;quot;ESTABLISHED&amp;quot; in your connection table. If it stays on connecting for a while and then disconnects, try another node. If the command shows an error in the dialogue instead of proceeding to connecting, see the troubleshooting section at the bottom. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_connected.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; ]]&lt;br /&gt;
&lt;br /&gt;
Once the connection is established, you can disconnect using the button all the way to the left. (It&#039;s very low contrast, but turns red when moused-over. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_disconnect.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; The disconnect button is highlighted with a red square.]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:AB7BS_ASL_disconnect.png&amp;diff=3142</id>
		<title>File:AB7BS ASL disconnect.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:AB7BS_ASL_disconnect.png&amp;diff=3142"/>
		<updated>2026-10-14T23:57:54Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: A screenshot of the Allmon3 dashboard, showing that the user&amp;#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; The disconnect button is highlighted with a red square.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; The disconnect button is highlighted with a red square.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3141</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3141"/>
		<updated>2026-10-14T22:42:59Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Described connected state in Allmon3 and included picture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
Look up a node to connect to for testing purposes, using [https://www.allstarlink.org/nodelist/ AllStarLink node search] or a third party site like [https://repeaterbook.com/ RepeaterBook]. In the linking command dialogue, select the connect command, type in the node number, and select &amp;quot;No&amp;quot; for whether the connection is permanent. &lt;br /&gt;
&lt;br /&gt;
[[File:link_connect_dialogue.png|alt=A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent. ]]&lt;br /&gt;
&lt;br /&gt;
After you issue the connect command, if the connection succeeds, the state will change to &amp;quot;ESTABLISHED&amp;quot; in your connection table. If it stays on connecting for a while and then disconnects, try another node. If the command shows an error in the dialogue instead of proceeding to connecting, see the troubleshooting section at the bottom. &lt;br /&gt;
&lt;br /&gt;
[[File:AB7BS_ASL_connected.png|alt=A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot; ]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:AB7BS_ASL_connected.png&amp;diff=3140</id>
		<title>File:AB7BS ASL connected.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:AB7BS_ASL_connected.png&amp;diff=3140"/>
		<updated>2026-10-14T22:41:58Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: A screenshot of the Allmon3 dashboard, showing that the user&amp;#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A screenshot of the Allmon3 dashboard, showing that the user&#039;s node is connected to node 47178. The direction is &amp;quot;OUT,&amp;quot; and the connect state is &amp;quot;ESTABLISHED.&amp;quot;&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:Link_connect_dialogue.png&amp;diff=3139</id>
		<title>File:Link connect dialogue.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:Link_connect_dialogue.png&amp;diff=3139"/>
		<updated>2026-10-14T19:02:46Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: KN6DWI uploaded a new version of File:Link connect dialogue.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3138</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3138"/>
		<updated>2026-10-14T19:02:06Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Described using link connect command in the dialogue&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
Look up a node to connect to for testing purposes, using [https://www.allstarlink.org/nodelist/ AllStarLink node search] or a third party site like [https://repeaterbook.com/ RepeaterBook]. In the linking command dialogue, select the connect command, type in the node number, and select &amp;quot;No&amp;quot; for whether the connection is permanent. &lt;br /&gt;
&lt;br /&gt;
[[File:link_connect_dialogue.png|alt=A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent. ]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:Link_connect_dialogue.png&amp;diff=3137</id>
		<title>File:Link connect dialogue.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:Link_connect_dialogue.png&amp;diff=3137"/>
		<updated>2026-10-14T19:00:56Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A screenshot of the linking commands dialogue in Allmon3. The selected command is &amp;quot;Connect,&amp;quot; the node is &amp;quot;12345,&amp;quot; and the connection is not permanent.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:Linking_commands.png&amp;diff=3136</id>
		<title>File:Linking commands.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:Linking_commands.png&amp;diff=3136"/>
		<updated>2026-10-14T18:28:43Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: KN6DWI uploaded a new version of File:Linking commands.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3135</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3135"/>
		<updated>2026-10-14T18:27:51Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added image of linking commands button&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue.&lt;br /&gt;
&lt;br /&gt;
[[File:linking_commands.png|alt=A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box. ]]&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=File:Linking_commands.png&amp;diff=3134</id>
		<title>File:Linking commands.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=File:Linking_commands.png&amp;diff=3134"/>
		<updated>2026-10-14T18:26:13Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
A cropped screenshot of the Allmon3 web dashboard, with the linking commands button for a node highlighted using a red box.&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3133</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3133"/>
		<updated>2026-10-14T18:25:19Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Created Allmon3 and RepeaterPhone sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== Allmon3 ===&lt;br /&gt;
Commands can be issued to your AllStarLink node from the AllMon3 web interface available on port 443 of your node. (This is the default HTTPS port, so you can access it in a web browser without specifying the port.) It uses a self-signed certificate, so your browser may inform you the site is insecure, and you&#039;ll need to add a security exception for the site. Log in with your administrator account, and click the chain button to open the linking commands dialogue. &lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: RepeaterPhone ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3132</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3132"/>
		<updated>2026-10-13T23:01:41Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Minor phrasing edits&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system built on the Asterisk PBX software. It provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3131</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3131"/>
		<updated>2026-10-13T23:00:27Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added missing space&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3130</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3130"/>
		<updated>2026-10-13T22:59:23Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Wrote subsection on troubleshooting VoIP app&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not duplicate any of the official recommendations.&lt;br /&gt;
&lt;br /&gt;
=== Split Tunnel: VoIP app gets stuck on connecting ===&lt;br /&gt;
The first step to debugging this issue is determining whether the root cause is firewall configuration or asterisk/routing configuration.&lt;br /&gt;
Connect to the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; remote console using &amp;lt;code&amp;gt;sudo asterisk -r&amp;lt;/code&amp;gt;, then enable IAX2 debugging by running &amp;lt;code&amp;gt;iax2 set debug on&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;asterisk&amp;lt;/code&amp;gt; console. Then, connect to the node with your VoIP app. If exactly one Tx frame and one Rx frame make it through, the issue is likely with the routing of the server response. If no packets make it through at all, the issue is likely with firewall configuration. &lt;br /&gt;
&lt;br /&gt;
If you suspect a firewall issue, verify that your firewall configuration allows inbound UDP traffic on your IAX port. ASL3 appliance users can add the included &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service to the &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; zone for their 44Net Connect tunnel by running &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;zone&amp;gt; --add-service iax2 &amp;amp;&amp;amp; sudo firewall-cmd --reload&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
If the firewall configuration is correct, and the app still can&#039;t connect, the issue may be with the routing of the server response. This usually happens if you forget to set the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; to your 44Net IP in &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt;. This issue can be affirmatively detected by running Wireshark or &amp;lt;code&amp;gt;dumpcap&amp;lt;/code&amp;gt; on your non-44Net interface, attempting a connection from your app, and looking for IAX packets originating from your non-44Net IP address. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3129</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3129"/>
		<updated>2026-10-13T22:14:21Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Added note about non-tunneled IP being incorrect in the connectivity check&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
{{Info|Note|If you&#039;re using a split tunnel, &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; may report your non-tunneled IP address in the connectivity check. This is acceptable and not indicative of a configuration issue. }}&lt;br /&gt;
&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible.&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using a split tunnel, and receive a warning that your node is not perceived as registered despite it showing up as registered in your AllStarLink portal, you may have forgotten to modify the asterisk bind address.&lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3128</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3128"/>
		<updated>2026-10-13T22:08:44Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Updated routing watchdog script and added asterisk config changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
	echo &amp;quot;Deleting stats rule for $1&amp;quot;&lt;br /&gt;
	ip rule del to &amp;quot;$1&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
	while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
		echo &amp;quot;Deleting register rule for $line&amp;quot;&lt;br /&gt;
		ip rule del to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
	done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$2&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
	echo &amp;quot;Received $1, cleaning up rules and exiting.&amp;quot;&lt;br /&gt;
	del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
	# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
	REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
	STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Ensure records are not null&lt;br /&gt;
	if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
		exit 2&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Fetch TTLs for DNS A records&lt;br /&gt;
	REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
	echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
	echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
	echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	# Use smaller of the two TTLs&lt;br /&gt;
	if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
		FINAL_TTL=$STATS_TTL&lt;br /&gt;
	else&lt;br /&gt;
		FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
	if [[ $REGISTER_IPS == &amp;quot;$REGISTER_IPS_NEW&amp;quot; &amp;amp;&amp;amp; $STATS_IP == &amp;quot;$STATS_IP_NEW&amp;quot; ]]; then&lt;br /&gt;
		echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
		# Create routing rules&lt;br /&gt;
		# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
		# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
		# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
		while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
			ip rule add to &amp;quot;$line&amp;quot; lookup $WG_TABLE&lt;br /&gt;
		done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		ip rule add to &amp;quot;$STATS_IP_NEW&amp;quot; lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
		# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
		if [[ $REGISTER_IPS != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
			del_rules &amp;quot;$STATS_IP&amp;quot; &amp;quot;$REGISTER_IPS&amp;quot;&lt;br /&gt;
		fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
		STATS_IP=$STATS_IP_NEW&lt;br /&gt;
	fi;&lt;br /&gt;
&lt;br /&gt;
	# Delete routes when program is stopped&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
	trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
		del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
	# Sleep for duration of TTL&lt;br /&gt;
	echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
	echo&lt;br /&gt;
	sleep &amp;quot;$FINAL_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. Verify that the service has started properly by running &amp;lt;code&amp;gt;systemctl status asl-st-routing-service&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Finally, you&#039;ll need to specify the IP that asterisk binds to. Open &amp;lt;code&amp;gt;/etc/asterisk/iax.conf&amp;lt;/code&amp;gt; and uncomment the line with the &amp;lt;code&amp;gt;bindaddr&amp;lt;/code&amp;gt; field. Set it to your device&#039;s 44Net Connect IP, as specified in the WireGuard configuration file. Save the configuration changes, and restart asterisk with &amp;lt;code&amp;gt;sudo systemctl restart asterisk&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible. &lt;br /&gt;
&lt;br /&gt;
Split tunnel users may see a warning that their node is not perceived as registered, but this is acceptable as long as the node functionality is not impaired. Node functionality will be assessed in the next section by connecting with a VoIP app. If the split tunnel or firewall are incorrectly configured, there may be HTTP connection errors. &lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3127</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3127"/>
		<updated>2026-10-13T22:03:03Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Undo revision 3126 by KN6DWI (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
ip rule del to $1 lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule del to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$1&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
echo &#039;Received $1, cleaning up rules and exiting.&#039;&lt;br /&gt;
del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Ensure records are not null&lt;br /&gt;
if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Fetch TTLs for DNS A records&lt;br /&gt;
REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IP_NEW&amp;quot;&lt;br /&gt;
echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Use smaller of the two TTLs&lt;br /&gt;
if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
FINAL_TTL=$STATS_TTL&lt;br /&gt;
else&lt;br /&gt;
FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
if [[ $REGISTER_IPS == $REGISTER_IPS_NEW &amp;amp;&amp;amp; $STATS_IP == $STATS_IP_NEW ]]; then&lt;br /&gt;
echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create routing rules&lt;br /&gt;
# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule add to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
ip rule add to $STATS_IP_NEW lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
if [[ $REGISTER_IP != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
STATS_IP=$STATS_IP_NEW&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Delete routes when program is stopped&lt;br /&gt;
# TODO: Invoke cleanup function here to clean up all register rules&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
# Sleep for duration of TTL&lt;br /&gt;
echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
sleep $FINAL_TTL&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible. &lt;br /&gt;
&lt;br /&gt;
Split tunnel users may see a warning that their node is not perceived as registered, but this is acceptable as long as the node functionality is not impaired. Node functionality will be assessed in the next section by connecting with a VoIP app. If the split tunnel or firewall are incorrectly configured, there may be HTTP connection errors. &lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3126</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3126"/>
		<updated>2026-10-13T17:53:32Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Removed DroidStar section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
ip rule del to $1 lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule del to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$1&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
echo &#039;Received $1, cleaning up rules and exiting.&#039;&lt;br /&gt;
del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Ensure records are not null&lt;br /&gt;
if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Fetch TTLs for DNS A records&lt;br /&gt;
REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IP_NEW&amp;quot;&lt;br /&gt;
echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Use smaller of the two TTLs&lt;br /&gt;
if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
FINAL_TTL=$STATS_TTL&lt;br /&gt;
else&lt;br /&gt;
FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
if [[ $REGISTER_IPS == $REGISTER_IPS_NEW &amp;amp;&amp;amp; $STATS_IP == $STATS_IP_NEW ]]; then&lt;br /&gt;
echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create routing rules&lt;br /&gt;
# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule add to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
ip rule add to $STATS_IP_NEW lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
if [[ $REGISTER_IP != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
STATS_IP=$STATS_IP_NEW&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Delete routes when program is stopped&lt;br /&gt;
# TODO: Invoke cleanup function here to clean up all register rules&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
# Sleep for duration of TTL&lt;br /&gt;
echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
sleep $FINAL_TTL&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible. &lt;br /&gt;
&lt;br /&gt;
Split tunnel users may see a warning that their node is not perceived as registered, but this is acceptable as long as the node functionality is not impaired. Node functionality will be assessed in the next section by connecting with a VoIP app. If the split tunnel or firewall are incorrectly configured, there may be HTTP connection errors. &lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3125</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3125"/>
		<updated>2026-10-08T22:37:38Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Describe how to connect using DroidStar&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
ip rule del to $1 lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule del to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$1&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
echo &#039;Received $1, cleaning up rules and exiting.&#039;&lt;br /&gt;
del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Ensure records are not null&lt;br /&gt;
if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Fetch TTLs for DNS A records&lt;br /&gt;
REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IP_NEW&amp;quot;&lt;br /&gt;
echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Use smaller of the two TTLs&lt;br /&gt;
if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
FINAL_TTL=$STATS_TTL&lt;br /&gt;
else&lt;br /&gt;
FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
if [[ $REGISTER_IPS == $REGISTER_IPS_NEW &amp;amp;&amp;amp; $STATS_IP == $STATS_IP_NEW ]]; then&lt;br /&gt;
echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create routing rules&lt;br /&gt;
# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule add to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
ip rule add to $STATS_IP_NEW lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
if [[ $REGISTER_IP != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
STATS_IP=$STATS_IP_NEW&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Delete routes when program is stopped&lt;br /&gt;
# TODO: Invoke cleanup function here to clean up all register rules&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
# Sleep for duration of TTL&lt;br /&gt;
echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
sleep $FINAL_TTL&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible. &lt;br /&gt;
&lt;br /&gt;
Split tunnel users may see a warning that their node is not perceived as registered, but this is acceptable as long as the node functionality is not impaired. Node functionality will be assessed in the next section by connecting with a VoIP app. If the split tunnel or firewall are incorrectly configured, there may be HTTP connection errors. &lt;br /&gt;
&lt;br /&gt;
=== VoIP: Droidstar===&lt;br /&gt;
Connectivity can be verified by connecting to your AllStarLink node with a VoIP app. People with android phones can use Droidstar with the following steps: &lt;br /&gt;
&lt;br /&gt;
# Install DroidStar from the Google Play store &lt;br /&gt;
# Obtain your node&#039;s password from [https://www.allstarlink.org/portal/nodes.php the AllStarLink portal]&lt;br /&gt;
# Go to DroidStar settings, and configure your callsign and ASL password. &lt;br /&gt;
# Go to the Hosts tab and add a line that says &amp;lt;code&amp;gt;IAX &amp;lt;node number&amp;gt; wt&amp;lt;/code&amp;gt;. &lt;br /&gt;
# Go to the Main tab, select IAX using the drop-down menu at the top, and select your node number using the drop-down menu under the mode menu. Press connect, and it should connect in a few seconds. &lt;br /&gt;
&lt;br /&gt;
If connection is successful, the button will change to &amp;quot;Connected&amp;quot; and through your client you&#039;ll hear the node announce your connection. &lt;br /&gt;
If DroidStar remains &amp;quot;Connecting&amp;quot; for more than 30 seconds, you probably have a configuration issue.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3124</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3124"/>
		<updated>2026-10-08T18:25:28Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Described usagee of asl-node-auth-check&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
ip rule del to $1 lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule del to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$1&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
echo &#039;Received $1, cleaning up rules and exiting.&#039;&lt;br /&gt;
del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Ensure records are not null&lt;br /&gt;
if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Fetch TTLs for DNS A records&lt;br /&gt;
REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IP_NEW&amp;quot;&lt;br /&gt;
echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Use smaller of the two TTLs&lt;br /&gt;
if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
FINAL_TTL=$STATS_TTL&lt;br /&gt;
else&lt;br /&gt;
FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
if [[ $REGISTER_IPS == $REGISTER_IPS_NEW &amp;amp;&amp;amp; $STATS_IP == $STATS_IP_NEW ]]; then&lt;br /&gt;
echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create routing rules&lt;br /&gt;
# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule add to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
ip rule add to $STATS_IP_NEW lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
if [[ $REGISTER_IP != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
STATS_IP=$STATS_IP_NEW&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Delete routes when program is stopped&lt;br /&gt;
# TODO: Invoke cleanup function here to clean up all register rules&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
# Sleep for duration of TTL&lt;br /&gt;
echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
sleep $FINAL_TTL&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
AllStarLink comes with the &amp;lt;code&amp;gt;asl-node-auth-check&amp;lt;/code&amp;gt; utility that automatically evaluates your connection and registration status. It must be run as superuser. SSH into your ASL3 node and run &amp;lt;code&amp;gt;sudo asl-node-auth-check&amp;lt;/code&amp;gt;. If there are no errors, your node is correctly registered. Warnings should be addressed if possible. &lt;br /&gt;
&lt;br /&gt;
Split tunnel users may see a warning that their node is not perceived as registered, but this is acceptable as long as the node functionality is not impaired. Node functionality will be assessed in the next section by connecting with a VoIP app. If the split tunnel or firewall are incorrectly configured, there may be HTTP connection errors. &lt;br /&gt;
&lt;br /&gt;
=== VoIP app ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
	<entry>
		<id>https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3123</id>
		<title>AllStarLink</title>
		<link rel="alternate" type="text/html" href="https://wiki.ampr.org/w/index.php?title=AllStarLink&amp;diff=3123"/>
		<updated>2026-10-08T18:03:27Z</updated>

		<summary type="html">&lt;p&gt;KN6DWI: Created verify and troubleshooting sections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AllStarLink is an open source&amp;lt;ref&amp;gt;The ASL3 source is [https://github.com/AllStarLink/ASL3 available on GitHub], though installing from source is not recommended.&amp;lt;/ref&amp;gt; internet repeater linking system that uses the Asterisk PBX software internally, and provides a web interface for management. It can be used both for connecting repeaters to the internet and for creating reflectors that internet-linked repeaters can connect to. An AllStarLink installation consists of multiple pieces of software: The Asterisk PBX, the app_rpt application made by AllStarLink, and the Allmon3 web interface.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Sign up for AllStarLink ==&lt;br /&gt;
Follow AllStarLink&#039;s [https://allstarlink.github.io/basics/portal/ instructions for the sign up process]. They&#039;ll guide you through signing up for an account, registering a server, and registering a node. This will allocate a node number to you, or a set of node numbers if you choose to immediately extend your node number as suggested. &lt;br /&gt;
&lt;br /&gt;
During registration, United States amateur radio operators will need an &#039;&#039;&#039;official copy&#039;&#039;&#039; of their license, obtained by [https://wireless2.fcc.gov/UlsEntry/licManager/login.jsp logging in to the FCC website] with their FRN. The publicly available reference copy is not sufficient. After signing up, wait for your account to be verified, which should take at most 24 hours.&lt;br /&gt;
&lt;br /&gt;
Take note of the IAX port you select when creating your server. This can be changed later, but the portal setting must line up with your firewall settings later. The default is &amp;lt;code&amp;gt;4569&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Install AllStarLink ==&lt;br /&gt;
AllStarLink3 can be installed on Debian or Raspberry Pi OS. The &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt; package is available for Debian 13 (trixie). It includes Asterisk, app_rpt, and Allmon3. The &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt; package includes the same, and additional functionality for mDNS broadcasts and swapfile management. The ASL3 appliance for Raspberry Pi OS can be installed with the Raspberry Pi Imager for ease of installation, which lets you preload Wi-Fi configuration. It also supports managing the Pi&#039;s serial port at &amp;lt;code&amp;gt;/dev/serial0&amp;lt;/code&amp;gt;, as well as using the GPIO pins for PTT triggering. The Pi image keeps logs and temp files only in memory to reduce writes to the SD card. &lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi Appliance === &lt;br /&gt;
To install the Raspberry Pi ASL3 appliance, see the [https://allstarlink.github.io/install/pi-appliance/pi-detailed/ ASL3 guide to setting up the Pi appliance.] This guide is primarily for flashing a fresh image on your Pi. If you want to add an ASL3 appliance to an existing Pi, follow the steps for the Debian appliance.&lt;br /&gt;
&lt;br /&gt;
=== Debian PC or Appliance ===&lt;br /&gt;
To install ASL3 on Debian, via any of &amp;lt;code&amp;gt;asl3-appliance&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;asl3-appliance-pc&amp;lt;/code&amp;gt;, or a non-appliance Debian install (&amp;lt;code&amp;gt;asl3&amp;lt;/code&amp;gt;), follow [https://allstarlink.github.io/install/debian/install/ the ASL3 Debian install guide.] It covers all three methods, and notes each point where the installation methods diverge.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Configure firewall ==&lt;br /&gt;
=== firewalld ===&lt;br /&gt;
{{Info|Warn|When using a 44Net Connect tunnel with AllStarLink and &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt;, don&#039;t put the 44Net WireGuard interface in the &amp;lt;code&amp;gt;allstarlink&amp;lt;/code&amp;gt; zone provided by the appliance. This will make your web management interface publicly available on the internet. Instead, create a 44Net zone, and add the requisite services to that zone.}}&lt;br /&gt;
&lt;br /&gt;
For security, the firewall should be configured before bringing up the VPN tunnel. The AllStarLink manual has [https://allstarlink.github.io/adv-topics/44net-connect/ a page about 44Net Connect] with recommendations for firewall configuration. If you installed one of the appliance packages, it comes with custom &amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; service definitions. Your 44Net Connect zone must have the &amp;lt;code&amp;gt;iax2&amp;lt;/code&amp;gt; service added for AllStar to function. If you&#039;re accepting EchoLink connections, the &amp;lt;code&amp;gt;echolink&amp;lt;/code&amp;gt; service must also be added. That can be done with the following commands: &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039;&amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service iax2 --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-service echolink --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Users of the non-appliance version should open &amp;lt;code&amp;gt;UDP 4560-4580&amp;lt;/code&amp;gt; for IAX2, and &amp;lt;code&amp;gt;5198-5199&amp;lt;/code&amp;gt; for EchoLink. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 4560-4580/udp --permanent &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo firewall-cmd --zone &amp;lt;your zone here&amp;gt; --add-port 5189-5199/udp --permanent&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve added your services or ports, don&#039;t forget to reload your firewall:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo firewall-cmd --reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ufw ===&lt;br /&gt;
{{Info|Note|&amp;lt;code&amp;gt;firewalld&amp;lt;/code&amp;gt; is the recommended firewall software for devices with 44Net Connect software, because its abstraction of zones makes secure configuration easier to set up and understand. &amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; is not recommended, but it can still be used. It will be more involved due to lacking zones. }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ufw&amp;lt;/code&amp;gt; rules allowing IAX2 and EchoLink can be entered as follows:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IAX2:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 4560-4580 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Echolink:&#039;&#039;&#039; &amp;lt;code&amp;gt;sudo ufw allow in on &amp;lt;44net wireguard interface&amp;gt; to any port 5189-5199 proto udp&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These rules can be entered before the 44Net Connect WireGuard interface is actually created, but they won&#039;t work until a WireGuard interface is created with exactly the same name. The WireGuard interface will be named after the config file used to create it, so &amp;lt;code&amp;gt;wg0.conf&amp;lt;/code&amp;gt; would create the interface &amp;lt;code&amp;gt;wg0&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Enable 44Net Connect tunnel ==&lt;br /&gt;
Go to the [https://wiki.ampr.org/wiki/44Net_Connect/Single_Device_Tunnel Single Device Tunnel tutorials list], and follow the quick start tutorial for your distribution.&lt;br /&gt;
&lt;br /&gt;
=== Optional: Split Tunnel ===&lt;br /&gt;
There are special considerations for operating a 44Net Connect split tunnel on a device with AllStarLink. Nodes register with the central coordination server and report statistics by contacting &amp;lt;code&amp;gt;register.allstarlink.org&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;stats.allstarlink.org&amp;lt;/code&amp;gt;. For the node to be registered with your static 44Net IP, these communications must go out through your VPN tunnel, which by by default they will not. These domains don&#039;t have static IPs, so you&#039;ll need to deploy a watchdog service to create and update routing rules based on the DNS. The following &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit will do this. Place it in &amp;lt;code&amp;gt;/etc/systemd/system/&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
[Unit]&lt;br /&gt;
Description=Maintains rules that route traffic to AllStarLink domains through the 44Net split tunnel&lt;br /&gt;
Requires=network-online.target&lt;br /&gt;
After=network.target network-online.target&lt;br /&gt;
Before=asterisk.service allmon3.service&lt;br /&gt;
&lt;br /&gt;
# Change this to the name of your split tunnel service&lt;br /&gt;
Requires=wg-quick@wg0-st.service&lt;br /&gt;
&lt;br /&gt;
[Service]&lt;br /&gt;
Type=exec&lt;br /&gt;
&lt;br /&gt;
# Make sure you copy the script to this path exactly, or change the path here&lt;br /&gt;
ExecStart=/opt/allstarlink/st-routing-watchdog.sh&lt;br /&gt;
&lt;br /&gt;
[Install]&lt;br /&gt;
WantedBy=multi-user.target&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit depends on the following script being placed in &amp;lt;code&amp;gt;/opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt; The &amp;lt;code&amp;gt;/opt/allstarlink&amp;lt;/code&amp;gt; directory is not automatically created. Make it with &amp;lt;code&amp;gt;sudo mkdir /opt/allstarlink&amp;lt;/code&amp;gt; before placing the file there.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/usr/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Change this if you use a different routing table for your WireGuard interface&lt;br /&gt;
WG_TABLE=51820&lt;br /&gt;
&lt;br /&gt;
# Initialize variables&lt;br /&gt;
REGISTER_IPS=&amp;quot;&amp;quot;&lt;br /&gt;
STATS_IP=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
del_rules () {&lt;br /&gt;
ip rule del to $1 lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule del to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$1&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
cleanup () {&lt;br /&gt;
echo &#039;Received $1, cleaning up rules and exiting.&#039;&lt;br /&gt;
del_rules &amp;quot;$2&amp;quot; &amp;quot;$3&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
while&lt;br /&gt;
# Note that there are multiple IPs for register.allstarlink.org&lt;br /&gt;
REGISTER_IPS_NEW=$(dig +short register.allstarlink.org)&lt;br /&gt;
STATS_IP_NEW=$(dig +short stats.allstarlink.org)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;$REGISTER_IPS_NEW&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Ensure records are not null&lt;br /&gt;
if [[ $REGISTER_IPS_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for register.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
if [[ $STATS_IP_NEW == &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
echo &amp;quot;DNS resolution error for stats.allstarlink.org&amp;quot;&lt;br /&gt;
exit 2&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Fetch TTLs for DNS A records&lt;br /&gt;
REGISTER_TTL=$(dig register.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
STATS_TTL=$(dig stats.allstarlink.org | grep &amp;quot;ANSWER SECTION&amp;quot; -A1 | awk &#039;NR==2{print $2}&#039;)&lt;br /&gt;
echo &amp;quot;register.allstarlink.org resolves to  $REGISTER_IP_NEW&amp;quot;&lt;br /&gt;
echo &amp;quot;stats.allstarlink.org resolves to     $STATS_IP_NEW&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
echo &amp;quot;TTL of register.allstarlink.org:      $REGISTER_TTL&amp;quot;&lt;br /&gt;
echo &amp;quot;TTL of stats.allstarlink.org:         $STATS_TTL&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Use smaller of the two TTLs&lt;br /&gt;
if (( REGISTER_TTL &amp;gt; STATS_TTL )); then&lt;br /&gt;
FINAL_TTL=$STATS_TTL&lt;br /&gt;
else&lt;br /&gt;
FINAL_TTL=$REGISTER_TTL&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# If new IPs don&#039;t match old IPs, replace rules.&lt;br /&gt;
if [[ $REGISTER_IPS == $REGISTER_IPS_NEW &amp;amp;&amp;amp; $STATS_IP == $STATS_IP_NEW ]]; then&lt;br /&gt;
echo &amp;quot;IPs have not changed. Rules will not be updated.&amp;quot;&lt;br /&gt;
else&lt;br /&gt;
echo &amp;quot;IPs have changed. Updating rules.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create routing rules&lt;br /&gt;
# Putting this before deletion of old rules to prevent race condition routing leakage.&lt;br /&gt;
# This while loop to read each line from REGISTER_IPS_NEW is from&lt;br /&gt;
# https://superuser.com/questions/284187/how-to-iterate-over-lines-in-a-variable-in-bash&lt;br /&gt;
while IFS= read -r line || [[ -n $line ]]; do&lt;br /&gt;
ip rule add to $line lookup $WG_TABLE&lt;br /&gt;
done &amp;lt; &amp;lt;(printf &#039;%s&#039; &amp;quot;$REGISTER_IPS_NEW&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
ip rule add to $STATS_IP_NEW lookup $WG_TABLE&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t try to delete old rules on first iteration bc they don&#039;t exist yet&lt;br /&gt;
if [[ $REGISTER_IP != &amp;quot;&amp;quot; ]]; then&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
REGISTER_IPS=$REGISTER_IPS_NEW&lt;br /&gt;
STATS_IP=$STATS_IP_NEW&lt;br /&gt;
fi;&lt;br /&gt;
&lt;br /&gt;
# Delete routes when program is stopped&lt;br /&gt;
# TODO: Invoke cleanup function here to clean up all register rules&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGINT, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGINT&lt;br /&gt;
&lt;br /&gt;
trap &#039;echo &amp;quot;Received SIGTERM, cleaning up rules and exiting.&amp;quot;; \&lt;br /&gt;
del_rules $STATS_IP $REGISTER_IPS&#039; SIGTERM&lt;br /&gt;
&lt;br /&gt;
# Sleep for duration of TTL&lt;br /&gt;
echo &amp;quot;Sleeping for $FINAL_TTL seconds&amp;quot;&lt;br /&gt;
echo&lt;br /&gt;
sleep $FINAL_TTL&lt;br /&gt;
&lt;br /&gt;
do true; done&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installing these files, make the script executable by running &amp;lt;code&amp;gt;sudo chmod +x /opt/allstarlink/st-routing-watchdog.sh&amp;lt;/code&amp;gt;, then enable the &amp;lt;code&amp;gt;systemd&amp;lt;/code&amp;gt; unit with &amp;lt;code&amp;gt;sudo systemctl enable asl-st-routing-service --now&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
== Step 5: Verify functionality ==&lt;br /&gt;
=== asl-node-auth-check ===&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
AllStarLink has a [https://allstarlink.github.io/user-guide/troubleshooting/ troubleshooting guide]. This section includes additional troubleshooting tools, and does not reiterate any of the officially recommended methods. &lt;br /&gt;
&lt;br /&gt;
[[Category:Use Cases]]&lt;br /&gt;
[[Category:How-To]]&lt;/div&gt;</summary>
		<author><name>KN6DWI</name></author>
	</entry>
</feed>