TGViewer
WireGuard - Reddit WireGuard - Reddit @r_wireguard · 486 subscribers
Post #9788 30
What is the least risky way to rotate WireGuard peer keys on devices that may stay offline?

Replacing a peer public key is simple when both ends can change together. It is less clear when laptops or small remote devices may be offline for weeks and the old key must eventually stop working. WireGuard identifies a peer by one public key, so there is no obvious overlap window for two keys on the same peer entry.

A staged approach could add a temporary second peer with a new key and a unique transition address, let the device reconnect and confirm traffic on the new identity, then remove the old peer after a deadline. That creates extra AllowedIPs and routing state, and careless overlap could make peer selection ambiguous. Reissuing a full configuration through another management channel is simpler but leaves recovery dependent on that channel.

How do you handle this in practice without locking out intermittently connected devices? Which endpoint, AllowedIPs, keepalive, and rollback checks are essential, and how do you prove the old key is no longer accepted after the transition?

https://redd.it/1wm1mla
@r_wireguard
Reddit From the WireGuard community on Reddit Explore this post and more from the WireGuard community
More from @r_wireguard
  1. Sep 25, 2026IPSec VPN through Wireguard Hello, I would like to use an IPSec VPN through Wireguard but…
  2. Sep 24, 2026wireguard 1.1.1 for windows released what security issue did it fix? do i need to update m…
  3. Sep 22, 2026Self-Hosting Behind CGNAT https://david.alvarezrosa.com/posts/self-hosting-behind-cgnat/ h…
  4. Sep 19, 2026Compromised key reverse access Title might be kinda misleading as i don't have the knowled…
  5. Sep 18, 2026Wireguard vpn handshake issues /r/VPS/comments/1wjw76k/wireguard_vpn_handshake_issues/ htt…
  6. Sep 18, 2026Wireguard Apple Silicon Only Client Does something like this exist? On MacOS 27 and gettin…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →