Community discussions

MikroTik App
 
wispmikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 138
Joined: Tue Apr 25, 2017 10:43 am

Mangle v6

Tue Apr 25, 2017 10:54 am

Good to all,

First of all, excuse my language.

I have some doubts about the mangle in routerOS v6. I have a WAN interface ether1 (ftth 120/10) and 3 LAN interfaces (ether2, vlan 10 and vlan 11).
I am trying to configure a QoS system in version 6 + HTB, the problem I encounter is when using the global HTB virtual interface.

Priorities:
1- SIP, RTP
2- DNS, ICMP
4- HTTP
5- Youtube, Facebook
8- P2P

1- I have some doubts about whether to use forward or prerouting.
2- I put the code here:

Mangle with prerouting:
/ip firewall mangle
add chain=prerouting action=mark-connection new-connection-mark=mc_youtube \
passthrough=yes connection-state=new dst-address-list=Youtube in-interface=VLAN_11
add chain=prerouting action=mark-connection new-connection-mark=mc_youtube
passthrough=yes connection-state=new dst-address-list=Youtube in-interface=ether2
add chain=prerouting action=mark-packet new-packet-mark=pk_youtube
passthrough=no connection-mark=mc_youtube
As I show you the queue type and queue tree:
/queue type
add name="QoS_download" kind=pcq pcq-rate=0 pcq-limit=30KiB pcq-classifier=dst-address \
     pcq-total-limit=900KiB pcq-burst-rate=0 pcq-burst-threshold=0 \
     pcq-burst-time=10s pcq-src-address-mask=32 pcq-dst-address-mask=32\
     pcq-src-address6-mask=64 pcq-dst-address6-mask=64
add name="QoS_upload" kind=pcq pcq-rate=0 pcq-limit=30KiB pcq-classifier=src-address \
     pcq-total-limit=900KiB pcq-burst-rate=0 pcq-burst-threshold=0 \
     pcq-burst-time=10s pcq-src-address-mask=32 pcq-dst-address-mask=32 \
     pcq-src-address6-mask=64 pcq-dst-address6-mask=64
For the upload I am using the ether1 physical interface
/ queue tree
add name="QoS_up" parent=[b]ether1[/b] packet-mark="" limit-at=1024k queue=QoS_upload
     priority=8 max-limit=2048k burst-limit=0 burst-threshold=0 burst-time=0s \
     bucket-size=0.1
add name="5-Youtube_d" parent=QoS_up packet-mark=pk_youtube limit-at=512k \
     queue=QoS_up priority=5 max-limit=2048k burst-limit=0 burst-threshold=0 \
     burst-time=0s bucket-size=0.1
For the download I am using the global HTB interface
/ queue tree
add name="QoS_down" parent=global packet-mark="" limit-at=1024k queue=QoS_download
     priority=8 max-limit=2048k burst-limit=0 burst-threshold=0 burst-time=0s \
     bucket-size=0.1
add name="5-Youtube_d" parent=QoS_down packet-mark=pk_youtube limit-at=512k \
     queue=QoS_download priority=5 max-limit=2048k burst-limit=0 burst-threshold=0 \
     burst-time=0s bucket-size=0.1
The problem is that the upload also marks me as a download, if I watch a YouTube video (download) I mark it well, but if I upload a video to YouTube at 10Mb, I mark both 10Mb down and up, I understand it will be By the global?

Regards.
WispMikrotik

Who is online

Users browsing this forum: ddornan, GoogleOther [Bot], soulflyhigh, zugzwang and 40 guests