Última atividade 1 month ago

nuno revisou este gist 1 month ago. Ir para a revisão

1 file changed, 36 insertions

gistfile1.txt(arquivo criado)

@@ -0,0 +1,36 @@
1 + root@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).
11 + root@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 + ]
24 + root@wireguard:~# wgctl group unblock --name test
25 + => DEBUG: 🔍 After remove_group: is_blocked=false
26 + root@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 + ]
Próximo Anterior