gistfile1.txt
· 4.1 KiB · Text
Brut
root@wireguard:/# wgctl group list
────────────────────────────────────────────────
Groups
────────────────────────────────────────────────
NAME DESCRIPTION PEERS STATUS
───────────────────────────────────────────────────────────────────────────
family Family 2 active
root@wireguard:/# wgctl block --name tablet-nuno
────────────────────────────────────────────────
Blocking client: tablet-nuno (10.1.4.1)
────────────────────────────────────────────────
/etc/wireguard/wgctl/commands/block.command.sh: line 123: force: unbound variable
root@wireguard:/# wgctl block --name tablet-nuno --force
────────────────────────────────────────────────
Blocking client: tablet-nuno (10.1.4.1)
────────────────────────────────────────────────
=> INFO: 🚫 🔒 Blocked all traffic from: 10.1.4.1
=> INFO: 🚫 🔒 Persisted block rule for: tablet-nuno
=> INFO: 🔒 Watching: tablet-nuno ((none))
=> INFO: ➖ 🔒 Removed peer from server config: tablet-nuno
=> SUCCESS: ✅ 🔒 WireGuard config reloaded
=> SUCCESS: ✅ 🔒 Client blocked: tablet-nuno
root@wireguard:/# wgctl group list
────────────────────────────────────────────────
Groups
────────────────────────────────────────────────
NAME DESCRIPTION PEERS STATUS
───────────────────────────────────────────────────────────────────────────
family Family 2 1/2 blocked
root@wireguard:/# wgctl block --name tablet-nuno
=> WARN: ⚠️ 🔒 Client is already blocked: tablet-nuno
root@wireguard:/# wgctl unblock --name tablet-nuno
────────────────────────────────────────────────
Unblocking client: tablet-nuno (10.1.4.1)
────────────────────────────────────────────────
=> INFO: ✅ 🔒 Unblocked all traffic from: 10.1.4.1
=> INFO: ✅ 🔒 Removed block file for: tablet-nuno
=> INFO: 🔒 Unwatched client: tablet-nuno
=> INFO: ➕ 🔒 Added peer to server config: tablet-nuno
=> SUCCESS: ✅ 🔒 WireGuard config reloaded
=> SUCCESS: ✅ 🔒 All block rules removed for: tablet-nuno
root@wireguard:/# wgctl group list
────────────────────────────────────────────────
Groups
────────────────────────────────────────────────
NAME DESCRIPTION PEERS STATUS
───────────────────────────────────────────────────────────────────────────
family Family 2 active
| 1 | root@wireguard:/# wgctl group list |
| 2 | |
| 3 | ──────────────────────────────────────────────── |
| 4 | Groups |
| 5 | ──────────────────────────────────────────────── |
| 6 | |
| 7 | NAME DESCRIPTION PEERS STATUS |
| 8 | ─────────────────────────────────────────────────────────────────────────── |
| 9 | family Family 2 active |
| 10 | |
| 11 | root@wireguard:/# wgctl block --name tablet-nuno |
| 12 | |
| 13 | ──────────────────────────────────────────────── |
| 14 | Blocking client: tablet-nuno (10.1.4.1) |
| 15 | ──────────────────────────────────────────────── |
| 16 | /etc/wireguard/wgctl/commands/block.command.sh: line 123: force: unbound variable |
| 17 | root@wireguard:/# wgctl block --name tablet-nuno --force |
| 18 | |
| 19 | ──────────────────────────────────────────────── |
| 20 | Blocking client: tablet-nuno (10.1.4.1) |
| 21 | ──────────────────────────────────────────────── |
| 22 | => INFO: 🚫 🔒 Blocked all traffic from: 10.1.4.1 |
| 23 | => INFO: 🚫 🔒 Persisted block rule for: tablet-nuno |
| 24 | => INFO: 🔒 Watching: tablet-nuno ((none)) |
| 25 | => INFO: ➖ 🔒 Removed peer from server config: tablet-nuno |
| 26 | => SUCCESS: ✅ 🔒 WireGuard config reloaded |
| 27 | => SUCCESS: ✅ 🔒 Client blocked: tablet-nuno |
| 28 | root@wireguard:/# wgctl group list |
| 29 | |
| 30 | ──────────────────────────────────────────────── |
| 31 | Groups |
| 32 | ──────────────────────────────────────────────── |
| 33 | |
| 34 | NAME DESCRIPTION PEERS STATUS |
| 35 | ─────────────────────────────────────────────────────────────────────────── |
| 36 | family Family 2 1/2 blocked |
| 37 | |
| 38 | root@wireguard:/# wgctl block --name tablet-nuno |
| 39 | => WARN: ⚠️ 🔒 Client is already blocked: tablet-nuno |
| 40 | root@wireguard:/# wgctl unblock --name tablet-nuno |
| 41 | |
| 42 | ──────────────────────────────────────────────── |
| 43 | Unblocking client: tablet-nuno (10.1.4.1) |
| 44 | ──────────────────────────────────────────────── |
| 45 | => INFO: ✅ 🔒 Unblocked all traffic from: 10.1.4.1 |
| 46 | => INFO: ✅ 🔒 Removed block file for: tablet-nuno |
| 47 | => INFO: 🔒 Unwatched client: tablet-nuno |
| 48 | => INFO: ➕ 🔒 Added peer to server config: tablet-nuno |
| 49 | => SUCCESS: ✅ 🔒 WireGuard config reloaded |
| 50 | => SUCCESS: ✅ 🔒 All block rules removed for: tablet-nuno |
| 51 | root@wireguard:/# wgctl group list |
| 52 | |
| 53 | ──────────────────────────────────────────────── |
| 54 | Groups |
| 55 | ──────────────────────────────────────────────── |
| 56 | |
| 57 | NAME DESCRIPTION PEERS STATUS |
| 58 | ─────────────────────────────────────────────────────────────────────────── |
| 59 | family Family 2 active |