2

I want to set a certain DSCP (or ToS) value on all packets sent over port 22. I have an iptables command to do so, but Mavericks only has the equivalent of pfctl and I can't figure out how to translate the command to pf. Can anyone help?

How can I apply this setting, but using pfctl instead of iptables:

iptables -A OUTPUT -p tcp -m tcp --sport 22 -j DSCP --set-dscp 0x10

Thanks

1 Answer 1

-1

man pf.conf

tos | This rule applies to packets with the specified TOS bits set. TOS may be given as one of lowdelay, throughput, reliability, or as either hex or decimal.

       For example, the following rules are identical:

             pass all tos lowdelay
             pass all tos 0x10
             pass all tos 16
1
  • The OP asked how to set TOS, not filter by it.
    – IanB
    May 6, 2017 at 6:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .