Skip to content

v1.0.0

Latest

Choose a tag to compare

@naggie naggie released this 31 Oct 13:10

New commands and options:

  • dsnet pause <hostname> and dsnet resume <hostname> disable and re-enable
    a peer without removing it. Paused peers still show in the report.
  • Routes for a peer's Networks are now added and removed automatically on
    sync (#21). They are tagged with protocol 213 (ip route show proto 213) so
    other routes on the interface are left alone. A route you already added by
    hand or in PostUp is used as is.
  • dsnet add --ipv4 <ip> --ipv6 <ip> to choose a peer's addresses instead of
    the automatic ones (#89).
  • ClientMTU sets the MTU in generated peer configs. Unset (0) by default
    (#96).

Fixes:

  • Stale IPv4 addresses on the interface are now removed during setup. The old
    check compared each address with itself, so nothing was ever deleted.
  • NixOS output: added the missing server allowed IPs, removed an invalid dns
    line and added endpoint refresh so the tunnel recovers from a DNS failure at
    boot or a dynamic IP change. The refresh is set on the interface, so the
    config also works with the networkd backend.

Things to check when upgrading:

  • dsnet add now rejects hostnames that are not valid RFC 1123 hostnames
    (#91). Existing peers are not affected.
  • A peer network that clashes with a route on another interface (a LAN, the
    default route) now fails the sync with file exists rather than being
    ignored.
  • Extra IPv4 addresses on the dsnet interface are now deleted, as was always
    intended.

Docs: DSNET_CONFIG_FILE for running several networks on one host (#54),
persistent IPv4/IPv6 forwarding including NixOS (#39), and MTU/ClientMTU
in CONFIG.md. Templates now live in lib/templates/ (#66) and there is a test
suite with coverage reporting in CI.

Full Changelog: v0.8.1...v1.0.0