Last active 1 month ago

Revision cdcfc28a03ed8ea0122d0f9ac266e71d26c42210

gistfile1.txt Raw
1root@wireguard:~# wgctl group block --name test
2=> DEBUG: ๐Ÿ” Blocked all traffic from: 10.1.3.5
3=> DEBUG: ๐Ÿ” Watching: phone-test ((none))
4=> DEBUG: ๐Ÿ” Removed peer from server config: phone-test
5=> DEBUG: ๐Ÿ” WireGuard config reloaded
6=> DEBUG: ๐Ÿ” Blocked all traffic from: 10.1.3.6
7=> DEBUG: ๐Ÿ” Watching: phone-test1 ((none))
8=> DEBUG: ๐Ÿ” Removed peer from server config: phone-test1
9=> DEBUG: ๐Ÿ” WireGuard config reloaded
10=> INFO: ๐Ÿšซ ๐Ÿ”’ All peers from test have been blocked (2 peers).
11root@wireguard:~# cat /etc/wireguard/.wgctl/blocks/phone-test.block
12{
13 "peer_ip": "10.1.3.5",
14 "blocked_direct": false,
15 "blocked_by_groups": [
16 "test"
17 ],
18 "rules": [
19 {
20 "type": "full",
21 "name": "full block"
22 }
23 ]
24root@wireguard:~# wgctl group unblock --name test
25=> DEBUG: ๐Ÿ” After remove_group: is_blocked=false
26root@wireguard:~# cat /etc/wireguard/.wgctl/blocks/phone-test.block
27{
28 "peer_ip": "10.1.3.5",
29 "blocked_direct": false,
30 "blocked_by_groups": [],
31 "rules": [
32 {
33 "type": "full",
34 "name": "full block"
35 }
36 ]