Skip to content
affaan-m avatar

Homelab Wireguard Vpn

Step-by-step WireGuard setup for home-network remote access, with split and full tunnel routing.

CCM score
71 of 100
skills.sh installs
8.7K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers server setup on Linux, pfSense, and OPNsense, plus client config, peer management, and DDNS for dynamic home IPs
  • Includes key generation with wg genkey and wg pubkey, plus a Python helper for building client and server peer blocks
  • Enforces scoped iptables FORWARD rules, chmod 600 on key and config files, and keeping private keys out of version control
  • Designed for homelab users reaching a NAS or Pi from phones and laptops, choosing between split tunnel and full tunnel

Install

$ npx -y skills add affaan-m/ecc --skill homelab-wireguard-vpn -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Homelab WireGuard VPN

WireGuard is a fast, modern VPN protocol. It is the right choice for remote access to a home network — simpler to configure than OpenVPN and faster than most alternatives.

All configuration examples show common setups. Review each command — especially the iptables forwarding rules and key file permissions — before applying them to your system, and make changes in a maintenance window.

When to Use

  • Setting up WireGuard server on a Raspberry Pi, Linux host, pfSense, or router
  • Generating WireGuard keypairs and writing peer config files
  • Configuring remote access from a phone or laptop to a home network
  • Explaining split tunneling (route only home traffic) vs full tunnel (route all traffic)
  • Troubleshooting WireGuard connections that will not come up
  • Automating peer configuration generation for multiple clients

How WireGuard Works

Your phone (WireGuard client)
    │
    │  Encrypted UDP tunnel (port 51820)
    │
Your home router (WireGuard server — needs a public IP or DDNS)
    │
    Your home network (192.168.1.0/24, NAS, Pi, etc.)

Details

Repository
github.com/affaan-m/ecc
Categories
DevOps & Cloud, Security
First seen
Jul 14, 2026

Questions

What does the homelab-wireguard-vpn skill do?

It sets up a WireGuard VPN server and client peers for remote access to a home network from phones and laptops. It covers key generation, peer configuration, and choosing split tunneling or full tunnel routing.

Is this skill a good fit for remote access to a home network?

Yes, it is aimed at people who want to reach a NAS, Raspberry Pi or other home devices from anywhere. It covers server setup on Linux, pfSense or OPNsense, plus DDNS for home connections with dynamic IPs.

How do I install the homelab-wireguard-vpn skill?

Run npx -y skills add affaan-m/ecc --skill homelab-wireguard-vpn -y in your project. Once installed, the agent can walk you through WireGuard server setup, client configs and split versus full tunnel choices.

Should I use split tunnel or full tunnel with this skill?

The skill explains that split tunnel routes only home network traffic, keeping internet use direct and faster on mobile. Full tunnel sends all traffic through the home connection, which is useful for home DNS ad blocking but limited by home upload speed.

More from affaan-m/ecc

All 257

Similar to Homelab Wireguard Vpn

More DevOps & Cloud