diff --git a/README.md b/README.md index 1359040..a077c6a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ Purpose: to allow an overview of Darksky peers and provide a mechanism to allow easy joining + + +OUT OF DATE. See help cmd. + + + + Could use https://github.com/WireGuard/wgctrl-go + json database. Root separation by file deposit. diff --git a/cmd/dsnet.go b/cmd/dsnet.go index 199f023..cb1e72d 100644 --- a/cmd/dsnet.go +++ b/cmd/dsnet.go @@ -24,11 +24,13 @@ func main() { case "init": dsnet.Init() - case "up": - case "add": dsnet.Add() + case "up": + + case "update": + case "report": case "down": @@ -47,8 +49,10 @@ Available commands: init : Create %s containing default configuration + new keys without loading. Edit to taste. add : Generate configuration for a new peer, adding to %s. Send with passworded ffsend. - sync : Synchronise wireguard configuration with %s, creating and activating interface if necessary. + up : Create the interface, run pre/post up, update + update : Update wireguard configuration with %s, adding/removing peers after validating matching config report : Generate a JSON status report to the location configured in %s. + down : Destroy the interface, run pre/post down To remove an interface or bring it down, use standard tools such as iproute2. To modify or remove peers, edit %s and then run sync.