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