Unblocking:

root@wireguard:~# wgctl group unblock --name test

=> DEBUG: 🔍  _unblock_peer: restoring phone-test

=> DEBUG: 🔍  Unblocked all traffic from: 10.1.3.5

=> DEBUG: 🔍  flush_peer: starting for 10.1.3.5

=> DEBUG: 🔍  flush_peer: removed 0 FORWARD rules for: 10.1.3.5

=> DEBUG: 🔍  Unwatched client: phone-test

=> DEBUG: 🔍  Added peer to server config: phone-test

=> DEBUG: 🔍  WireGuard config reloaded

=> DEBUG: 🔍  _unblock_peer: done

=> DEBUG: 🔍  _unblock_peer: restoring phone-test1

=> DEBUG: 🔍  Unblocked all traffic from: 10.1.3.6

=> DEBUG: 🔍  flush_peer: starting for 10.1.3.6

=> DEBUG: 🔍  flush_peer: removed 0 FORWARD rules for: 10.1.3.6

=> DEBUG: 🔍  Unwatched client: phone-test1

=> DEBUG: 🔍  Added peer to server config: phone-test1

=> DEBUG: 🔍  WireGuard config reloaded

=> DEBUG: 🔍  _unblock_peer: done

=> WARN: ⚠️ 🔒  phone-test — not blocked

=> WARN: ⚠️ 🔒  phone-test1 — not blocked

root@wireguard:~# cat /etc/wireguard/.wgctl/blocks/phone-test.block

cat: /etc/wireguard/.wgctl/blocks/phone-test.block: No such file or directory



root@wireguard:~# wgctl group block --name test

=> DEBUG: 🔍  Blocked all traffic from: 10.1.3.5

=> DEBUG: 🔍  Watching: phone-test ((none))

=> DEBUG: 🔍  Removed peer from server config: phone-test

=> DEBUG: 🔍  WireGuard config reloaded

=> DEBUG: 🔍  Blocked all traffic from: 10.1.3.6

=> 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).

root@wireguard:~# cat /etc/wireguard/.wgctl/blocks/phone-test.block

{

  "peer_ip": "10.1.3.5",

  "blocked_direct": false,

  "blocked_by_groups": [

    "test"

  ],

  "rules": [

    {

      "type": "full",

      "name": "full block"

    }

  ]

}



=> INFO: 🚫 🔒  All peers from test have been blocked (2 peers).

root@wireguard:~# wgctl group block --name test

=> INFO: 🚫 🔒  All peers from test have been blocked (2 peers).

root@wireguard:~# wgctl group block --name test

=> INFO: 🚫 🔒  All peers from test have been blocked (2 peers).