gistfile1.txt
· 1.1 KiB · Text
原始文件
root@wireguard:~# wgctl inspect --name phone-nuno
────────────────────────────────────────────────
Inspect: phone-nuno
────────────────────────────────────────────────
── Client ─)
Name: phone-nuno
IP: 10.1.3.1
Type: phone
Rule: admin
Status: online
Endpoint: 148.69.50.138
Last seen: 2026-05-10 17:57 (handshake)
AllowedIPs: 0.0.0.0/0
Public key: Fo5Y80l5Woh/kqzApU0OeVqaNJUUa17ojG6XH4USnVQ=
── Rule: admin ─)
Description: Full access
DNS Redirect: false
Allows: —
Blocks: — (full access)
── Groups ─)
family 2 peers
── Firewall ─)
Active rules: 0
0
/etc/wireguard/wgctl/commands/inspect.command.sh: line 147: [[: 0
0: syntax error in expression (error token is "0")
| 1 | root@wireguard:~# wgctl inspect --name phone-nuno |
| 2 | |
| 3 | ──────────────────────────────────────────────── |
| 4 | Inspect: phone-nuno |
| 5 | ──────────────────────────────────────────────── |
| 6 | |
| 7 | ── Client ─) |
| 8 | Name: phone-nuno |
| 9 | IP: 10.1.3.1 |
| 10 | Type: phone |
| 11 | Rule: admin |
| 12 | Status: online |
| 13 | Endpoint: 148.69.50.138 |
| 14 | Last seen: 2026-05-10 17:57 (handshake) |
| 15 | AllowedIPs: 0.0.0.0/0 |
| 16 | Public key: Fo5Y80l5Woh/kqzApU0OeVqaNJUUa17ojG6XH4USnVQ= |
| 17 | |
| 18 | ── Rule: admin ─) |
| 19 | Description: Full access |
| 20 | DNS Redirect: false |
| 21 | Allows: — |
| 22 | Blocks: — (full access) |
| 23 | |
| 24 | ── Groups ─) |
| 25 | family 2 peers |
| 26 | |
| 27 | ── Firewall ─) |
| 28 | Active rules: 0 |
| 29 | 0 |
| 30 | /etc/wireguard/wgctl/commands/inspect.command.sh: line 147: [[: 0 |
| 31 | 0: syntax error in expression (error token is "0") |