Back
Wireguard Config Builder
RFC 7748 Curve25519 & X25519 Engine

WireGuard VPN Client & Server Config Builder

Generate Curve25519 private/public keypairs, preshared keys (PSK), and complete wg0.conf server/client configuration profiles with zero server storage, local browser cryptography, and instant QR code provisioning.

Presets:
100% Client-Side Privacy: All Curve25519 key generation runs exclusively inside your browser. Keys never leave your machine.
Configuration Errors Detected
  • •Invalid Client Private Key: Key cannot be empty
  • •Invalid Server Public Key: Key cannot be empty

WireGuard Tunnel Cryptographic Keys

Core cryptographic and network routing directives in wg0.conf configuration profiles.

Network & Interface Parameters

Network & Interface Parameters

10.0.0.2/32, fd86:ea04:1115::2/128
WAN Interface:
Client WireGuard ProfileReady for Import
# ========================================================
# WireGuard Client Configuration Profile
# Generated securely with ToolsAA Zero-Retention Generator
# ========================================================

[Interface]
# Client Private Key (Curve25519 Secret)
PrivateKey = <CLIENT_PRIVATE_KEY>
Address = 10.0.0.2/24, fd86:ea04:1115::2/64
DNS = 1.1.1.1, 1.0.0.1
MTU = 1420

[Peer]
# Server Public Key
PublicKey = <SERVER_PUBLIC_KEY>
Endpoint = vpn.example.com:51820
AllowedIPs = 0.0.0.0/0, ::/0
PersistentKeepalive = 25
File size: 530 Bytes:

WireGuard Deployment Guide & Cheatsheet

Quick commands and setup steps for Linux, macOS, Windows, and mobile devices.

1. Install WireGuard

Install wireguard tools via your package manager:

# Ubuntu / Debian
sudo apt update
sudo apt install -y wireguard

# Fedora / RHEL
sudo dnf install -y wireguard-tools
2. Save Configuration

Write the profile with strict 600 root permissions:

sudo nano /etc/wireguard/wg0.conf

# Secure permissions:
sudo chmod 600 /etc/wireguard/wg0.conf
3. Start & Enable Service

Launch the tunnel and verify status:

# Enable on boot & start
sudo systemctl enable --now wg-quick@wg0

# Check handshake:
sudo wg show

WireGuard Profile Architecture & Parameters

Core cryptographic and network routing directives in wg0.conf configuration profiles.

VPN Deployment & Cryptographic Best Practices

Guidelines for secure and performant WireGuard tunnel networks.

Troubleshooting WireGuard Connections

Resolving handshake timeouts, split-tunnel leaks, and routing blocks.

Technical Reference & Architecture Guide

WireGuard VPN Client & Server Config Builder — Reference Guide

Generate Curve25519 private/public keypairs, preshared keys (PSK), and complete wg0.conf server/client configuration profiles with zero server storage, local browser cryptography, and instant QR code provisioning.

WireGuard VPN Client & Server Config Builder — Reference Guide — Client-Side In-Memory Architecture & Data Flow
WireGuard VPN Client & Server Config Builder — Reference Guide — Client-Side In-Memory Architecture & Data Flow

Key Parameters & Controls

Key Parameters & Controls
ParameterType / UnitDescriptionDefault
PrivateKeyCurve25519 KeyBase64-encoded 32-byte private key generated locally via Curve25519.Auto-Generated
PublicKeyCurve25519 KeyBase64-encoded public key derived from PrivateKey shared with remote peer.Derived
AddressIP/CIDRInternal VPN tunnel IP address assigned to the local interface (e.g. 10.0.0.2/24).10.0.0.2/24
AllowedIPsIP/CIDR ArraySubnets routed through the tunnel (0.0.0.0/0 for full tunnel, or private ranges for split tunnel).0.0.0.0/0, ::/0

Pro Tips & Best Practices

Generate a 256-bit symmetric PSK

Generate a 256-bit symmetric PSK between peers to provide quantum resistance on top of Curve25519 key exchanges.

On mobile devices or endpoints

On mobile devices or endpoints behind home routers, set 'PersistentKeepalive = 25' to keep stateful firewall sessions alive.

Tune MTU for Encapsulation Headers

Set 'MTU = 1420' to avoid packet fragmentation overhead on PPPoE and cellular networks.

Common Gotchas & Troubleshooting

⚠️Handshake never completes between client and server

Verify that UDP port 51820 is open in your cloud provider firewall (e.g. Lightsail/EC2 Security Groups) and not filtered by Cloudflare.

⚠️Tunnel establishes handshake but internet access fails

Ensure IP forwarding ('net.ipv4.ip_forward=1') and iptables NAT masquerade are active on your Linux VPN server.

Frequently Asked Questions

How are cryptographic keys generated in this web tool?▼

All Curve25519 public/private keys and preshared keys are computed using browser WebCrypto APIs directly on your device. No keys are ever transmitted over the network.

What is the difference between Full Tunnel and Split Tunnel?▼

Full Tunnel (AllowedIPs = 0.0.0.0/0, ::/0) routes 100% of network traffic through the VPN. Split Tunnel (e.g. 10.0.0.0/24) only encrypts traffic destined for your internal company subnet.

How do I import the generated config onto an iPhone or Android device?▼

Use the built-in QR Code viewer to scan the generated client profile directly inside the official WireGuard mobile app.

Can I reuse the same PrivateKey across multiple client devices?▼

No. Each device must have its own unique PrivateKey and assigned IP address inside the tunnel network to avoid routing conflicts.