Repository navigation
wglink v0.2.0
Reach more machines and shape networks more ways: Proxmox VMs, phones, hubs,
routed subnets and IPv6, with key rotation, preshared keys, safer changes
over SSH and a terminal dashboard.
Added
- Proxmox VMs as nodes, through the QEMU guest agent:
wglink node add vm200 --qm 200 --via pve1. The VM needsqemu-guest-agentand no SSH. - Manual nodes for devices wglink can't reach, such as phones:
wglink node add phone --manualadds one.wglink export lab phoneprints its config and makes its key pair on
the first run.plansays when a device's config is out of date, andstatusjudges
its links from the other end.
- Safe changes over SSH:
- Before changing an SSH node,
applyarms a systemd timer there that
restores the previous config, then cancels it over a new SSH connection. - If the change cut off the route wglink uses, the node undoes the change
by itself after a minute. --no-revertturns this off, andplanwarns about SSH nodes without
systemd.
- Before changing an SSH node,
wglink discover HOSTlists a Proxmox host's containers and VMs with their
addresses.--addadds the running ones as nodes.wglink state rebuildrecovers a lost or stalewglink.state.jsonfrom
the configs on the nodes. It keeps the old file as.bak.- Hub-and-spoke networks:
--hub NODEonconnect,net createandnet set.- Spokes connect only to the hub and send the whole network through it.
- The hub turns on forwarding for its WireGuard interface alone.
statusshows the hub's links.
- Routed subnets:
wglink routes NETWORK NODE SUBNET...lets the other members reach a
member's LAN through it, through the hub in hub networks.- Auto subnets avoid routed ones.
planstops you when a member is on a routed subnet itself, and warns
when the routing member doesn't forward.
wglink rotate NETWORK [NODE...]replaces members' keys:- New keys are made on the members and loaded live on them and their
peers. - The probe now compares the key file with the keys in the config and in
the running interface.planloads a new key that hasn't been picked up,
for example after an interrupted rotation.
- New keys are made on the members and loaded live on them and their
- Preshared keys, with
--pskonconnect,net createandnet set:applymakes a key for each pair of peers and stores it on both before
either config uses it.- Nodes report keys by their hashes, so
planfinds pairs that don't
match and keys that aren't loaded yet. rotatereplaces a member's preshared keys too, andexportgives a
phone new ones.
- IPv6 inside the tunnels, with
--ipv6onconnect,net createand
net set:- A random unique local /64 by default, or a fixed subnet.
- Each member's IPv6 address has the same host number as its IPv4 one.
- Hubs forward IPv6 for their interface alone on Linux 6.17 and later;
planwarns when an older hub forwards no IPv6. - Routed subnets can be IPv6 too.
wglink ui, a terminal dashboard: every network with the health of its
links, checked again every few seconds, with plan and apply for the
selected network a key away.
Fixed
- A config edited by hand without a final newline no longer breaks
plan
andstatusfor its node. - Turning a network's keepalive off now takes effect on a live update, not
only after the interface restarts.wg syncconfkeeps settings a config
leaves out, so wglink sets them to zero.