LiuTangLei/tailscale-awg-installer
About
Installers and docs for an unofficial Tailscale build with optional Amnezia-WG obfuscation. Linux/macOS/Windows/OpenWrt one-click scripts, plus Android/iOS guides. Works with official Tailscale and Headscale. Not affiliated with Tailscale.
Web & App DevelopmentWhat you can do
- Three node-wide transports: standard WireGuard (default), AWG v3 / v2, and QUIC.
- AWG v3: header protection, payload padding and randomized timing. AWG v2 remains available for older peers.
- QUIC: HTTP/3 over TLS with tuned BBRv3. Peers trust each other by node key automatically, so there are no parameters to sync.
- 0-RTT reconnects between v1.104.2+ nodes, with single-use tickets and a full-handshake fallback. QUIC peers on v1.104.1 stay compatible.
Measured star growth
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +6
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalTailscale + AmneziaWG / QUIC
中文 · فارسی · Русский · Releases
Current release: v1.104.7 — desktop, Docker, OpenWrt, ASUS, Android and AwgScale. A Tailscale fork with AmneziaWG and obfuscated QUIC transports. It works with the official Tailscale control plane and Headscale, and behaves like standard Tailscale until you choose another transport.
Version numbers follow upstream: fork vX.Y.Z is based on Tailscale vX.Y.Z.
Features
- Three node-wide transports: standard WireGuard (default), AWG v3 / v2, and QUIC.
- AWG v3: header protection, payload padding and randomized timing. AWG v2 remains available for older peers.
- QUIC: HTTP/3 over TLS with tuned BBRv3. Peers trust each other by node key automatically, so there are no parameters to sync.
- 0-RTT reconnects between v1.104.2+ nodes, with single-use tickets and a full-handshake fallback. QUIC peers on v1.104.1 stay compatible.
- Better under reordering: reordered QUIC packets are no longer dropped as duplicates.
- Optional server role:
tailscale awg server onmakes clients use a Chromium-style TLS ClientHello when they connect to this node. - One-command switching with automatic restart, plus
tailscale awg doctorfor diagnostics. - Safe upgrades: installers check SHA-256 digests, roll back on failure and keep the active transport.
Install
| Platform | Install / download | Version |
|---|---|---|
| Linux | curl -fsSL https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/install-linux.sh | bash |
|
| macOS | curl -fsSL https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/install-macos.sh | bash |
|
| Windows (Admin PowerShell) | iwr -useb https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/install-windows.ps1 | iex |
|
| Docker | ltlei/tailscale-awg:latest (see below) |
|
| OpenWrt | Installer, packages and feed | |
| ASUS stock / Merlin | One-command installer | |
| Android | Signed APK | |
| iOS | AwgScale IPA |
- Prefer to install by hand? See the manual installation guide for Linux, macOS, Windows, OpenWrt and mobile.
- Desktop installers install the latest release on x86_64 / ARM64. Add
--version <tag>(Windows:-Version <tag>) to pin a release. On Linux / macOS,--uninstallremoves it. - macOS uses the CLI/utun daemon; moving from Tailscale.app requires signing in again.
- The Windows GUI must match the fork's base Tailscale version.
- iOS needs TrollStore or a Packet Tunnel entitlement; the IPA is not App Store signed.
- A system package update may restore official binaries. Rerun the installer if
tailscale awgdisappears.
ASUS stock / Merlin
Run as root over SSH:
curl -fsSL https://gh-proxy.org/https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/install.sh | /bin/sh
The entry detects ASUS firmware and opens the ASUS installer and management menu. Rerun it for login, AWG/QUIC, status, logs, updates and rollback. It tries download mirrors automatically. Use /bin/sh: ASUS firmware may give the bare sh command another meaning. Bash and USB storage are not required.
ARM64 / ARMv7 with Linux 3.2 or newer are supported; ET12 stock and ET8 Merlin have been tested. Compressed files stay in JFFS and the program runs from RAM. Merlin enables JFFS custom scripts when needed; stock firmware needs an existing fwtool custom-init or Entware startup hook. The installer does not modify firmware partitions. For unattended installation, append -s -- --no-menu after /bin/sh.
GitHub mirrors
If GitHub is slow or blocked, put a mirror prefix in front of the script URL and pass the same prefix to the installer. Linux and macOS use --mirror; Windows uses -MirrorPrefix or the MIRROR_PREFIX environment variable.
# macOS: replace install-linux.sh with install-macos.sh
curl -fsSL https://ghfast.top/https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/install-linux.sh \
| bash -s -- --mirror https://ghfast.top
$m = 'https://ghfast.top'
$code = (iwr -useb "$m/https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/install-windows.ps1").Content
& ([scriptblock]::Create($code)) -MirrorPrefix $m
| Mirror | Notes |
|---|---|
https://ghfast.top |
Default in the OpenWrt installer |
https://gh-proxy.org |
Used by the OpenWrt installer |
https://gh-proxy.com |
Also proxies the GitHub API |
| Your own | Any proxy that serves https://<mirror>/https://github.com/..., for example a self-hosted gh-proxy on Cloudflare Workers or Docker |
- The installer finds the latest release through
api.github.com, first directly and then through the mirror. Most mirrors do not proxy the API; if the lookup fails, usegh-proxy.comor add--version <tag>with the tag shown in the badge above. - Public mirrors are third-party services that can change or go offline. Use your own for important machines.
- OpenWrt and ASUS try download mirrors automatically. OpenWrt also supports
install.sh --custom-proxyfor your own.
Connect and configure
tailscale up
For Headscale: tailscale up --login-server https://your-headscale-domain.
| Action | Command |
|---|---|
| Choose AWG v3 (default), v2 or QUIC | tailscale awg set |
| Enable QUIC | tailscale awg set --yes quic |
| Show / save AWG JSON | tailscale awg get |
| Apply saved JSON | tailscale awg set '<JSON>' |
| Copy a compatible online peer's profile | tailscale awg sync |
| Declare this node a QUIC server | tailscale awg server on |
| Return to standard WireGuard | tailscale awg reset |
| Check active mode / diagnose | tailscale awg status / tailscale awg doctor |
- AWG peers need matching shared fields. Generate a profile once, save the JSON, then distribute or sync it.
- QUIC applies to the whole node and every communicating node must enable it. There is no automatic fallback to WireGuard. Enabling QUIC clears the AWG profile, so save the JSON first if you need it later.
- Transport changes restart the local service and briefly interrupt VPN traffic. Keep another way to reach remote machines.
Docker
Use docker-compose.yml with ltlei/tailscale-awg:latest or :v1.104 (follows the latest patch release). Images are available for amd64, arm64, arm/v7 and 386.
curl -fsSLO https://raw.githubusercontent.com/LiuTangLei/tailscale-awg-installer/main/docker-compose.yml
docker compose pull
docker compose up -d
docker compose exec tailscaled tailscale up
For Headscale, append --login-server https://your-headscale-domain. For unattended login, provide TS_AUTHKEY privately and never commit it.
Inside a container, stage transport changes and then restart the container:
docker compose exec tailscaled tailscale awg set --no-restart --yes quic
docker compose restart tailscaled
For AWG, replace --yes quic with '<JSON>'.
- Keep the image's
containerbootcommand and the whole./tailscale-statedirectory. Never share live node state between daemons. - TUN mode needs
/dev/net/tunandNET_ADMIN; routes apply inside the container. Exit nodes and subnet routers also need forwarding and approval in the control plane. WithTS_AUTH_ONCE=true, later routing changes need an explicittailscale set. - Without TUN or extra capabilities, use compose.userspace.yml on its own (
docker compose -f compose.userspace.yml up -d, and the same-ffor later commands). Applications must use its SOCKS5 proxy on1055or HTTP proxy on1056.
Troubleshooting
Check tailscale version, tailscale netcheck, tailscale awg doctor and tailscale ping --tsmp <peer>. A plain tailscale ping alone does not prove application traffic works. When reporting an issue, include both peers' versions and diagnostics.
Explore related projects
Loading…