Skip to content

Instantly share code, notes, and snippets.

@aojea
Last active January 4, 2026 16:25
Show Gist options
  • Select an option

  • Save aojea/d6b1152dc0f184c41042ca2e4e05aefb to your computer and use it in GitHub Desktop.

Select an option

Save aojea/d6b1152dc0f184c41042ca2e4e05aefb to your computer and use it in GitHub Desktop.
Build tailscale for openwrt
# Ref https://tailscale.com/kb/1207/small-tailscale
git clone https://github.com/tailscale/tailscale.git
# obtain the tags from the build_dist.sh --extra-small script
# check the existing ones with go run ./cmd/featuretags --list
TAGS=$(go run ./cmd/featuretags --min --add=osrouter,unixsocketidentity,useexitnode,clientupdate)
# Use the corresponding architecture https://go.dev/wiki/GoMips
GOARCH=mips GOMIPS=softfloat go build -o tailscale.combined -tags $TAGS,ts_include_cli -ldflags="-s -w" ./cmd/tailscaled
upx --lzma --best ./tailscale.combined
# scp to usr/sbin and symlink to tailscale and tailscaled to use https://github.com/adyanth/openwrt-tailscale-enabler/blob/main/etc/init.d/tailscale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment