From b88a0f9c822970748546ce4e2000cf2db0d3bfdc Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Sun, 28 Feb 2021 17:03:59 +0100 Subject: [PATCH] Add label in example and how to use it --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a79181..496f555 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,13 @@ blocking_tcp="{ 21 23 53 111 135 137:139 445 1433 25565 5432 3389 3306 27019 }" table persist pass in quick on egress proto tcp to port $blocking_tcp rdr-to 127.0.0.1 port 666 -block in quick from +block in quick from label iblock ``` Done! You can see IP banned using `pfctl -t blocked -T show` and iBlock will log blocking too. +In the example I added a label to the block rule, you can use `pfctl -s labels` to view statistics from this rule, [see documentation for column meaning](https://man.openbsd.org/pfctl#s~8). + # TODO