Hi there, rather than make rules for the dozens of rtp and sip ports the voip devices we use, I was trying to make rules based on TOS:
6 ;;; VOIP Uploads
chain=prerouting action=mark-packet new-packet-mark=VOIP_UP
passthrough=no dscp=46
7 ;;; VOIP Downloads
chain=prerouting action=mark-packet new-packet-mark=VOIP_down
passthrough=no dscp=46
Question 1: Is the mikrotik using the dscp value or the TOS value in the “dscp (tos)” field in the advanced tab?
Question 2: How do i set the mangle rule to differenciate upload from download? Right now it all falls under the first rule, so all traffic with a dscp (tos) value of 46 is being marked “VOIP_UP”. Should I be changing the chain to postrouting for the download one?
I dont think that will work, this is a transparent shaper so it is bridged.
I also tried using dst and src address pools to make direction, that works for every other mangle rule, but not these ones for some reason, it is still being classified as all download.
Note: I just noticed some upload, I think my address list had an error.
The only thing that isnt logging some form of traffic now is RTP download. Im wondering if that has more to do with how VOIP works and less to do with the rule. getting tons of sip up and down and only a little rtp up and no download.