Two dynamic bandwidth limits for users

I shape my users bandwidth through hotspot profiles and that works perfectly from the very start. However, I setup DC hub few days ago and I want higher speeds for my users when they connect to this local DC hub.

This is dynamically created queue:

0 D name=“” target-addresses=10.55.1.254/32
dst-address=0.0.0.0/0 interface=all parent=none priority=8
queue=default/default limit-at=38000/64000 max-limit=38000/64000
total-queue=default

It is possiblt to change dst-address here and allow higher speeds for local traffic, but is there any automated way? It should be possible to write a script to do this, to define two queues for each logged users through hotspot. What is the best way to accomplish this? Is there any already written script for this?

acim

I suppose, static queues and mangle rules required for your scenario.
Mangle rules have to mark traffic,

  1. traffic between hub to users;
  2. traffic between users and other networks.

Use packet-marks in queues.