Community discussions

MikroTik App
 
julianov
newbie
Topic Author
Posts: 32
Joined: Wed Sep 06, 2017 4:04 pm

Mark packages for VoIP and QoS

Wed Nov 15, 2017 4:23 pm

Hello All.

I need to implement QoS for voice packages in the mikrotik router. The next is the code that I have implemented but I don't see a package matches.
/ip firewall mangle
add action=mark-connection chain=prerouting new-connection-mark=VoIP packet-mark=VoIP passthrough=yes src-address=100.64.0.2
add action=mark-connection chain=prerouting connection-mark=VoIP dst-address=100.64.0.2 new-connection-mark=VoIP passthrough=yes
add action=mark-packet chain=forward dst-port=5060-5070 new-packet-mark=VoIP packet-mark=VoIP passthrough=no protocol=udp
add action=mark-packet chain=forward dst-port=10000-20000 new-packet-mark=VoIP packet-mark=VoIP passthrough=no protocol=udp

/queue tree
add limit-at=2097152 max-limit=5242880 name=VoIP packet-mark=VoIP parent=global priority=1 queue=default

 
ubikrotik
Member Candidate
Member Candidate
Posts: 158
Joined: Wed May 25, 2016 3:56 am

Re: Mark packages for VoIP and QoS

Wed Nov 22, 2017 5:02 am

hello, you sould mark the new conn at first , then mark the packet in this conexion to save cpu usage. then add queue for maked packet.

hope this help

Who is online

Users browsing this forum: michaljanci, zabloc and 59 guests