CallMeTechie
DE Login
Home Products Blog About Contact

VPN Peers & Clients

v1.x · Updated 3 weeks ago

Setting Up Peers

What is a Peer?

A peer is a WireGuard endpoint — a device or server connected to GateControl through the VPN tunnel. Each peer gets its own IP address within the WireGuard subnet (default: 10.8.0.0/24).

Creating a Peer (Server Side)

  1. Navigate to Peers in the sidebar
  2. Click Add Peer (or the + button on mobile)
  3. Fill in:
    • Name: A descriptive name (e.g. "Home NAS", "Office Server")
    • DNS: DNS servers for the client (default: 1.1.1.1, 8.8.8.8)
    • Persistent Keepalive: Keeps the connection alive, recommended 25 seconds for NAT scenarios
    • Expiry Date: Optional — peer is automatically disabled after expiration
    • Group: Optional — organize peers by team, location, or purpose
  4. Click Save

GateControl automatically generates:

  • Private key (stored encrypted in the database)
  • Public key
  • Preshared key (additional encryption layer)
  • Next available IP address in the subnet

Downloading the Peer Configuration

After creating a peer, two options are available:

Config File:

  • Click on the peer → Download Config
  • You get a .conf file that can be imported into any WireGuard client

QR Code:

  • Click on the QR code icon
  • Scan the code with the WireGuard app on your smartphone

Peer Configuration (Client Side)

The downloaded config looks like this:

[Interface]
PrivateKey = <auto-generated>
Address = 10.8.0.2/32
DNS = 1.1.1.1, 8.8.8.8

[Peer]
PublicKey = <Server Public Key>
PresharedKey = <auto-generated>
Endpoint = your-server.example.com:51820
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25

AllowedIPs Explained:

  • 0.0.0.0/0 — All traffic through VPN (full tunnel)
  • 10.8.0.0/24 — Only traffic to the VPN subnet (split tunnel)

For reverse proxy usage, split tunnel (10.8.0.0/24) is sufficient, since only the GateControl server needs to reach the peers.

WireGuard Clients

Recommended Software by Operating System

Operating SystemClientNotes
WindowsWireGuard for WindowsOfficial client, easy config import
macOSWireGuard for macOSApp Store, menu bar integration
Linuxwg-quick (package wireguard-tools)wg-quick up wg0 with the .conf file
AndroidWireGuard for AndroidQR code or config import
iOS / iPadOSWireGuard for iOSQR code or config import
Synology NASdocker-wireguard-goRecommended for NAS systems
Docker (general)docker-wireguard-goWorks on any Docker host

Setting Up a Client

Windows / macOS / Smartphone:

  1. Install the WireGuard app
  2. "Add Tunnel" → Import config file (or scan QR code)
  3. Activate the tunnel
  4. Done — the peer appears in GateControl as "Online"

Linux:

# Copy the config file to /etc/wireguard/
sudo cp gatecontrol-peer.conf /etc/wireguard/wg0.conf

# Start the tunnel
sudo wg-quick up wg0

# Auto-start on boot
sudo systemctl enable wg-quick@wg0

docker-wireguard-go — WireGuard for NAS & Docker

docker-wireguard-go is our own companion project for GateControl. It is a Docker container that runs WireGuard as a VPN client — specifically designed for Synology NAS systems, but compatible with any Docker host.

Advantages over other WireGuard clients:

FeatureKernel WireGuardStandard Containerdocker-wireguard-go
Kernel module requiredYesYesNo
SYS_MODULE capabilityYesYesNo
Synology DSM compatibleNoNoYes
Image size~50-100 MB~8.5 MB
Performance~1+ Gbit/s~1+ Gbit/s~200-400 Mbit/s

Setup on Synology NAS:

  1. Create a peer in GateControl and download the config
  2. Copy the config file to the NAS (e.g. to /volume1/docker/wireguard/wg0.conf)
  3. Start the container:
# docker-compose.yml
services:
  wireguard:
    image: ghcr.io/callmetechie/docker-wireguard-go:latest
    container_name: wireguard
    network_mode: host
    cap_add:
      - NET_ADMIN
    volumes:
      - /volume1/docker/wireguard/wg0.conf:/etc/wireguard/wg0.conf:ro
    restart: unless-stopped
  1. Start the container: docker compose up -d
  2. Verify: docker exec wireguard wg show — should show the tunnel and handshake
  3. The peer will appear as "Online" in GateControl

Performance: The userspace implementation achieves ~200-400 Mbit/s — more than sufficient for typical NAS use cases (file access, reverse proxy, media streaming).

Cookie Settings

We use cookies to improve your experience. Essential cookies are always active.

Privacy Policy
ESC
↑↓ navigate open esc close