Skip to content

Knoten_0.3.1-alpha

Pre-release
Pre-release

Choose a tag to compare

@Yacin1102 Yacin1102 released this 04 Nov 21:15
· 13 commits to main since this release

One config file, with peer memory

meshd now keeps everything in /etc/knoten/meshd.json: settings, private key, VPN address and peers. The state file is gone, and there are no more standalone and coordinated modes.

Peers from the coordination server are saved in that file, so after a restart the tunnel comes back with them, even if the server is down.

A coordination server is used when server_url is set. Peers you add yourself work with or without one.

Each peer has a source:

  • static: added by you, meshd never touches it
  • synced: from the server, kept up to date by meshd
  • blocked: never added to the tunnel, even if the server sends it

Each public key can only appear once. To keep a server peer, change it to static. To drop it, change it to blocked.

meshd checks the file every 5 seconds and applies your edits without a restart. Only changes to server_url, join_token, token_file, mtu and private_key need one. If the file has a mistake, meshd logs it, keeps running with the last working settings and doesn't write to the file until you fix it.

Other changes

  • -setup now creates the key and prints the public key, so -setup -force gives the machine a new identity.
  • Setup no longer asks whether to use a server. Leave the URL empty to run without one. You can add peers by hand either way.
  • -show-key reads the key from meshd.json.
  • -print-default-config is gone. The README explains every field.
  • Unknown fields and duplicate keys in meshd.json are now errors.