QuantaFeed · Fix Playbook · WireGuard VPN

Add Post-Quantum PresharedKey to WireGuard Tunnels

Finding / Symptom: WireGuard [Peer] stanzas omit PresharedKey, leaving session key establishment protected only by classical Curve25519.

Generate a unique 256-bit symmetric key with `wg genpsk` and add `PresharedKey` to both sides of each WireGuard peer.

Copy-Paste Configuration Fix

# 1. Generate a unique 256-bit post-quantum symmetric key per peer:
wg genpsk > peer1.psk

# 2. Add to /etc/wireguard/wg0.conf under [Peer] on BOTH endpoints:
[Peer]
PublicKey = <PEER_PUBLIC_KEY>
PresharedKey = <OUTPUT_OF_WG_GENPSK>
AllowedIPs = 10.0.0.2/32

Verify Live

npx quantafeed-pqc-scan scan /etc/wireguard

Test your stack live: WireGuard Quantum PresharedKey Checker

Frequently Asked Questions

Should every WireGuard peer share the same PresharedKey?
No — always generate a distinct PresharedKey per peer pair using `wg genpsk`.