Comparing firewall syntax for SSH (port 22) with default-deny:
================================================

(Linux)
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -P INPUT DROP

(Linux)
nft add rule inet my_filter input tcp dport 22 accept
nft add rule inet my_filter input drop

(Linux - simplified frontend to iptables)
ufw allow 22/tcp
ufw default deny incoming

(OpenBSD)
pass in proto tcp to port 22
block all

pf’s syntax feels so elegant, human-readable, & minimal!

After 20years scripting iptables, I’m ready to try UFW on my laptop.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://snac.bsd.cafe/r1w1s1/p/1744940033.555056 on your instance and quote it. (Note that quoting is not supported in Mastodon.)