Skip to content

Releases

dvpnd 9.5.0

Choose a tag to compare

@proofoftrinity proofoftrinity released this 13 Nov 06:27
v9.5.0
79c6ba6

This release comes out of a full review of the node. Upgrade by
re-running the installer; it keeps your configuration and key.

Check before you upgrade:

  • V2Ray serves VMess over TCP only. A node whose v2ray.toml sets another
    transport no longer starts: set transport = "tcp" under [vmess].
  • A protocol file without its listen port or key stops the start, where
    the node used to draw a random one. Files the installer wrote have both.
  • Keys in config.toml that no setting reads are named in the log at
    start.

What changes:

  • When the protocol daemon exits, the node stops with an error so systemd
    or Docker starts it again; before, it went on answering while serving
    no one. The daemons no longer outlive the node, and the Handshake
    resolver runs unprivileged and stops with it.
  • The node opens its API port before it reports itself active on the
    chain.
  • Usage: an OpenVPN connection that ends during a pass is counted once,
    a peer stays counted until its removal succeeds, an idle peer whose
    paid hours or bytes are used is cut off, an account keeps one peer
    across all its sessions, and a re-added XRAY or V2Ray peer starts its
    counters at zero.
  • Chain: one call pays for one transaction at most; before, a failure
    the chain recorded could be paid up to five times. A transaction
    signed at a sequence already used is built again, so the session
    report sent on a restart no longer goes missing when an RPC a block
    behind takes it. The hot key's fee allowance is found however many
    allowances it holds, and each RPC remote keeps one connection.
  • Host: interface and uplink names are checked, host tools are bounded
    in time, iptables waits for its lock, NAT covers only the tunnel's own
    networks with each rule added once, and a tunnel on a kernel without
    IPv6 runs on IPv4 alone. A WireGuard file or interface that is not the
    node's is left alone.
  • Daemon configurations quote every value. OpenVPN client certificates
    last as long as the node's authority instead of seven days.
  • API: the browser preflight allows the Content-Type header client apps
    send with the handshake, and a GeoIP answer is used only when it is a
    public IPv4 address. The session database is readable by root alone.
  • At start the node says when its account key is stored unencrypted on
    the host ([keyring] backend = test) and how to sign with a hot key.
  • Installer: it builds only the release asked for; when its output is
    not a terminal, a new key's mnemonic goes to a file only root can read
    instead of the log; the Go download is checked against pinned sums.
    The systemd unit caps its tasks, and what its daemons create is root's
    own. runner.sh keeps the host's Docker settings and starts the node as
    the operator guide does.

Each release now carries install.sh with a signature from the release
workflow; docs/operator.md shows the cosign command that checks it
before you run it. Releases are published only from a signed tag
whose commit passed CI.

Release tags are signed with the same key as before.

dvpnd 9.4.4

Choose a tag to compare

@proofoftrinity proofoftrinity released this 10 Nov 08:00
v9.4.4
801b3a6

The repository moved to github.com/Feryx-Official/dvpnd. The node
itself is unchanged from 9.4.3.

The installer now clones from and reads the releases of the new
address. GitHub forwards the old one, so an installer downloaded earlier
still works, but download it again before you upgrade. For a node set
up by hand, point the source folder at the new address:

git -C ~/dvpnd remote set-url origin https://github.com/Feryx-Official/dvpnd.git

The Docker image is now published as ghcr.io/feryx-official/dvpnd.
runner.sh update on an existing Docker node still pulls the old name,
ghcr.io/proofoftrinity/dvpnd, which stays at 9.4.3: download runner.sh
again, or set its NODE_IMAGE line to ghcr.io/feryx-official/dvpnd:latest,
then run runner.sh update. Check the new image against
Feryx-Official/dvpnd as docs/operator.md shows; the images up to 9.4.3
stay where they are, and the guide says how to check those.

The Go module path is now github.com/Feryx-Official/dvpnd/v9.

Release tags are signed with the same key as before.

Upgrade by re-running the installer.

dvpnd 9.4.3

Choose a tag to compare

@proofoftrinity proofoftrinity released this 09 Oct 12:27
v9.4.3
ae8faa6

One fix: an hourly session's peer is cut off when the hours it paid
for are used.

The chain pays an hourly session for the duration the node reports, up
to the hours the client paid for, so time served beyond them is never
paid. The node cut a peer off at its byte limit but never at its hours:
a client could keep its tunnel past the hours it bought. Now a session
that has used its hours is refused at the handshake, and a connected
peer is removed within ten seconds of using them up; its usage is still
reported. Gigabyte sessions are unchanged.

The session database gains a column on the first start of this
version; rows the previous version left are read as before.

The README now states what has been exercised on the live network.

Upgrade by re-running the installer. Docker nodes take the new image
with runner.sh update.

dvpnd 9.4.2

Choose a tag to compare

@proofoftrinity proofoftrinity released this 09 Oct 10:21
v9.4.2
eb3ba5c

Three fixes: the Docker runner's prices, config set, and the
installer's git configuration.

The Docker runner (scripts/runner.sh init config) asked for one price
and stored it under a key the node no longer has, so the file it wrote
had no prices, and the node refused to start with it until the operator
set gigabyte_prices and hourly_prices by hand. It now asks for the
gigabyte and hourly prices, offering the installer's defaults, and no
longer asks for a provider. The default price it offered came from a
legacy endpoint that now fails, and the runner stopped there, before
its first question; that lookup is gone.

dvpnd config set, for the node's file and every protocol's, refuses a
key the file does not have, with an error naming it, and leaves the
file as it was. It used to save the file without the key and exit 0,
so a misspelt key was lost without a word.

Running the installer again no longer adds another safe.directory entry
for the source tree to root's git configuration: a run leaves one
entry, folds in the copies earlier runs left, and keeps the operator's
own entries.

Upgrade by re-running the installer. Docker nodes: download runner.sh
again before running init, and take the new image with runner.sh
update.

dvpnd 9.4.1

Choose a tag to compare

@proofoftrinity proofoftrinity released this 09 Oct 07:06
v9.4.1
16cf3c3

Four fixes, and the move to the account's new name.

Usage that moved in the download direction only is now stored and
reported. A pass of the usage job that saw a peer's download grow while
its upload stayed the same skipped that peer, so the traffic was never
reported to the chain and never paid, and the check that removes a peer
past its allocation did not run for it.

A start that fails once the VPN service is up now stops the service.
An error opening the database, or a chain that could not be reached
while the node registered, left the protocol program and its firewall
rules running until the next start.

A command that fails now exits with a non-zero status. Every dvpnd
command exited 0, failures included, so the installer could not notice
a step that failed, and systemd reported a node that could not start as
deactivated successfully.

The installer waits while another apt run holds the package manager,
as unattended-upgrades does in a fresh server's first minutes. Its
first apt-get used to fail there, and the install stopped.

The repository moved to github.com/proofoftrinity/dvpnd: the GitHub
account was renamed from trinitystake. The module path is now
github.com/proofoftrinity/dvpnd/v9, release images are published as
ghcr.io/proofoftrinity/dvpnd and signed under that name, and the
installer clones from the new name. The key that signs the release
tags is unchanged. Images up to 9.4.0 verify under the old name
(docs/operator.md, section 7).

Also: four files inherited from upstream now say they were changed, and
a regression suite (docs/invariants/, test/README.md) ties each rule the
node keeps to a test that fails when the rule is broken.

Upgrade by re-running the installer, downloaded again first: a copy
saved before the rename fetches from the old name. Docker nodes take
the image from ghcr.io/proofoftrinity/dvpnd; the old name no longer
resolves.

dvpnd 9.4.0

Choose a tag to compare

@proofoftrinity proofoftrinity released this 03 Oct 05:14
v9.4.0
ac95af6

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).

dvpnd 9.3.2

Choose a tag to compare

@proofoftrinity proofoftrinity released this 02 Oct 11:18
v9.3.2
3cac751

The node's log no longer names visitors whose TLS connection fails.

Go's HTTP server printed connection problems itself, whatever the node's
log level, with the remote address ("http: TLS handshake error from ...").
On a live node they came from an internet scanner probing the API port,
but a client whose TLS handshake failed would have been logged the same
way. These lines now appear only when the node runs with --log_level
debug, like every other line that names a client.

Upgrade by re-running the installer.

dvpnd 9.3.1

Choose a tag to compare

@proofoftrinity proofoftrinity released this 02 Oct 08:01
v9.3.1
ea1a6a3

Installing with --recover no longer prints the mnemonic back.

dvpnd keys add --recover, which the installer runs for --recover,
printed the mnemonic it had just been given as if it were a new key,
leaving it in the terminal's scrollback and in any log of the install. A
new key still shows its mnemonic once, as its only backup.

Found while reinstalling a live node from scratch by the docs.sentinel.co
guide; that run also confirmed the guide matches 9.3.0, which this release
otherwise equals. Upgrade by re-running the installer.

dvpnd 9.3.0

Choose a tag to compare

@proofoftrinity proofoftrinity released this 02 Oct 06:20
v9.3.0
de62949

A node keeps no client addresses or session passwords in its records,
refuses handshakes that would expose them, and runs sandboxed.

  • Logs: at the default level no client IP addresses, and peer keys (for
    V2Ray, XRAY, Hysteria2 and OpenVPN the UUID a client's session logs in
    with) only as a short tag. The OpenVPN, XRAY and Hysteria2 daemons log
    errors only; run the node with --log_level debug to get both back
    while chasing a fault. The GeoIP token no longer appears in the
    startup log.
  • Database: data.db overwrites deleted sessions and is compacted at
    every start.
  • Handshakes: HTTPS only (403, code 11, over plain HTTP; the status
    pages answer either way) and at most 30 a minute from one address or
    IPv6 /64 (429, code 12). The web server now drops silent and slow
    connections and caps request bodies at 64 KiB.
  • Handshake DNS (hnsd): listens on the node's tunnel address only
    instead of every address, is off by default, and is restarted after a
    pause instead of in a loop. With ufw, allow port 53 on the tunnel
    interface.
  • systemd: the unit sandboxes the node (system read-only except its home
    and the tunnel configuration folders, private /tmp, no privilege
    gain). Host installs: copy the new scripts/dvpnd.service and run
    systemctl daemon-reload. A node home other than /root/.dvpnd goes in
    both ExecStart and ReadWritePaths; the installer does this.

Tested end to end on a live node, under the sandbox, with paid sessions
over Hysteria2, XRAY (TLS and REALITY), V2Ray, WireGuard and both
AmneziaWG tiers. The e2e driver can now test any node (-node) and
AmneziaWG clients (-awg-version).

The node API level stays 9: clients that use the advertised https
address need no change.

dvpnd 9.2.1

Choose a tag to compare

@proofoftrinity proofoftrinity released this 30 Sep 12:20
v9.2.1
9865186

AmneziaWG and Hysteria2 nodes pass the network's health probe again.

An AmneziaWG node handed every client an address in 10.8.0.0/24, the
subnet most WireGuard servers use, and the probe failed it with
"Handshake failed". Each tier now derives tunnel subnets of its own from
its key (a 10.x.y.0/24 and an IPv6 unique local /120). Existing
amneziawg.toml files get them on upgrade, and ipv4_subnet and
ipv6_subnet override them.

A Hysteria2 node's handshake entry carried three keys other nodes do not
send, and its certificate pin as plain hex. It now sends only port,
tls_pin (colon-separated hex) and obfs_password.

The systemd unit sets KillMode=mixed, so a userspace AmneziaWG tunnel no
longer leaves its NAT rules behind on every restart. Host installs: copy
the new scripts/dvpnd.service and run systemctl daemon-reload. Rules left
by earlier restarts go away with a reboot.

Also in this release: scripts/install.sh, an installer for a host, VPS
or at home.