9 ms·
On performance, it depends a bit. If you're running a stateful firewall, those generally don't evaluate firewall rules for established states, and most of your
by toast0 3y ago
On performance, it depends a bit.
If you're running a stateful firewall, those generally don't evaluate firewall rules for established states, and most of your traffic is to established states, so no big deal.
If you're not running a stateful firewall, it's not totally unreasonable to skip the firewall for tcp packets with ACK and not SYN, so again no big deal on those. But http/3 is udp, so no shortcuts there.
Afaik, most firewalls have a lookup table available, you'd want to use that, rather than 2 million rules. On FreeBSD, ipfw and pf have lookup tables, ipf calls them pools, but it looks like the same thing. A lookup table for IP addresses is pretty fast, even with 2M entries.
- vladvasiliu 3y ago> But http/3 is udp, so no shortcuts there. Usually stateful firewalls create a "state" for UDP connections, so "shortcuts" are still possible. See, for example, pf: https://www.openbsd.org/faq/pf/filter.html#udpstate https://www.openbsd.org/faq/pf/filter.html#udpstate