Repository navigation
Knoten_0.3.1-alpha
Pre-releaseOne 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,meshdnever touches itsynced: from the server, kept up to date bymeshdblocked: 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
-setupnow creates the key and prints the public key, so-setup -forcegives 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-keyreads the key frommeshd.json.-print-default-configis gone. The README explains every field.- Unknown fields and duplicate keys in
meshd.jsonare now errors.