ext_if="sis0"
lenke="rl0"
wmw="rl1"
####CONTROLE DE TRAFEGO PARA A INTERFACE ext_if
#altq on $ext_if cbq bandwidth 1Mb qlimit 150 \
# queue {lenke,wmw,http}
# queue lenke bandwidth 50% priority 3 qlimit 150 cbq(default red)
# #queue http bandwidth 20% priority 2 cbq (borrow)
# queue wmw bandwidth 50% priority 1 qlimit 150 cbq(red)
#
#nat on sis0 from rl0:network to any -> sis0 # 189.16.21.140
altq on $ext_if bandwidth 1000Kb hfsc queue { lenke, wmw }
queue lenke bandwidth 50% priority 3 qlimit 500 hfsc (default)
queue wmw bandwidth 50% priority 2 qlimit 500 hfsc #(realtime 40%)
####FILTRAGEM
#pass in quick on rl1 from 189.16.21.160 to any tag WMW queue wmw
pass in quick on rl1 to any tag WMW queue wmw
pass out quick on sis0 tagged WMW queue wmw
#pass in quick on sis0 from any to 189.16.21.160 tag WMW queue wmw
pass in quick on sis0 from any tag WMW queue wmw
pass out quick on rl1 tagged WMW queue wmw
pass in quick on rl0 from 189.16.21.130 to any tag LENKE queue lenke
pass out quick on sis0 tagged LENKE queue lenke
pass in quick on sis0 from any to 189.16.21.130 tag LENKE queue lenke
pass out quick on rl0 tagged LENKE queue lenke
#pass out quick on $lenke inet proto tcp from port 80 to $ext_if keep state queue (http)