gistfile1.txt
· 5.4 KiB · Text
Surowy
oot@wireguard:/etc/wireguard# wgctl group add --name test-group-123 --desc "test"
=> OK: ✅ 🔒 Group created: test-group-123
root@wireguard:/etc/wireguard# wgctl group show --name test-group-123
────────────────────────────────────────────────
Group: test-group-123
────────────────────────────────────────────────
Description: test
Peers: 0 peers
—
root@wireguard:/etc/wireguard# wgctl group remove --name test-group-123 --force
=> OK: ✅ 🔒 Group removed: test-group-123
root@wireguard:/etc/wireguard# wgctl group add --name test-rename-src
=> OK: ✅ 🔒 Group created: test-rename-src
root@wireguard:/etc/wireguard# wgctl group rename --name test-rename-src --new-name test-rename-dst
/etc/wireguard/wgctl/commands/group/helpers.sh: line 53: json::rename_group: command not found
=> OK: ✅ 🔒 Group renamed: test-rename-src → test-rename-dst
root@wireguard:/etc/wireguard# wgctl group list
────────────────────────────────────────────────
Groups
────────────────────────────────────────────────
arctic - 0 peers inactive
family - 3 peers active
test-group - 0 peers inactive
test-rename-src - 0 peers inactive
test - 1 peer active
test2 - 0 peers inactive
root@wireguard:/etc/wireguard# wgctl group remove --name test-rename-dst --force
=> ERROR: ❌ Group not found: test-rename-dst
root@wireguard:/etc/wireguard# wgctl group peer --name family --peer phone-nuno --action remove
/etc/wireguard/wgctl/commands/group/helpers.sh: line 76: json::group_remove_peer: command not found
=> OK: ✅ 🔒 Removed 'phone-nuno' from group 'family'
root@wireguard:/etc/wireguard# wgctl group list
────────────────────────────────────────────────
Groups
────────────────────────────────────────────────
arctic - 0 peers inactive
family - 3 peers active
test-group - 0 peers inactive
test-rename-src - 0 peers inactive
test - 1 peer active
test2 - 0 peers inactive
root@wireguard:/etc/wireguard# wgctl group peer --name family --peer phone-nuno --action add
=> WARN: ⚠️ 🔒 Peer 'phone-nuno' is already in group 'family'
root@wireguard:/etc/wireguard# wgctl group purge-stale --all --dry-run
/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 188: group::list_stale_peers: command not found
=> WARN: ⚠️ 🔒 Dry run — no changes made
root@wireguard:/etc/wireguard# wgctl group audit
────────────────────────────────────────────────
Group Audit
────────────────────────────────────────────────
/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
arctic 0 peers
/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
test-group 0 peers
/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
test2 0 peers
/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
test-rename-src 0 peers
/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
family 0 peers
/etc/wireguard/wgctl/commands/group/helpers.sh: line 224: group::list_stale_peers: command not found
/etc/wireguard/wgctl/commands/group/helpers.sh: line 225: group::peer_count: command not found
test 0 peers
| 1 | oot@wireguard:/etc/wireguard# wgctl group add --name test-group-123 --desc "test" |
| 2 | => OK: ✅ 🔒 Group created: test-group-123 |
| 3 | root@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 | |
| 14 | root@wireguard:/etc/wireguard# wgctl group remove --name test-group-123 --force |
| 15 | => OK: ✅ 🔒 Group removed: test-group-123 |
| 16 | root@wireguard:/etc/wireguard# wgctl group add --name test-rename-src |
| 17 | => OK: ✅ 🔒 Group created: test-rename-src |
| 18 | root@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 |
| 21 | root@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 | |
| 34 | root@wireguard:/etc/wireguard# wgctl group remove --name test-rename-dst --force |
| 35 | => ERROR: ❌ Group not found: test-rename-dst |
| 36 | root@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' |
| 39 | root@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 | |
| 52 | root@wireguard:/etc/wireguard# wgctl group peer --name family --peer phone-nuno --action add |
| 53 | => WARN: ⚠️ 🔒 Peer 'phone-nuno' is already in group 'family' |
| 54 | root@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 |
| 62 | root@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 |