Repository navigation
dvpnd 9.4.0
A security release: what clients can reach through a node, what the
protocol programs may do on the host, how a client tells the node from
an impostor, and where the operator key lives.
Clients reach the internet and nothing else. Every protocol keeps them
off the node host, its loopback, private, shared and link-local networks
(the provider's metadata service among them) and other clients, and off
TCP port 25 unless [egress] allow_smtp is set. The proxies apply this
themselves and the kernel holds them to it; the tunnels get iptables
chains on their interface.
The protocol programs run unprivileged. V2Ray, XRAY and Hysteria2 run as
the dvpnd-proxy account the installer creates, and OpenVPN drops to it
once its tunnel is up; their configuration lives in /run/dvpnd. The
systemd unit limits the node's capabilities and system calls.
Handshake replies are signed. The node signs each reply with its account
key (X-Dvpnd-Signature) and says on every response that it does
(X-Dvpnd-Reply-Signing), so a client can tell the node it paid from
anyone on the network path. The legacy handshake endpoint, whose
signature does not cover the client's key, is off unless
[node] legacy_handshake is set.
The operator key can stay off the server. With the installer's --granter
option ([keyring] granter), the server holds a hot key that may only send
the node's messages for the node account, through authz and feegrant.
The node checks the grants at start, names any that is missing, and
warns two weeks before they run out.
Also:
- concurrent handshakes can no longer get past max_peers;
- background jobs log and retry instead of stopping the node;
- RPC endpoints must be https unless they are on the same host;
- configuration files are readable by their owner only;
- V2Ray accepts AEAD VMess headers only;
- the installer builds only release tags signed by the maintainer, and
release images are signed with cosign and carry build provenance and
an SBOM.
Upgrade by re-running the installer. On OpenVPN nodes the [management]
section of openvpn.toml is no longer used. Docker nodes need the
capabilities scripts/runner.sh now grants (docs/operator.md, section 7).