C.W.K.
Stream
Lesson 05 of 12 · published

Tailscale — Zero-Config WireGuard

~12 min · tailscale, mesh, magicdns, nat-traversal

Level 0Pinger
0 XP0/101 lessons0/12 achievements
0/150 XP to next level150 XP to go0% complete

어려운 부분 처리된 WireGuard

Tailscale 이 WireGuard 위 mesh VPN 구축. 각 머신에 설치, 한 번 sign in, 다 서로 도달 — port forwarding 없음, 수동 키 교환 없음, static IP 없음, 라우팅 config 없음. NAT traversal 이 최악 네트워크 통과 (더블 NAT, CGNAT, 호텔 Wi-Fi). 개인 fleet 엔 그게 답.

아래서 작동 방식

  1. Tailscale 이 각 장치에 WireGuard 인터페이스 설치.
  2. 조정 서버 (Tailscale 거 또는 self-hosted Headscale) 가 장치들 사이 public key 배포.
  3. 장치들이 서로 직접 WireGuard 터널 수립 시도 (peer-to-peer).
  4. 직접 실패 (어려운 NAT) 면 트래픽이 relay (DERP server) 로 fallback — 여전히 end-to-end 암호화, latency 만 추가.

Mesh 가 hub-and-spoke 이기는 이유

고전 remote-access VPN 에선 모든 장치가 한 중앙 서버로 터널, 두 클라이언트 간 트래픽이 그 서버 통해 두 hop. Tailscale 의 mesh 는 어느 두 장치든 직접 대화 시도 — 사무실 맥과 노트북이 둘 다 원격이어도 LAN 속도로 대화. 직접 실패 시만 누가 relay 로 fallback.

Code

설치하고 합류·bash
# macOS
brew install --cask tailscale
# (or download the App Store / direct version)

# Linux
curl -fsSL https://tailscale.com/install.sh | sh

# Bring it up — opens a browser to authenticate
sudo tailscale up

# What's connected?
tailscale status
# 100.64.0.1   office    you_username@   linux   -
# 100.64.0.2   macbook   you_username@   macOS   -
# 100.64.0.3   server    you_username@   linux   -

External links

Exercise

이 맥과 다른 머신 하나에 Tailscale 설치. 같은 계정으로 sign in. 양쪽에서 tailscale status 돌려 — 각각 다른 거 보는지 확인. ping <other-machine-tailscale-IP> 시도 — 카페 네트워크에서도 동작해야. 방금 mesh VPN 만들었어.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.