What does this skill do?

The WireGuard VPN for Homelab Skill provides step-by-step guidance on deploying a WireGuard VPN server in homelab environments, from key generation to configuring mobile and laptop clients. It supports split tunneling and full tunneling, peer management, and routing with iptables to remotely access your NAS, Raspberry Pi, or internal services.

Set Up a VPN Server
Deploy WireGuard on a Raspberry Pi, Linux host, pfSense, or router using the wg0.conf guided setup.
Key and Peer Management
Generate private/public key pairs for each device and configure the client files with AllowedIPs.
Split Tunnel vs. Full Tunnel
Decide whether to route only local network traffic or all client traffic through the VPN.
Connection Debugging
Diagnoses handshake errors, verifies UDP port 51820, matching keys, and enabled IP forwarding.

Usage examples

🖥️ Server on Raspberry Pi
Install and configure a WireGuard server on my Raspberry Pi so I can access my home network from my phone.
🔀 Split tunnel
Generate the server and client keys for my WireGuard VPN with split tunneling, for local network traffic only.
🔍 Debug the handshake
My WireGuard connection isn't establishing a handshake. Please help me troubleshoot the problem step by step.
🌐 Full tunnel
Configure WireGuard in full-tunnel mode to route all traffic from my laptop through my home VPN server.

Features

Step-by-Step Guided Deployment Installing WireGuard, generating keys with `wg genkey` and `wg pubkey`, and fully configuring `wg0.conf`.
Split tunnel and full tunnel Configure AllowedIPs to route only traffic from the local network or all client traffic through the VPN.
Key and Peer Management Generate unique key pairs per device with restrictive permissions and configure mobile and laptop clients.
Routing with iptables PostUp/PostDown rules for NAT, masquerading, and forwarding between the wg0 interface and the local eth0 network.
Compatible with multiple platforms Raspberry Pi, Linux host, pfSense, compatible routers, and Android/iOS mobile clients.

Frequently asked questions

The skill supports Raspberry Pi, Linux hosts, pfSense, or compatible routers. All you need is root access and the WireGuard package installed.
Split tunneling routes only traffic destined for your local network (e.g., 192.168.1.0/24), while full tunneling routes all client traffic through the VPN (0.0.0.0/0).
Verify that UDP port 51820 is open on the router, that the public keys match between the server and the client, and that IP forwarding is enabled with `net.ipv4.ip_forward=1.`
Yes. You need a static public IP address or a DDNS service (e.g., your-ip.ddns.net) so that clients can find the server's endpoint from outside your network.
WireGuard VPN for Homelab — Secure Remote Access with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.