tailscale
БесплатноБез исполняемых скриптовНе проверенBuild zero-trust networks with Tailscale — mesh VPN setup, ACLs, exit nodes, subnet routing, MagicDNS, Funnel, SSH, and API automation. Use when tasks involve…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Tailscale
Overview
Build zero-trust mesh networks that connect servers, laptops, and cloud instances as if they're on the same LAN. Built on WireGuard, managed through a control plane.
Instructions
Setup
# Ubuntu 24.04 (use your release's codename instead of noble; list at https://pkgs.tailscale.com/stable/)
sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/noble.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update && sudo apt-get install tailscale
sudo tailscale up
# Fedora 41+ (dnf5)
sudo dnf config-manager addrepo --from-repofile=https://pkgs.tailscale.com/stable/fedora/tailscale.repo
sudo dnf install tailscale
sudo systemctl enable --now tailscaled
sudo tailscale up
# macOS (Homebrew installs the open-source CLI daemon; the App Store app is the GUI alternative)
brew install tailscale
# Headless server: authenticate with an auth key from the environment
sudo tailscale up --auth-key="$TS_AUTHKEY"
tailscale status
Flag spelling is --auth-key (the old --authkey is no longer in the CLI reference). tailscale up reapplies every flag you pass; to change one setting later use tailscale set (for example sudo tailscale set --ssh).
Auth Keys
Generate in the admin console under Settings, Keys (https://login.tailscale.com/admin/settings/keys). Auth keys expire after 1 to 90 days (90 if you pick nothing).
- Reusable — same key for multiple machines (fleet provisioning)
- Ephemeral — machine removed when it disconnects (CI runners, containers)
- Pre-approved — skips device approval when your tailnet requires it
- Tags — a key can register devices as
tag:ci; those devices are owned by the tag, not by a person
# Ephemeral node: the key must be created as ephemeral; the node is then removed on disconnect (CI/CD runners)
sudo tailscale up --auth-key="$TS_AUTHKEY" --hostname="ci-runner-$GITHUB_RUN_ID"
Access Control (ACLs)
The policy file defines who can reach what. It is HuJSON (comments and trailing commas allowed). Edit it in the admin console under Access controls or via the API. The acls rules below still work; Tailscale also offers a newer grants syntax (network and app capabilities) in the same file.
{
"acls": [
// Developers can reach dev and staging servers
{"action": "accept", "src": ["group:devs"], "dst": ["tag:dev:*", "tag:staging:*"]},
// Only ops team can reach production
{"action": "accept", "src": ["group:ops"], "dst": ["tag:prod:*"]},
// Everyone can use DNS and HTTPS on shared services
{"action": "accept", "src": ["*"], "dst": ["tag:shared:80,443,53"]},
// SSH only for ops
{"action": "accept", "src": ["group:ops"], "dst": ["*:22"]}
],
"groups": {
"group:devs": ["[email protected]", "[email protected]"],
"group:ops": ["[email protected]"]
},
"tagOwners": {
"tag:dev": ["group:devs"],
"tag:staging": ["group:ops"],
"tag:prod": ["group:ops"],
"tag:shared": ["group:ops"]
}
}
Subnet Router
Expose an entire network (e.g., AWS VPC, office LAN) to your tailnet without installing Tailscale on every machine:
# On the gateway machine in the target network
# Enable IP forwarding first (required)
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
sudo tailscale set --advertise-routes=10.0.0.0/16,172.16.0.0/12
Approve the routes in the admin console (Machines, Edit route settings) or via API. Linux clients must opt in with sudo tailscale set --accept-routes; Windows, iOS, Android and the macOS apps accept routes by default. Then tailnet members can reach 10.0.0.0/16 through the subnet router, subject to the ACLs. With firewalld, firewall-cmd --permanent --add-masquerade may be needed.
Exit Node
Route all internet traffic through a specific machine (like a traditional VPN):
# On the exit node (e.g., a VPS in a specific country); on Linux enable IP forwarding first, as in Subnet Router
sudo tailscale set --advertise-exit-node
# Then approve it in the admin console (Machines, Edit route settings, Use as exit node)
# On the client — use the exit node (name or Tailscale IP)
sudo tailscale set --exit-node=exit-server-hostname
# Turn it off again: sudo tailscale set --exit-node=
# Verify — should show the exit node's IP
curl ifconfig.me
MagicDNS
With MagicDNS on (the default for new tailnets), every machine gets a DNS name: hostname.tailnet-name.ts.net (the tailnet name looks like tail4f9c2.ts.net unless you renamed it), and the short hostname works inside the tailnet:
# Access yo
Установить tailscale в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл tailscale?
Build zero-trust networks with Tailscale — mesh VPN setup, ACLs, exit nodes, subnet routing, MagicDNS, Funnel, SSH, and API automation. Use when tasks involve connecting remote machines, securing internal services, replacing traditional VPNs, or exposing local services to the internet.
Как установить скилл tailscale?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tailscale запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic