Home

Starping on your router

Back to downloads. Choose a package for the router’s system and architecture, not the computer downloading it. Downloads remain unavailable until a qualified release is published. Local test builds are not intended for installation.

MikroTik / RouterOS

The image targets ARMEL (linux/arm/v5). You need the container package matching your RouterOS version and container=yes in device-mode. Confirming device-mode requires physical action on the router. The current image still needs device testing; results from older releases do not guarantee it works.

Upload tclient-VERSION-mikrotik-armel.tar.gz and network.rsc to the router. Check that 172.31.255.0/30 is unused, then import the script once. It creates tc-bridge and tc-veth without adding VPN routes. Do not bridge the container interface into the LAN.

Set AUTH_CODE and a persistent DEVICE_ID in the RouterOS STARPING environment list. Do not share them. Replace VERSION with the downloaded version:

/container add file=tclient-VERSION-mikrotik-armel.tar.gz interface=tc-veth root-dir=starping-tclient name=starping-tclient envlists=STARPING dns=8.8.8.8 logging=yes start-on-boot=no memory-high=64M memory-max=128M shm-size=1M
/container start [find where name="starping-tclient"]

Wait for extraction before starting. Once the tunnel is ready, check DNS/HTTPS and router management access. Configure desired routes via gateway 172.31.255.2 separately. Remove those routes before stopping the container. Do not flush the RouterOS firewall.

OpenWrt 25.12.5

Two separate packages: mediatek/filogic — AArch64 LE, aarch64_cortex-a53 and ramips/mt7621 — MIPS32r2 LE, o32, soft-float, mipsel_24kc. Both use musl. APK means an OpenWrt package here, not an Android app. Other OpenWrt versions and architectures are not claimed to be supported.

Check cat /etc/openwrt_release, ubus call system board and apk --print-arch. Download the matching package and its .sha256 file. Replace VERSION and ARCH below with the values in the downloaded filename.

cd /tmp
sha256sum -c tclient-VERSION-openwrt-25.12.5-ARCH.apk.sha256
apk add --allow-untrusted ./tclient-VERSION-openwrt-25.12.5-ARCH.apk

Only install after the checksum passes. --allow-untrusted is needed for a standalone APK without a signed feed; it does not replace SHA-256 verification. Dependencies and kernel modules must come from feeds matching this OpenWrt build.

The service is initially disabled. Edit /etc/tclient/router.yaml: enter the authorization code and device_id as quoted strings, the actual LAN device from ip link, selected IPv4 clients, destinations and DNS. Owner: root:root; permissions: 0600. Do not share its contents.

For tun or both, configure a separate fw4 zone. Check that starping and starping_lan are unused and lan is your LAN zone:

uci set firewall.starping='zone'
uci set firewall.starping.name='starping'
uci add_list firewall.starping.device='starping0'
uci set firewall.starping.input='REJECT'
uci set firewall.starping.output='ACCEPT'
uci set firewall.starping.forward='REJECT'
uci set firewall.starping_lan='forwarding'
uci set firewall.starping_lan.src='lan'
uci set firewall.starping_lan.dest='starping'
uci commit firewall
/etc/init.d/firewall reload
uci set tclient.main.enabled='1'
uci commit tclient
/etc/init.d/tclient enable
/etc/init.d/tclient start
logread -e tclient

Disable software and hardware flow offloading for initial testing. Do not add a second masquerade or /1 routes: the adapter manages its own rules. Stop successfully with /etc/init.d/tclient stop before upgrading. To remove: /etc/init.d/tclient stop && apk del tclient.

Keenetic / Entware

Compatible Entware must already be installed with /opt available. Choose AArch64 LE — aarch64-k3.10, glibc 2.27 or MIPS32r2 LE, o32, soft-float — mipselsf-k3.4, glibc 2.27. Check opkg print-architecture, the feed and Entware loader. The k3.10/k3.4 feed names do not guarantee compatibility with old kernels. Support for all Keenetic models is not claimed.

Follow your model’s instructions to install Entware and mount /opt. The native OPKG/rc.unslung integration must work; the router does not need Docker or systemd. Do not use --force-architecture, OpenWrt musl or MikroTik libraries.

Download the IPK and matching .sha256. For AArch64:

cd /tmp
sha256sum -c tclient-VERSION-entware-aarch64-k3.10-glibc2.27.ipk.sha256
opkg install ./tclient-VERSION-entware-aarch64-k3.10-glibc2.27.ipk

For MIPSel, use the entware-mipselsf-k3.4-glibc2.27 target suffix instead. Only install after the checksum passes. Dependencies come from the matching Entware feed.

Edit /opt/etc/tclient/router.yaml: quoted credentials, the LAN device from ip link, selected IPv4 clients and destinations. Owner: root:root; permissions: 0600. TUN requires /dev/net/tun, root/NET_ADMIN, IPv4 forwarding, policy routing, JSON-capable ip, Entware iptables with ip6tables, conntrack, TCPMSS, DNAT/SNAT and kernel xt_bpf. Disable traffic acceleration for initial testing.

touch /opt/etc/tclient/enabled
/opt/etc/init.d/S99tclient start
/opt/etc/init.d/S99tclient status

Back up the YAML configuration before upgrading. Only install after a successful stop:

/opt/etc/init.d/S99tclient stop && opkg install ./NEW.ipk

To remove:

/opt/etc/init.d/S99tclient stop && rm -f /opt/etc/tclient/enabled && opkg remove tclient

Do not disable OPKG or unmount /opt before stopping the service.

Connection checks and limitations

On both platforms, the default ipv6: block blocks forwarded IPv6 and IPv6 DNS on the entire selected LAN device. ipv6: unchanged leaves IPv6 outside the VPN. For SOCKS5 use network: {}; do not expose unauthenticated loopback SOCKS to the WAN. The router’s global DNS settings do not need changing.

A running process or existing interface does not prove connectivity. Check for tclient router: ready in the log, DNS/HTTPS from a selected LAN client and continued access to router management. Check an unselected client as well.

If /tmp/tclient-router/cleanup-pending appears, do not delete it manually or flush the firewall. Resolve the logged error, run start with the previous mode, then stop. Do not upgrade or switch modes until stop succeeds. Closed guard chains and lease files may remain after stopping.

Local 26.11.99 candidates have not passed installation, upgrade and removal on the target system, a full VPN session or physical-router testing. Memory and storage requirements have not been measured. The Linux client project qualifies packages before public release.