Community discussions

 
DeamonMV
just joined
Topic Author
Posts: 18
Joined: Thu May 28, 2015 8:58 pm
Location: Ukraine Kharkov

How to use Queue in case of existing mark connection +mark route mangle rules

Wed Feb 06, 2019 4:14 pm

Hello.

i got a problem with implementation of Queue on Mikrotik route which already have ip firewall mangle rule of mark connection and mark route.
how is lloks like base configuratino to which i want add Queue
There are three LTE routers which connected to Mikrotik as a gateways.(network 172.16.100.0/24)
ip firewall mangle have rules

- mark connection ; prerouting ; mark connection - NewCM=LTE1 ; passthrough=yes
- mark connection ; prerouting ; mark connection - NewCM=LTE2 ; passthrough=yes
- mark connection ; prerouting ; mark connection - NewCM=LTE3 ; passthrough=yes
^^ for those rule setted Per Connection Classifier
- mark routing ; prerouting ; CM=LTE1; mark routing - NewRM=R-LTE1 ; passtrough=yes
- mark routing ; prerouting ; CM=LTE1; mark routing - NewRM=R-LTE2 ; passtrough=yes
- mark routing ; prerouting ; CM=LTE1; mark routing - NewRM=R-LTE3 ; passtrough=yes

all works fine, but problem with youtube traffic - need to limit thise traffic to save good responce of internet connection

I have tried to do in this way:
Created ip firewall l7 protocol :
- name: youtube ; regexp: ^.*(youtube|youtube.com|googlevideo|youtu.be).*


- mark connection ; prerouting ; mark connection - NewCM=LTE1 ; passthrough=yes
- mark connection ; prerouting ; mark connection - NewCM=LTE2 ; passthrough=yes
- mark connection ; prerouting ; mark connection - NewCM=LTE3 ; passthrough=yes
^^ for those rule setted Per Connection Classifier

- mark routing ; prerouting ; CM=LTE1; mark routing - NewRM=R-LTE1 ; passthrough=yes
-- mark connection ; postrouting CM=LTE1 ; Layer 7 Protocol - youtube ; mark connection - NewCM=youtube-con-LTE1 ; passthrough=yes
-- mark packet ; postrouting CM=youtube-con-LTE1 ; Layer 7 Protocol - youtube ; mark packet - NewPM=youtube-packet-LTE1 ; passthrough=no

- mark routing ; prerouting ; CM=LTE2; mark routing - NewRM=R-LTE2 ; passtrough=yes
-- mark connection ; postrouting CM=LTE2 ; Layer 7 Protocol - youtube ; mark connection - NewCM=youtube-con-LTE2 ; passthrough=yes
-- mark packet ; postrouting CM=youtube-con-LTE2 ; Layer 7 Protocol - youtube ; mark packet - NewPM=youtube-packet-LTE2 ; passthrough=no

- mark routing ; prerouting ; CM=LTE3; mark routing - NewRM=R-LTE3 ; passtrough=yes
-- mark connection ; postrouting CM=LTE3 ; Layer 7 Protocol - youtube ; mark connection - NewCM=youtube-con-LTE3 ; passthrough=yes
-- mark packet ; postrouting CM=youtube-con-LTE3 ; Layer 7 Protocol - youtube ; mark packet - NewPM=youtube-packet-LTE3 ; passthrough=no

also i have created Queue tree for each Packet Mark with PCQ queue type and simple queue

Problem is when those rules for marking youtube connection and packet is ON, youtube stops work, only video, youtube site reacheable but not video.
Where can be a problem? maybe i should enable passthrough=yes for mark packet rules

Who is online

Users browsing this forum: No registered users and 32 guests