From 10e803875697570f57ba99f559f3eb09fba4662b Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Fri, 28 Jul 2023 22:25:16 +0300 Subject: [PATCH] Update README.md --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d2057a..0e2a107 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,30 @@ nameserver 1.1.1.1 # Firewall -```ssh +Control + +```sh +pfctl -sr # view rules +pfctl -ss # view state +pfctl -si # view stats +pfctl -sa # view all +``` + +Write Rules + +:floppy_disk: `/etc/pf.conf` + +```sh +lan = stge0 +block out tcp from $lan to any port {80,443} +``` + +Apply rules + +```sh +pfctl -d +pfctl -f /etc/pf.conf +pfctl -e ``` @@ -94,6 +117,10 @@ rcctl status httpd # Check fstat | grep ':80' +httpd -n + +# Test + ``` PHP