I have a RB450G installed to my home network in the following setup:
- ether1: WAN, 20M/20M link
ether2: computer1
ether3: computer2
ether4: WiFi router
ether5: home server
ether2-ether5 ports are bridged
The problem is that i want to setup some kind of QOS to priorize HTTP, VoIP etc. traffic over P2P in both directions (uplink and downlink).
I have tried using a simple queue tree to priorize differently marked packets without any success. I can see the different packets using different queues but the router doesn't give more bandwith to queues with higher priorities. The expected outcome was the router allocate more bandwidth to queues with higher priorities and slow down traffic with lower.
How can i make a queue configuration that does this job for me?
My queue setup:
Code: Select all
add max-limit=22M name=in parent=lan-bridge
add name=pri1_i packet-mark=Data-HTTP,Data-HTTPS,Data-SSH,Data-WinBox parent=in priority=1
add name=pri8_i packet-mark=no-mark parent=in
add max-limit=21M name=out parent=ether1-wan
add name=pri1_o packet-mark=Data-HTTP,Data-HTTPS,Data-SSH,Data-WinBox parent=out priority=1
add name=pri8_o packet-mark=no-mark parent=out
add name=pri2_i packet-mark=Data-PPTP parent=in priority=2
add name=pri2_o packet-mark=Data-PPTP parent=out priority=2
/queue type
add kind=red name=qos red-limit=750 red-max-threshold=500
Code: Select all
/ip firewall mangle
add action=jump chain=forward jump-target=markpackets
add action=jump chain=prerouting jump-target=markpackets
add action=mark-packet chain=markpackets comment=Unclassified disabled=yes new-packet-mark=Unclassified
add action=mark-packet chain=markpackets comment=Data-HTTP dst-port=80,8080 new-packet-mark=Data-HTTP passthrough=no protocol=tcp
add action=mark-packet chain=markpackets comment=Data-HTTPS dst-port=443 new-packet-mark=Data-HTTPS passthrough=no protocol=tcp
add action=mark-packet chain=markpackets comment=Data-SSH dst-port=22,2222 new-packet-mark=Data-SSH passthrough=no protocol=tcp
add action=mark-packet chain=markpackets comment=Data-WinBox dst-port=8291 new-packet-mark=Data-WinBox passthrough=no protocol=tcp
add action=mark-packet chain=markpackets comment=Data-HTTP new-packet-mark=Data-HTTP passthrough=no protocol=tcp src-port=80
add action=mark-packet chain=markpackets comment=Data-PPTP connection-type=pptp new-packet-mark=Data-HTTP passthrough=no
add action=mark-packet chain=markpackets comment=Data-HTTPS new-packet-mark=Data-HTTPS passthrough=no protocol=tcp src-port=443
add action=mark-packet chain=markpackets comment=Data-SSH new-packet-mark=Data-SSH passthrough=no protocol=tcp src-port=22,2222
add action=mark-packet chain=markpackets comment=Data-WinBox new-packet-mark=Data-WinBox passthrough=no protocol=tcp src-port=8291