> > It occurs to me that in my originally proposed configuration, I am not > > limiting the traffic with the two priorities to TCP traffic. This is > > necessary as this optimization applies only to TCP traffic and I should note > > that in Peter Hansteen's book he also does this. > > Good that you noticed that, but it's unnecessary. pf is smart enough to know > what traffic to apply it to. It's good to compare the output of pfctl(8) to > know > exactly what's changing and how things are getting parsed (`pfctl -s rules`, > `pfctl -nvf /etc/pf.conf`).
I should clarify: without changing it to `proto tcp` like you did, it may indeed make a (small) difference because it could match UDP packets with a TOS of lowdelay as well. For me this is fine, as I'm comfortable with those UDP packets getting prioritized in addition to the TCP packets that match the rule. I didn't like the way I wrote it because it almost implies that they do the same thing and there's a difference. -- https://www.anthes.is/

