最終更新 1 month ago

nuno revised this gist 1 month ago. Go to revision

1 file changed, 67 insertions

gistfile1.txt(file created)

@@ -0,0 +1,67 @@
1 + root@wireguard:/# wgctl group block --name family
2 +
3 + ────────────────────────────────────────────────
4 + Blocking group: family
5 + ────────────────────────────────────────────────
6 + => SUCCESS: ✅ 🔒 phone-nuno has been blocked.
7 + => SUCCESS: ✅ 🔒 tablet-nuno has been blocked.
8 + => INFO: 🚫 🔒 All peers from family have been blocked (2 peers).
9 + root@wireguard:/# wgctl group unblock --name family
10 +
11 + ────────────────────────────────────────────────
12 + Unblocking group: family
13 + ────────────────────────────────────────────────
14 + => SUCCESS: ✅ 🔒 phone-nuno has been unblocked.
15 + => SUCCESS: ✅ 🔒 tablet-nuno has been unblocked.
16 + => INFO: ✅ 🔒 All peers from family have been unblocked (2 peers).
17 +
18 + root@wireguard:/# wgctl group show --name family
19 +
20 + ────────────────────────────────────────────────
21 + Group: family
22 + ────────────────────────────────────────────────
23 +
24 + Description: Family
25 + Peers: 2
26 + ──────────────────────────────────────────────────
27 +
28 + NAME IP RULE STATUS
29 + ─────────────────────────────────────────────────────────────────
30 + phone-nuno 10.1.3.1 admin active
31 + tablet-nuno 10.1.4.1 user active
32 +
33 + root@wireguard:/# wgctl group show --name family
34 +
35 + ────────────────────────────────────────────────
36 + Group: family
37 + ────────────────────────────────────────────────
38 +
39 + Description: Family
40 + Peers: 2
41 + ──────────────────────────────────────────────────
42 +
43 + NAME IP RULE STATUS
44 + ─────────────────────────────────────────────────────────────────
45 + phone-nuno 10.1.3.1 admin blocked
46 + tablet-nuno 10.1.4.1 user blocked
47 +
48 + root@wireguard:/# wgctl group list
49 +
50 + ────────────────────────────────────────────────
51 + Groups
52 + ────────────────────────────────────────────────
53 +
54 + NAME DESCRIPTION PEERS STATUS
55 + ───────────────────────────────────────────────────────────────────────────
56 + family Family 2 active
57 +
58 + root@wireguard:/# wgctl group list
59 +
60 + ────────────────────────────────────────────────
61 + Groups
62 + ────────────────────────────────────────────────
63 +
64 + NAME DESCRIPTION PEERS STATUS
65 + ───────────────────────────────────────────────────────────────────────────
66 + family Family 2 blocked
67 +
Newer Older