Agent Skills: Network Security

VPN access and firewall rules. Headscale VPN on bastion for admin access to private services.

UncategorizedID: nmime/infra-skills/network-security

Install this agent skill to your local

pnpm dlx add-skill https://github.com/nmime/infra-skills/tree/HEAD/infra/network-security

Skill Files

Browse the full folder contents for network-security.

Download Skill

Loading file tree…

infra/network-security/SKILL.md

Skill Metadata

Name
network-security
Description
VPN access and firewall rules. Headscale VPN on bastion for admin access to private services.

Network Security

Headscale v0.27.1 VPN and firewall for secure admin access. (Updated: January 2026). All scripts are idempotent - check state before applying changes.

Responsibility

| This Skill | Other Skills | |------------|-------------| | Headscale VPN setup | Servers → hetzner-infra | | VPN user management | DNS → hetzner-infra | | Firewall rules | TLS → k8s-cluster-management | | Bastion hardening | LB → hetzner-infra |

Architecture

INTERNET
    │
    ├─ PUBLIC (via LB) ───▶ app, api, s3, registry
    │
    └─ ADMIN (via VPN) ──▶ gitlab, argocd, grafana, vault, k8s
                │
                └──▶ Bastion + Headscale

Setup

Run on bastion server. See reference files for detailed commands:

VPN Client Access

Connect from any server or sandboxed environment:

curl -fsSL https://tailscale.com/install.sh | sh
tailscale up --login-server https://vpn.example.com --authkey <KEY>

Reference Files