nuno bu gisti düzenledi 1 month ago. Düzenlemeye git
1 file changed, 85 insertions
gistfile1.txt(dosya oluşturuldu)
| @@ -0,0 +1,85 @@ | |||
| 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 | |
Daha yeni
Daha eski