nuno zrewidował ten Gist 1 month ago. Przejdź do rewizji
1 file changed, 105 insertions
gistfile1.txt(stworzono plik)
| @@ -0,0 +1,105 @@ | |||
| 1 | + | Unblocking: | |
| 2 | + | ||
| 3 | + | root@wireguard:~# wgctl group unblock --name test | |
| 4 | + | ||
| 5 | + | => DEBUG: 🔍 _unblock_peer: restoring phone-test | |
| 6 | + | ||
| 7 | + | => DEBUG: 🔍 Unblocked all traffic from: 10.1.3.5 | |
| 8 | + | ||
| 9 | + | => DEBUG: 🔍 flush_peer: starting for 10.1.3.5 | |
| 10 | + | ||
| 11 | + | => DEBUG: 🔍 flush_peer: removed 0 FORWARD rules for: 10.1.3.5 | |
| 12 | + | ||
| 13 | + | => DEBUG: 🔍 Unwatched client: phone-test | |
| 14 | + | ||
| 15 | + | => DEBUG: 🔍 Added peer to server config: phone-test | |
| 16 | + | ||
| 17 | + | => DEBUG: 🔍 WireGuard config reloaded | |
| 18 | + | ||
| 19 | + | => DEBUG: 🔍 _unblock_peer: done | |
| 20 | + | ||
| 21 | + | => DEBUG: 🔍 _unblock_peer: restoring phone-test1 | |
| 22 | + | ||
| 23 | + | => DEBUG: 🔍 Unblocked all traffic from: 10.1.3.6 | |
| 24 | + | ||
| 25 | + | => DEBUG: 🔍 flush_peer: starting for 10.1.3.6 | |
| 26 | + | ||
| 27 | + | => DEBUG: 🔍 flush_peer: removed 0 FORWARD rules for: 10.1.3.6 | |
| 28 | + | ||
| 29 | + | => DEBUG: 🔍 Unwatched client: phone-test1 | |
| 30 | + | ||
| 31 | + | => DEBUG: 🔍 Added peer to server config: phone-test1 | |
| 32 | + | ||
| 33 | + | => DEBUG: 🔍 WireGuard config reloaded | |
| 34 | + | ||
| 35 | + | => DEBUG: 🔍 _unblock_peer: done | |
| 36 | + | ||
| 37 | + | => WARN: ⚠️ 🔒 phone-test — not blocked | |
| 38 | + | ||
| 39 | + | => WARN: ⚠️ 🔒 phone-test1 — not blocked | |
| 40 | + | ||
| 41 | + | root@wireguard:~# cat /etc/wireguard/.wgctl/blocks/phone-test.block | |
| 42 | + | ||
| 43 | + | cat: /etc/wireguard/.wgctl/blocks/phone-test.block: No such file or directory | |
| 44 | + | ||
| 45 | + | ||
| 46 | + | ||
| 47 | + | root@wireguard:~# wgctl group block --name test | |
| 48 | + | ||
| 49 | + | => DEBUG: 🔍 Blocked all traffic from: 10.1.3.5 | |
| 50 | + | ||
| 51 | + | => DEBUG: 🔍 Watching: phone-test ((none)) | |
| 52 | + | ||
| 53 | + | => DEBUG: 🔍 Removed peer from server config: phone-test | |
| 54 | + | ||
| 55 | + | => DEBUG: 🔍 WireGuard config reloaded | |
| 56 | + | ||
| 57 | + | => DEBUG: 🔍 Blocked all traffic from: 10.1.3.6 | |
| 58 | + | ||
| 59 | + | => DEBUG: 🔍 Watching: phone-test1 ((none)) | |
| 60 | + | ||
| 61 | + | => DEBUG: 🔍 Removed peer from server config: phone-test1 | |
| 62 | + | ||
| 63 | + | => DEBUG: 🔍 WireGuard config reloaded | |
| 64 | + | ||
| 65 | + | => INFO: 🚫 🔒 All peers from test have been blocked (2 peers). | |
| 66 | + | ||
| 67 | + | root@wireguard:~# cat /etc/wireguard/.wgctl/blocks/phone-test.block | |
| 68 | + | ||
| 69 | + | { | |
| 70 | + | ||
| 71 | + | "peer_ip": "10.1.3.5", | |
| 72 | + | ||
| 73 | + | "blocked_direct": false, | |
| 74 | + | ||
| 75 | + | "blocked_by_groups": [ | |
| 76 | + | ||
| 77 | + | "test" | |
| 78 | + | ||
| 79 | + | ], | |
| 80 | + | ||
| 81 | + | "rules": [ | |
| 82 | + | ||
| 83 | + | { | |
| 84 | + | ||
| 85 | + | "type": "full", | |
| 86 | + | ||
| 87 | + | "name": "full block" | |
| 88 | + | ||
| 89 | + | } | |
| 90 | + | ||
| 91 | + | ] | |
| 92 | + | ||
| 93 | + | } | |
| 94 | + | ||
| 95 | + | ||
| 96 | + | ||
| 97 | + | => INFO: 🚫 🔒 All peers from test have been blocked (2 peers). | |
| 98 | + | ||
| 99 | + | root@wireguard:~# wgctl group block --name test | |
| 100 | + | ||
| 101 | + | => INFO: 🚫 🔒 All peers from test have been blocked (2 peers). | |
| 102 | + | ||
| 103 | + | root@wireguard:~# wgctl group block --name test | |
| 104 | + | ||
| 105 | + | => INFO: 🚫 🔒 All peers from test have been blocked (2 peers). | |
Nowsze
Starsze