Colleagues, please explain one aspect that I do not understand.
I study the description of queues, in particular the type of HFSC. For example, I describe a queue:
(This examples from "The Book of PF")
Next, I associate traffic filtering rules with these queues. For example:
In all cases of this example, two queues are specified by name.
I understand why this is done - so that for the same connection, frames of different types (ACK or data) have different priorities.
But I don't understand how pf gets information about which queue belongs to which case!
(What if I specify three queues?) Unfortunately, all authors write about this aspect as a matter of course and do not explain it in any way.
Thanks in advance for an explanation,
Ogogon.
I study the description of queues, in particular the type of HFSC. For example, I describe a queue:
Code:
altq on $ext_if bandwidth $ext_bw hfsc queue { main, spamd }
queue main bandwidth 99% priority 7 qlimit 100 hfsc (realtime 20%, linkshare 99%) \
{ q_pri, q_def, q_web, q_dns }
queue q_pri bandwidth 3% priority 7 hfsc (realtime 0, linkshare 3% red )
queue q_def bandwidth 47% priority 1 hfsc (default realtime 30% linkshare 47% red)
queue q_web bandwidth 47% priority 1 hfsc (realtime 30% linkshare 47% red)
queue q_dns bandwidth 3% priority 7 qlimit 100 hfsc (realtime (30Kb 3000 12Kb), \
linkshare 3%)
queue spamd bandwidth 0% priority 0 qlimit 300 hfsc (realtime 0, upperlimit 1%, \
linkshare 1%)
(This examples from "The Book of PF")
Next, I associate traffic filtering rules with these queues. For example:
Code:
match out on $ext_if from $air_if:network nat-to ($ext_if) queue (q_def, q_pri)
match out on $ext_if from $int_if:network nat-to ($ext_if) queue (q_def, q_pri)
match out on $ext_if proto tcp to port { www https } queue (q_web, q_pri)
match out on $ext_if proto { tcp udp } to port domain queue (q_dns, q_pri)
match out on $ext_if proto icmp queue (q_dns, q_pri)
In all cases of this example, two queues are specified by name.
I understand why this is done - so that for the same connection, frames of different types (ACK or data) have different priorities.
But I don't understand how pf gets information about which queue belongs to which case!
(What if I specify three queues?) Unfortunately, all authors write about this aspect as a matter of course and do not explain it in any way.
Thanks in advance for an explanation,
Ogogon.