headscale-derp
Installation
SKILL.md
headscale-derp Skill
Overview
DERP = Designated Encrypted Relay Protocol. DERP is Tailscale's TURN-like fallback mechanism used when direct peer-to-peer NAT traversal fails. Traffic through DERP is fully encrypted (WireGuard inside TLS), but it routes through a relay server rather than directly between peers, so it introduces additional latency.
Common scenarios where DERP is used:
- Symmetric NAT — Both peers behind symmetric NAT gateways
- Corporate firewalls — Restrictive egress policies that block UDP/STUN
- Double NAT — Carrier-grade NAT on both sides
- Blocked STUN — UDP port 3478 is filtered
DERP in Headscale
Headscale includes an embedded DERP server that is enabled by default in the config.yaml: