This is the tutorial that I followed: http://mum.mikrotik.com/presentations/C ... _Megis.pdf
My network setup looks like this: I want to add that PC1 sometimes runs a few VMs in bridged mode.
The ISP connection has 2mbps down/1mbps up external, and 100mbps down/20mbps up metropolitan, but these speeds sometimes vary a lot.
The problem is that when heavy downloading/uploading, the network 10.223.44.0/29 takes the whole bandwidth and the PC from 10.223.45.0/30 isn't able to do anything online.
Here's everything that I've done(inspired from tutorial):
Mangle
Code: Select all
/ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=forward action=change-ttl new-ttl=increment:1
1 chain=forward action=change-ttl new-ttl=increment:1
2 chain=forward action=mark-connection new-connection-mark=44.0-con
passthrough=yes src-address=10.223.44.0/29
3 chain=forward action=mark-connection new-connection-mark=44.0-con
passthrough=yes dst-address=10.223.44.0/29
4 chain=forward action=mark-packet new-packet-mark=44.0_traffic
passthrough=no connection-mark=44.0-con
5 chain=forward action=mark-packet new-packet-mark=44.0_traffic
passthrough=no src-address=10.223.44.0/29
6 chain=forward action=mark-packet new-packet-mark=44.0_traffic
passthrough=no dst-address=10.223.44.0/29
7 chain=forward action=mark-connection new-connection-mark=45.0-con
passthrough=yes src-address=10.223.45.0/30
8 chain=forward action=mark-connection new-connection-mark=45.0-con
passthrough=yes dst-address=10.223.45.0/30
9 chain=forward action=mark-packet new-packet-mark=45.0_traffic
passthrough=yes connection-mark=45.0-con
10 chain=forward action=mark-packet new-packet-mark=45.0_traffic
passthrough=no src-address=10.223.45.0/30
11 chain=forward action=mark-packet new-packet-mark=45.0_traffic
passthrough=no dst-address=10.223.45.0/30
12 ;;; marking for apex
chain=postrouting action=mark-packet new-packet-mark=port40100-3
passthrough=no protocol=tcp port=40100-40103 packet-mark=44.0_traffic
connection-mark=44.0-con
13 chain=postrouting action=mark-packet new-packet-mark=port40100-3
passthrough=no protocol=udp port=40100-40103 packet-mark=44.0_traffic
connection-mark=44.0-con
14 chain=postrouting action=mark-packet new-packet-mark=port40104-7
passthrough=no protocol=tcp port=40104-40107 packet-mark=44.0_traffic
connection-mark=44.0-con
15 chain=postrouting action=mark-packet new-packet-mark=port40104-7
passthrough=no protocol=udp port=40104-40107 packet-mark=44.0_traffic
connection-mark=44.0-con
16 chain=postrouting action=mark-packet new-packet-mark=port40108-11
passthrough=no protocol=tcp port=40108-40111 packet-mark=44.0_traffic
connection-mark=44.0-con
17 chain=postrouting action=mark-packet new-packet-mark=port40108-11
passthrough=no protocol=udp port=40108-40111 packet-mark=44.0_traffic
connection-mark=44.0-con
18 chain=postrouting action=mark-packet new-packet-mark=port60000-3
passthrough=no protocol=tcp port=60000-60003 packet-mark=44.0_traffic
connection-mark=44.0-con
19 chain=postrouting action=mark-packet new-packet-mark=port60000-3
passthrough=no protocol=udp port=60000-60003 packet-mark=44.0_traffic
connection-mark=44.0-con
20 chain=postrouting action=mark-packet new-packet-mark=44.0_traffic_http
passthrough=yes protocol=tcp src-address=10.223.44.0/29 dst-port=80
21 chain=postrouting action=mark-packet new-packet-mark=44.0_traffic_http
passthrough=yes protocol=tcp dst-address=10.223.44.0/29 src-port=80
22 chain=postrouting action=mark-packet new-packet-mark=44.0_traffic_http
passthrough=yes protocol=udp src-address=10.223.44.0/29 dst-port=80
23 chain=postrouting action=mark-packet new-packet-mark=44.0_traffic_http
passthrough=yes protocol=udp dst-address=10.223.44.0/29 src-port=80
24 chain=forward action=log log-prefix=""
Code: Select all
/queue tree> print
Flags: X - disabled, I - invalid
0 name="44.0_down" parent=ether2 limit-at=0 priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
1 name="45.0_up" parent=Upload limit-at=0 priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
2 name="44.0_up" parent=Upload limit-at=0 priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
3 name="45.0_down" parent=ether3 limit-at=0 priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
4 name="p40100-3_up" parent=44.0_up packet-mark=port40100-3 limit-at=32k queue=default-small priority=8 max-limit=32k burst-limit=32k burst-threshold=1k
burst-time=1s
5 name="pcq-download" parent=44.0_down packet-mark=44.0_traffic limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
6 name="pcq-upload" parent=44.0_up packet-mark=44.0_traffic limit-at=0 queue=default-small priority=1 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
7 name="pcq-upload-45.0" parent=45.0_up packet-mark=45.0_traffic limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
8 name="pcq-download-45.0" parent=45.0_down packet-mark=45.0_traffic limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
9 name="p40104-7_up" parent=44.0_up packet-mark=port40104-7 limit-at=32k queue=default-small priority=8 max-limit=32k burst-limit=32k burst-threshold=1k
burst-time=1s
10 name="p60000-3_up" parent=44.0_up packet-mark=port60000-3 limit-at=32k queue=default-small priority=8 max-limit=32k burst-limit=32k burst-threshold=1k
burst-time=1s
11 name="p40108-11_up" parent=44.0_up packet-mark=port40108-11 limit-at=32k queue=default-small priority=8 max-limit=32k burst-limit=32k burst-threshold=1k
burst-time=1s
12 name="p40100-3_down" parent=44.0_down packet-mark=port40100-3 limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
13 name="p40104-7_down" parent=44.0_down packet-mark=port40104-7 limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
14 name="p40108-11_down" parent=44.0_down packet-mark=port40108-11 limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
15 name="Upload" parent=ether1 limit-at=0 priority=1 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s
16 name="p60000-3_down" parent=44.0_down packet-mark=port60000-3 limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
17 name="pcq-download-http" parent=44.0_down packet-mark=44.0_traffic_http limit-at=0 queue=default priority=7 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
18 name="pcq-upload-http" parent=44.0_up packet-mark=44.0_traffic_http limit-at=0 queue=default priority=1 max-limit=0 burst-limit=0 burst-threshold=0
burst-time=0s
Code: Select all
/queue type print
0 name="default" kind=pfifo pfifo-limit=50
1 name="ethernet-default" kind=pfifo pfifo-limit=1000
2 name="wireless-default" kind=sfq sfq-perturb=5 sfq-allot=1514
3 name="synchronous-default" kind=red red-limit=60 red-min-threshold=10 red-max-threshold=50 red-burst=20 red-avg-packet=1000
4 name="hotspot-default" kind=sfq sfq-perturb=5 sfq-allot=1514
5 name="my_pcq_download" kind=pcq pcq-rate=0 pcq-limit=1 pcq-classifier=dst-address pcq-total-limit=200
6 name="my_pcq_upload" kind=pcq pcq-rate=0 pcq-limit=1 pcq-classifier=src-address pcq-total-limit=200
7 name="default-small" kind=pfifo pfifo-limit=10
Can someone tell me what am I doing wrong?