Professional Documents
Culture Documents
Bridge Setup
First, We create a bridge interface and name it as you like, I have named it ALLOT:
/interface bridge
add name=ALLOT
After that, assign ports to the bridge INTERNAL as a Local interface and EXTERNAL as Publc interface:
Than the last thing about bridge is to enable ip firewall on it, so we can mangle.
For web video services, create Address-List for most of the Youtube, Metacafe, Youporn, Redtube etc.
Mangle Setup
Here we mark the packets for the different traffic, be carefull to keep this order:
/ip firewall mangle
Queue Type
PCQ will be used only for Youtube and other web video
/queue type
add kind=pcq name=Youtube_down pcq-classifier=src-port,dst-port pcq-limit=50
pcq-rate=400000 pcq-total-limit=2000
Queue Tree
This is the Queue Tree that manages the marked packets.
For all rules except Youtube - queue=default, for all rules max-limit and limit-at are zeroes except where a value is
specified.
/queue tree
add limit-at=550000000 max-limit=550000000 name=OVERALL parent=INTERNAL priority=5
Traffic Priortization, RouterOS QoS Implemetation 3
/system script
add name=Day source="/queue tree enable PRIO8; /queue tree disable PRIO8-19h;
/system scheduler disable Night; /system scheduler disable Overall-Night"
add name=Night source=":global checkrate [/queue tree get PRIO8 rate]\r\
\n:local rate 20000000\r\ \n\r\ \n:if ( \$checkrate < \$rate ) do={\r\ \n
/queue tree enable PRIO8-19h; /queue tree disable PRIO8\r\ \n}\r\ \n\r\
\n:if ( \$checkrate > \$rate ) do={\r\ \n /queue tree enable PRIO8;
/queue tree disable PRIO8-19h\r\ \n}"
add name=Enable-Night source= "system scheduler enable Night;
/system scheduler enable Overall-Night"
add name=Overall-Night source=":global checkrate
[/queue tree get OVERALL rate]\r\ \n:local rate 510000000\r\ \n\r\ \n:if
( \$checkrate < \$rate ) do={\r\ \n /queue tree enable PRIO8;
/queue tree disable PRIO8-19h\r\ \n}\r\ \n"