ext_if="fxp1" int_if="fxp0" # table { 10.0.0.0/8, 213.137.48.0/23, 213.137.58.0/24, 88.213.194.0/24 } # scrub in all # altq on $ext_if bandwidth 100Mb cbq queue { def-out, h-q4, h-q5, h-q6, h-q7, h-q8, h-q9 } queue def-out bandwidth 90Mb cbq(default) queue h-q4 bandwidth 512Kb cbq { q4 } queue q4 bandwidth 50% cbq ( borrow ) queue h-q5 bandwidth 512Kb cbq { q5 } queue q5 bandwidth 128Kb cbq ( borrow red ecn) queue h-q6 bandwidth 256Kb cbq { q6 } queue q6 bandwidth 64Kb cbq ( borrow red ecn) queue h-q7 bandwidth 256Kb cbq { q7 } queue q7 bandwidth 64Kb cbq ( borrow red ecn) queue h-q8 bandwidth 256Kb cbq { q8 } queue q8 bandwidth 64Kb cbq ( borrow red ecn) queue h-q9 bandwidth 256Kb cbq { q9 } queue q9 bandwidth 64Kb cbq ( borrow red ecn) # pass in quick on $int_if pass out quick on $int_if # pass in quick on $ext_if pass out quick on $ext_if from any to # pass out on $ext_if from 88.213.194.4 to any keep state queue q4 pass out on $ext_if from 88.213.194.5 to any keep state queue q5 pass out on $ext_if from 88.213.194.6 to any keep state queue q6 pass out on $ext_if from 88.213.194.7 to any keep state queue q7 pass out on $ext_if from 88.213.194.8 to any keep state queue q8 pass out on $ext_if from 88.213.194.9 to any keep state queue q9