altq on $if_ppp hfsc bandwidth 170Kb queue { std, ssh, http, ack} queue std bandwidth 25% priority 0 hfsc (default realtime 32Kb upperlimit 170Kb) queue ssh bandwidth 25% priority 5 hfsc (realtime 64Kb upperlimit 160Kb ) queue http bandwidth 25% priority 2 hfsc (realtime 32Kb upperlimit 160Kb ) queue ack bandwidth 25% priority 7 hfsc ( realtime 8Kb upperlimit 160Kb) pass out on $if_ppp proto tcp from any queue (std, ack) pass out on $if_ppp proto tcp from any to port 22 queue (ssh, ack) pass out on $if_ppp proto tcp from any to port {80,443} queue (http,ack)