Last active 1 month ago

Revision 7be609938b81b47b9a1c19bd609ae83c9ab3cdb3

gistfile1.txt Raw
1oot@wireguard:/etc/wireguard# wgctl group add --name test-group-123 --desc "test"
2=> OK: βœ… πŸ”’ Group created: test-group-123
3root@wireguard:/etc/wireguard# wgctl group show --name test-group-123
4
5────────────────────────────────────────────────
6 Group: test-group-123
7────────────────────────────────────────────────
8
9 Description: test
10 Peers: 0 peers
11
12 β€”
13
14root@wireguard:/etc/wireguard# wgctl group remove --name test-group-123 --force
15=> OK: βœ… πŸ”’ Group removed: test-group-123
16root@wireguard:/etc/wireguard# wgctl group add --name test-rename-src
17=> OK: βœ… πŸ”’ Group created: test-rename-src
18root@wireguard:/etc/wireguard# wgctl group rename --name test-rename-src --new-name test-rename-dst
19/etc/wireguard/wgctl/commands/group/helpers.sh: line 53: json::rename_group: command not found
20=> OK: βœ… πŸ”’ Group renamed: test-rename-src β†’ test-rename-dst
21root@wireguard:/etc/wireguard# wgctl group list
22
23────────────────────────────────────────────────
24 Groups
25────────────────────────────────────────────────
26
27 arctic - 0 peers inactive
28 family - 3 peers active
29 test-group - 0 peers inactive
30 test-rename-src - 0 peers inactive
31 test - 1 peer active
32 test2 - 0 peers inactive
33
34root@wireguard:/etc/wireguard# wgctl group remove --name test-rename-dst --force
35=> ERROR: ❌ Group not found: test-rename-dst
36root@wireguard:/etc/wireguard# wgctl group peer --name family --peer phone-nuno --action remove
37/etc/wireguard/wgctl/commands/group/helpers.sh: line 76: json::group_remove_peer: command not found
38=> OK: βœ… πŸ”’ Removed 'phone-nuno' from group 'family'
39root@wireguard:/etc/wireguard# wgctl group list
40
41────────────────────────────────────────────────
42 Groups
43────────────────────────────────────────────────
44
45 arctic - 0 peers inactive
46 family - 3 peers active
47 test-group - 0 peers inactive
48 test-rename-src - 0 peers inactive
49 test - 1 peer active
50 test2 - 0 peers inactive
51
52root@wireguard:/etc/wireguard# wgctl group peer --name family --peer phone-nuno --action add
53=> WARN: ⚠️ πŸ”’ Peer 'phone-nuno' is already in group 'family'
54root@wireguard:/etc/wireguard# wgctl group purge-stale --all --dry-run
55/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
56/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
57/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
58/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
59/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
60/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
61=> WARN: ⚠️ πŸ”’ Dry run β€” no changes made
62root@wireguard:/etc/wireguard# wgctl group audit
63
64────────────────────────────────────────────────
65 Group Audit
66────────────────────────────────────────────────
67
68/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
69/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
70 arctic 0 peers
71/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
72/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
73 test-group 0 peers
74/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
75/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
76 test2 0 peers
77/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
78/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
79 test-rename-src 0 peers
80/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
81/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
82 family 0 peers
83/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
84/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
85 test 0 peers