gistfile1.txt
· 2.6 KiB · Text
Ham
────────────────────────────────────────────────
wgctl Test Suite
────────────────────────────────────────────────
List
──────────────────────────────────────────────────
✅ list
✅ list --online
✅ list --offline
✅ list --blocked
✅ list --type phone
✅ list --type guest
✅ list --name phone-nuno
Inspect
──────────────────────────────────────────────────
DEBUG: test 1
✅ inspect --name phone-nuno
DEBUG: test 2
✅ inspect --name nuno --type phone
DEBUG: test 3
✅ inspect --name phone-nuno --config
DEBUG: test 4
⚠️ inspect nonexistent peer (skipped — known fd issue)
DEBUG: test 5
Config & QR
──────────────────────────────────────────────────
✅ config --name phone-nuno
✅ config --name nuno --type phone
✅ qr --name phone-nuno
Rules
──────────────────────────────────────────────────
✅ rule list
✅ rule show --name guest
✅ rule show --name guest --peers
✅ rule show --name user
✅ rule show --name admin
⚠️ rule show nonexistent (skipped — known fd issue)
Groups
──────────────────────────────────────────────────
✅ group list
✅ group show --name family
⚠️ group show nonexistent (skipped — known fd issue)
Audit
──────────────────────────────────────────────────
✅ audit
✅ audit --peer phone-nuno
✅ audit --type phone
Logs
──────────────────────────────────────────────────
✅ logs
✅ logs --name phone-nuno
✅ logs --type guest
✅ logs --fw
✅ logs --wg
Firewall
──────────────────────────────────────────────────
✅ fw list
root@wireguard:/etc/wireguard/wgctl#
| 1 | ──────────────────────────────────────────────── |
| 2 | wgctl Test Suite |
| 3 | ──────────────────────────────────────────────── |
| 4 | |
| 5 | List |
| 6 | ────────────────────────────────────────────────── |
| 7 | ✅ list |
| 8 | ✅ list --online |
| 9 | ✅ list --offline |
| 10 | ✅ list --blocked |
| 11 | ✅ list --type phone |
| 12 | ✅ list --type guest |
| 13 | ✅ list --name phone-nuno |
| 14 | |
| 15 | Inspect |
| 16 | ────────────────────────────────────────────────── |
| 17 | DEBUG: test 1 |
| 18 | ✅ inspect --name phone-nuno |
| 19 | DEBUG: test 2 |
| 20 | ✅ inspect --name nuno --type phone |
| 21 | DEBUG: test 3 |
| 22 | ✅ inspect --name phone-nuno --config |
| 23 | DEBUG: test 4 |
| 24 | ⚠️ inspect nonexistent peer (skipped — known fd issue) |
| 25 | DEBUG: test 5 |
| 26 | |
| 27 | Config & QR |
| 28 | ────────────────────────────────────────────────── |
| 29 | ✅ config --name phone-nuno |
| 30 | ✅ config --name nuno --type phone |
| 31 | ✅ qr --name phone-nuno |
| 32 | |
| 33 | Rules |
| 34 | ────────────────────────────────────────────────── |
| 35 | ✅ rule list |
| 36 | ✅ rule show --name guest |
| 37 | ✅ rule show --name guest --peers |
| 38 | ✅ rule show --name user |
| 39 | ✅ rule show --name admin |
| 40 | ⚠️ rule show nonexistent (skipped — known fd issue) |
| 41 | |
| 42 | Groups |
| 43 | ────────────────────────────────────────────────── |
| 44 | ✅ group list |
| 45 | ✅ group show --name family |
| 46 | ⚠️ group show nonexistent (skipped — known fd issue) |
| 47 | |
| 48 | Audit |
| 49 | ────────────────────────────────────────────────── |
| 50 | ✅ audit |
| 51 | ✅ audit --peer phone-nuno |
| 52 | ✅ audit --type phone |
| 53 | |
| 54 | Logs |
| 55 | ────────────────────────────────────────────────── |
| 56 | ✅ logs |
| 57 | ✅ logs --name phone-nuno |
| 58 | ✅ logs --type guest |
| 59 | ✅ logs --fw |
| 60 | ✅ logs --wg |
| 61 | |
| 62 | Firewall |
| 63 | ────────────────────────────────────────────────── |
| 64 | ✅ fw list |
| 65 | root@wireguard:/etc/wireguard/wgctl# |