update subcmds
This commit is contained in:
parent
cbaabd4579
commit
0e06d0181f
@ -1,6 +1,13 @@
|
|||||||
Purpose: to allow an overview of Darksky peers and provide a mechanism to allow
|
Purpose: to allow an overview of Darksky peers and provide a mechanism to allow
|
||||||
easy joining
|
easy joining
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
OUT OF DATE. See help cmd.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Could use https://github.com/WireGuard/wgctrl-go + json database.
|
Could use https://github.com/WireGuard/wgctrl-go + json database.
|
||||||
Root separation by file deposit.
|
Root separation by file deposit.
|
||||||
|
|
||||||
|
10
cmd/dsnet.go
10
cmd/dsnet.go
@ -24,11 +24,13 @@ func main() {
|
|||||||
case "init":
|
case "init":
|
||||||
dsnet.Init()
|
dsnet.Init()
|
||||||
|
|
||||||
case "up":
|
|
||||||
|
|
||||||
case "add":
|
case "add":
|
||||||
dsnet.Add()
|
dsnet.Add()
|
||||||
|
|
||||||
|
case "up":
|
||||||
|
|
||||||
|
case "update":
|
||||||
|
|
||||||
case "report":
|
case "report":
|
||||||
|
|
||||||
case "down":
|
case "down":
|
||||||
@ -47,8 +49,10 @@ Available commands:
|
|||||||
|
|
||||||
init : Create %s containing default configuration + new keys without loading. Edit to taste.
|
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.
|
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.
|
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 remove an interface or bring it down, use standard tools such as iproute2.
|
||||||
To modify or remove peers, edit %s and then run sync.
|
To modify or remove peers, edit %s and then run sync.
|
||||||
|
Loading…
Reference in New Issue
Block a user