Last active
January 4, 2026 16:25
-
-
Save aojea/d6b1152dc0f184c41042ca2e4e05aefb to your computer and use it in GitHub Desktop.
Build tailscale for openwrt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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