Hey,
I'm testing that rule from calomel blog https://calomel.org/pf_hfsc.html
I want to achieve possibility to traffic shaping per port. I see in the rule above that bandwidth is shaping for services like DNS, SSH, web, mail. Is it possible to traffic shaping per port for example 3344 or 5566 or 5555 etc ? If not could you give me some recipe how to do it with PF?
Thank you,
I'm testing that rule from calomel blog https://calomel.org/pf_hfsc.html
Code:
### FIOS Upload = 20Mb/s (queue at 97%)
altq on $ExtIf bandwidth 19.40Mb hfsc queue { ack, dns, ssh, web, mail, bulk, bittor, spamd }
queue ack bandwidth 30% qlimit 500 hfsc (realtime 20%)
queue dns bandwidth 5% qlimit 500 hfsc (realtime 5%)
queue ssh bandwidth 20% qlimit 500 hfsc (realtime 20%) {ssh_login, ssh_bulk}
queue ssh_login bandwidth 50% qlimit 500 hfsc
queue ssh_bulk bandwidth 50% qlimit 500 hfsc
queue bulk bandwidth 20% qlimit 500 hfsc (realtime 20% default, ecn)
queue web bandwidth 5% qlimit 500 hfsc (realtime (10%, 10000, 5%))
queue mail bandwidth 5% qlimit 500 hfsc (realtime 5%)
queue bittor bandwidth 1% qlimit 500 hfsc (upperlimit 95%)
queue spamd bandwidth 1% qlimit 500 hfsc (upperlimit 1Kb)
I want to achieve possibility to traffic shaping per port. I see in the rule above that bandwidth is shaping for services like DNS, SSH, web, mail. Is it possible to traffic shaping per port for example 3344 or 5566 or 5555 etc ? If not could you give me some recipe how to do it with PF?
Thank you,