LOGIN SCRIPT (working on simple queue)
Code: Select all
:local pm1 "ml_pkt,online_games_pkt"
:local pm2 "speedtest_pkt"
:local pm3 "browsing_pkt,downloads_pkt,streaming_pkt"
:local qname ("<1-hotspot-".$user.">")
:local chld1 ($"qname"."-online-games")
:local chld2 ($"qname"."-speedtest")
:local chld3 ($"qname"."-surfing")
/queue simple
add name=$qname target=$address max-limit="50M/50M" queue="hotspot-default/hotspot-default" place-before=0
add name=$chld1 target="" packet-marks=$pm1 max-limit="1M/1M" parent=$qname priority="1/1" queue="hotspot-default/hotspot-default"
add name=$chld2 target="" packet-marks=$pm2 max-limit="50M/50M" parent=$qname priority="8/8" queue="hotspot-default/hotspot-default"
add name=$chld3 target="" packet-marks=$pm3 max-limit="10M/10M" parent=$qname priority="8/8" queue="hotspot-default/hotspot-default"
Code: Select all
/queue simple remove $chld3
/queue simple remove $chld2
/queue simple remove $chld1
/queue simple remove $qname