gistfile1.txt
· 1.5 KiB · Text
原始檔案
wgctl group block --name test
/etc/wireguard/wgctl/core/json_helper.py
=> DEBUG: 🔍 Blocked all traffic from: 10.1.3.5
=> DEBUG: 🔍 apply_full: calling block::add_rule for phone-test 10.1.3.5
=> DEBUG: 🔍 block::add_rule: file=/etc/wireguard/.wgctl/blocks/phone-test.block type=full name=full block
=> DEBUG: 🔍 block::add_rule: done, file contents:
{
"peer_ip": "10.1.3.5",
"blocked_direct": false,
"blocked_by_groups": [
"test"
],
"rules": [
{
"type": "full",
"name": "full block"
}
]
}=> DEBUG: 🔍 apply_full: after block::add_rule
=> DEBUG: 🔍 Watching: phone-test ((none))
=> DEBUG: 🔍 Removed peer from server config: phone-test
=> DEBUG: 🔍 WireGuard config reloaded
/etc/wireguard/wgctl/core/json_helper.py
=> DEBUG: 🔍 Blocked all traffic from: 10.1.3.6
=> DEBUG: 🔍 apply_full: calling block::add_rule for phone-test1 10.1.3.6
=> DEBUG: 🔍 block::add_rule: file=/etc/wireguard/.wgctl/blocks/phone-test1.block type=full name=full block
=> DEBUG: 🔍 block::add_rule: done, file contents:
{
"peer_ip": "10.1.3.6",
"blocked_direct": false,
"blocked_by_groups": [
"test"
],
"rules": [
{
"type": "full",
"name": "full block"
}
]
}=> DEBUG: 🔍 apply_full: after block::add_rule
=> DEBUG: 🔍 Watching: phone-test1 ((none))
=> DEBUG: 🔍 Removed peer from server config: phone-test1
=> DEBUG: 🔍 WireGuard config reloaded
=> INFO: 🚫 🔒 All peers from test have been blocked (2 peers).
| 1 | wgctl group block --name test |
| 2 | /etc/wireguard/wgctl/core/json_helper.py |
| 3 | => DEBUG: 🔍 Blocked all traffic from: 10.1.3.5 |
| 4 | => DEBUG: 🔍 apply_full: calling block::add_rule for phone-test 10.1.3.5 |
| 5 | => DEBUG: 🔍 block::add_rule: file=/etc/wireguard/.wgctl/blocks/phone-test.block type=full name=full block |
| 6 | => DEBUG: 🔍 block::add_rule: done, file contents: |
| 7 | { |
| 8 | "peer_ip": "10.1.3.5", |
| 9 | "blocked_direct": false, |
| 10 | "blocked_by_groups": [ |
| 11 | "test" |
| 12 | ], |
| 13 | "rules": [ |
| 14 | { |
| 15 | "type": "full", |
| 16 | "name": "full block" |
| 17 | } |
| 18 | ] |
| 19 | }=> DEBUG: 🔍 apply_full: after block::add_rule |
| 20 | => DEBUG: 🔍 Watching: phone-test ((none)) |
| 21 | => DEBUG: 🔍 Removed peer from server config: phone-test |
| 22 | => DEBUG: 🔍 WireGuard config reloaded |
| 23 | /etc/wireguard/wgctl/core/json_helper.py |
| 24 | => DEBUG: 🔍 Blocked all traffic from: 10.1.3.6 |
| 25 | => DEBUG: 🔍 apply_full: calling block::add_rule for phone-test1 10.1.3.6 |
| 26 | => DEBUG: 🔍 block::add_rule: file=/etc/wireguard/.wgctl/blocks/phone-test1.block type=full name=full block |
| 27 | => DEBUG: 🔍 block::add_rule: done, file contents: |
| 28 | { |
| 29 | "peer_ip": "10.1.3.6", |
| 30 | "blocked_direct": false, |
| 31 | "blocked_by_groups": [ |
| 32 | "test" |
| 33 | ], |
| 34 | "rules": [ |
| 35 | { |
| 36 | "type": "full", |
| 37 | "name": "full block" |
| 38 | } |
| 39 | ] |
| 40 | }=> DEBUG: 🔍 apply_full: after block::add_rule |
| 41 | => DEBUG: 🔍 Watching: phone-test1 ((none)) |
| 42 | => DEBUG: 🔍 Removed peer from server config: phone-test1 |
| 43 | => DEBUG: 🔍 WireGuard config reloaded |
| 44 | => INFO: 🚫 🔒 All peers from test have been blocked (2 peers). |