2 ms·
iptables has been supplanted by nftables; though it's not as highly scalable as pf and uses a lot of iptables terminology. I begrudge the notion though, that d
by dijit 6y ago
iptables has been supplanted by nftables; though it's not as highly scalable as pf and uses a lot of iptables terminology.
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/base/security/freebsd/firewall https://git.drk.sc/darkscience/ds-salt/-/blob/master/states/...
iptables: https://git.drk.sc/darkscience/ds-salt/-/blob/master/states/base/security/debian/ipv4-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/a09507e2a9b6e44dcba47b5d4c36a1901a2beac1/roles/firewall/templates/nftables.conf https://git.drk.sc/darkscience/playbooks/-/blob/a09507e2a9b6...
- patrec 6y agoI'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.