---
name: "wireguard-vpn-cryptographic-tunnels"
description: "Establish fast, lightweight, and modern encrypted VPN tunnels with WireGuard."
metadata:
  author: "Jason Donenfeld"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "setup wireguard vpn"
  - "generate wireguard keypair"
  - "configure wg0.conf"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# WireGuard Cryptographic VPN Tunnels

Configures WireGuard VPN interfaces (wg0): Curve25519 public/private keypairs, AllowedIPs routing, persistent keepalives through NATs, and kernel-space WireGuard network security.

## When to Invoke
Invoke this skill whenever you need to:
- setup wireguard vpn
- generate wireguard keypair
- configure wg0.conf

## Execution SOP & Rules
1. Generate keypairs with wg genkey | tee privatekey | wg pubkey > publickey.
2. Configure /etc/wireguard/wg0.conf with [Interface] and [Peer] blocks.
3. Set PersistentKeepalive = 25 on peers behind NAT routers to maintain connection state.
4. Enable and start the tunnel using systemctl enable --now wg-quick@wg0.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
