Code:
voipports="{ 5060, 5061, 10000:30000 }" #sipgate ports sip,rtp
altq on $redif priq bandwidth 10.3Mb queue { q_up_voip, q_up_other }
queue q_up_voip priority 7
queue q_up_other priority 1 priq (default)
altq on $greenif priq bandwidth 1000Mb queue { q_down_voip, q_down_other }
queue q_down_voip priority 7
queue q_down_other priority 1 priq (default)
pass out quick on $redif inet proto udp from any to any port $voipports queue q_up_voip
pass out quick on $greenif inet proto udp from any to any port $voipports queue q_down_voip
Code:
pfctl -s queue -v
queue q_up_voip on pppoe0 priority 7
[ pkts: 1246 bytes: 340845 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 ]
queue q_up_other on pppoe0 priq( default )
[ pkts: 136936 bytes: 45973351 dropped pkts: 324 bytes: 422288 ]
[ qlength: 0/ 50 ]
queue q_down_voip on em1 priority 7
[ pkts: 1213 bytes: 260411 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 ]
queue q_down_other on em1 priq( default )
[ pkts: 247538 bytes: 328614595 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 ]
Mache ich es so richtig, wenn ich einfach nur stumpf voip in beide Richtungen priorisieren möchte?