Hello eveybody,
I have RB201 1UI AS-RM and i want to make QoS to prioritize different flow such as VoIP, data and peer to peer.
Here is my configuration:
/ip firewall mangle
Add chain=prerouting action=mark-packet new-packet-mark=VoIP port=5060 protocol= tcp passthrought=yes comment=”sip”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=5060 protocol=udp passthrought=yes comment=”sip”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=5004 protocol= udp passthrought=yes comment=”RTP”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=4569 protocol= udp passthrought=yes comment=”IAX”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=5036 protocol= udp passthrought=yes comment=”IAX”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=1731 protocol= tcp passthrought=yes comment=”H.323”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=2427 protocol= tcp passthrought=yes comment=”MGCP”
Add chain= prerouting action=mark-packet new-packet-mark=VoIP port=2427 protocol= udp passthrought=yes comment=”MGCP”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=80 protocol= tcp passthrought=yes comment=”HTTP”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=443 protocol= tcp passthrought=yes comment=”HTTPS”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=22 protocol= tcp passthrought=yes comment=”SSH”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=53 protocol= tcp passthrought=yes comment=”DNS”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=53 protocol= udp passthrought=yes comment=”DNS”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=20,21 protocol= tcp passthrought=yes comment=”FTP”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=110 protocol= tcp passthrought=yes comment=”POP3”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=25 protocol= tcp passthrought=yes comment=”SMTP”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=143 protocol= tcp passthrought=yes comment=”IMAP”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=993,995 protocol=tcp passthrought=yes comment=”SSL”
Add chain= prerouting action=mark-packet new-packet-mark=Data port=546 protocol=udp passthrought=yes comment=”DHCP”
Add chain= prerouting action=mark-packet new-packet-mark=P2P port=6881-6889 protocol=tcp passthrought=yes comment=”BitTorrent”
Add chain= prerouting action=mark-packet new-packet-mark=P2P port=6881-6999 protocol=tcp passthrought=yes
/ queue tree
Add name= ‘QueueVoIP packet-mark=VoIP priority=2 parent=ether2 limit-at=0 disabled=no
Add name=QueueData packet-mark=Data priority=7 parent=ether2 disabled=no max-limit=1024k
Add name= QueueP2P packet-mark=P2P priority=7 parent=ether2 disabled=no max-limit=1024k
I output ether3, ether4 and ether5 of the bridge-local and i have placed ether3, ether4 and ether5 placed in slave and ether2 in master-port
I connect my PC to Ether5 and WAN to ether2.
To test my configuration, i dowload some file to see if the QoS work.
But my dowload isn’t limit to 1024 and going up to 6M/s.
My problem is that my quality of service isn’t running.
Where is my error and can you help me to solve.
Sorry if my english isn’t good but i’m french.
Thanks a lot !