Repository navigation
v0.1.5
OpenWrt node client for the shadow9 WireGuard hub.
Install it on an OpenWrt 24.10.x or 25.12.x router:
release="$(. /etc/openwrt_release; echo "$DISTRIB_RELEASE")"
machine="$(uname -m)"
case "$machine" in
x86_64) ipk_arch=x86_64; apk_arch=x86-64 ;;
aarch64) ipk_arch=aarch64_generic; apk_arch=armsr-armv8 ;;
mips*) ipk_arch=mipsel_24kc; apk_arch=ramips-mt7621 ;;
*) echo "No shadow9 package matches $machine"; exit 1 ;;
esac
case "$release" in
24.10.*) file="shadow9-node_0.1.5-r1_${ipk_arch}.ipk"; package=ipk ;;
25.12.*) file="shadow9-node-0.1.5-r1_${apk_arch}.apk"; package=apk ;;
*) echo "No shadow9 package matches OpenWrt $release"; exit 1 ;;
esac
base="https://github.com/regix1/shadow9-manager/releases/download/v0.1.5"
wget -O "/tmp/$file" "$base/$file"
wget -O /tmp/SHA256SUMS "$base/SHA256SUMS"
checksum="$(grep -F " $file" /tmp/SHA256SUMS)" || {
echo "SHA256SUMS has no entry for $file"
exit 1
}
(cd /tmp && printf '%s\n' "$checksum" | sha256sum -c -) || exit 1
case "$package" in
ipk) opkg install "/tmp/$file" ;;
apk) apk add --allow-untrusted "/tmp/$file" ;;
esacReplace the hub address, token, and advertised LAN, then join:
shadow9-node join -hub http://<hub>:8081 -token <token> -advertise 192.168.1.0/24