ssofet,
Appreciate your efforts. I will study this script. However, I think it can be done a lot simpler and then let people configure it from here. There is no way I would use a regex that big! To see my efforts look at post #3 in this thread. I’m attempting to create a generic script as well. I may utilize your suggestion of connection-bytes. Correct me if I’m wrong but setting DSCP (or Tos values) is only helpful for up or downstream routers and switches in the customer’s network. If the MikroTik is the edge device it will not help much to set DSCP on outgoing traffic to a WAN.