Re:Tutorial sites treating FreeBSD like a Linux distro
by patrec on Monday July 13, 2020 @12:29PM
(#23822577)
I'm not saying you wouldn't desire something like pf when using linux. Of course you would. But in the grand scheme of things, I don't see many people choosing FreeBSD over Linux for pf unless they want a firewall box.
I begrudge the notion though, that desiring something like pf is because you primarily want a firewall box; the syntax is much cleaner and ultimately the performance is better (without bolt-ons like conntrack).
For example these are basic firewalls with rate limiting
pf: https://git.drk.sc/darkscience/ds-salt/-/blob/master/states/...
iptables: https://git.drk.sc/darkscience/ds-salt/-/blob/master/states/...
here's what we have for nft: https://git.drk.sc/darkscience/playbooks/-/blob/a09507e2a9b6...