Community discussions

MikroTik App
 
simonefil
newbie
Topic Author
Posts: 47
Joined: Tue Apr 13, 2021 9:22 pm
Location: Bergamo - Italy
Contact:

Mark connection problem in Queue tree

Fri Mar 29, 2024 4:55 pm

Good morning everyone.
I have a configuration in which I have two subnets in two different vlans, and I want to give different upload priorities to the various subnets and to some services (VoIP etc..) via queue tree. I used mangles to mark connections and packages. I see that the connections are marked perfectly (I see them correct in the connection table
Image,
while the packets are not
Image
(the traffic all goes into the no mark queue). Below I report the configuration (cleaned of the sections not related to the topic).
# 2RouterOS 7.14.1
# 
#
# model = RBD52G-5HacD2HnD
# 
/interface bridge
add ingress-filtering=no name=bridge1 vlan-filtering=yes
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 \
    use-peer-dns=yes user=
/interface vlan
add interface=bridge1 name=vlan-ezio vlan-id=200
add interface=bridge1 name=vlan-ufficio vlan-id=100
/interface list
add name=WAN
add name=LAN
/ip pool
add name=dhcp_pool0 ranges=192.168.1.100-192.168.1.200
add name=dhcp_pool1 ranges=10.0.0.100-10.0.0.200
/ip dhcp-server
add address-pool=dhcp_pool0 interface=vlan-ufficio name=dhcp1
add address-pool=dhcp_pool1 interface=vlan-ezio name=dhcp2
/queue type
add fq-codel-limit=1000 fq-codel-quantum=300 fq-codel-target=12ms kind=fq-codel \
    name=fq-codel
/queue tree
add max-limit=30M name="Total Download" parent=bridge1 queue=fq-codel
add name="Other Traffic down" packet-mark=no-mark parent="Total Download" \
    queue=fq-codel
add name=HyperBackup packet-mark=hyperbackup_packets parent="Total Download" \
    priority=7 queue=fq-codel
add name=Ezio packet-mark=ezio_packets parent="Total Download" priority=6 \
    queue=fq-codel
add name=Azienda packet-mark=azienda_packets parent="Total Download" priority=5 \
    queue=fq-codel
add name=VoIP packet-mark=VoIP_packets parent="Total Download" priority=1 \
    queue=fq-codel
add max-limit=3M name="Total Upload" parent=pppoe-out1 queue=fq-codel
add name=VoIP_Up packet-mark=VoIP_packets parent="Total Upload" priority=1 \
    queue=fq-codel
add name=Azienda_Up packet-mark=azienda_packets parent="Total Upload" priority=\
    5 queue=fq-codel
add name=Ezio_Up packet-mark=ezio_packets parent="Total Upload" priority=6 \
    queue=fq-codel
add name=Hyperbackup_Upload packet-mark=hyperbackup_packets parent=\
    "Total Upload" priority=7 queue=fq-codel
add name="Other Traffic Upload" packet-mark=no-mark parent="Total Upload" \
    queue=fq-codel

/ip address
add address=192.168.1.1/24 interface=vlan-ufficio network=192.168.1.0
add address=10.0.0.1/24 interface=vlan-ezio network=10.0.0.0
/ip dhcp-server network
add address=10.0.0.0/24 dns-server=10.0.0.1 gateway=10.0.0.1
add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1

/ip firewall mangle
add action=mark-connection chain=forward comment="VoIP Conn" dst-address-list=\
    VoipVoice new-connection-mark=VoIP_conn passthrough=yes src-address-list=\
    LAN
add action=mark-connection chain=forward dst-address-list=LAN \
    new-connection-mark=VoIP_conn passthrough=yes src-address-list=VoipVoice
add action=mark-packet chain=forward comment="VoIP Packets" connection-mark=\
    VoIP_conn new-packet-mark=VoIP_packets passthrough=no
add action=mark-connection chain=forward comment="Hyper Backup Conn" \
    dst-address=***** dst-port=61281 new-connection-mark=\
    hyperbackup_conn out-interface=pppoe-out1 passthrough=yes protocol=tcp
add action=mark-packet chain=forward comment="Hyper Backup Packets" \
    connection-mark=hyperbackup_conn new-packet-mark=hyperbackup_packets \
    passthrough=no
add action=mark-connection chain=forward comment="Azienda Conn" \
    new-connection-mark=azienda_conn out-interface=pppoe-out1 passthrough=yes \
    src-address=192.168.1.0/24
add action=mark-packet chain=forward comment="Azienda Packets" connection-mark=\
    azienda_conn new-packet-mark=azienda_packets passthrough=no
add action=mark-connection chain=forward comment="Ezio Conn" \
    new-connection-mark=ezio_conn out-interface=pppoe-out1 passthrough=yes \
    src-address=10.0.0.0/24
add action=mark-packet chain=forward comment="Ezio Packets" connection-mark=\
    ezio_conn new-packet-mark=ezio_packets passthrough=no
Surely there is something wrong with my configuration, but I don't understand what. I ask you for help. Thank you
 
simonefil
newbie
Topic Author
Posts: 47
Joined: Tue Apr 13, 2021 9:22 pm
Location: Bergamo - Italy
Contact:

Re: Mark connection problem in Queue tree  [SOLVED]

Thu Apr 11, 2024 12:18 pm

Update to complete the ticket.
After hours of racking my brain I realized that I simply forgot to disable fasttrack. Once Fastrack was disabled, all traffic flow into the correct queues.
I also corrected some mangle rules as they had errors, and I also divided the rules by incoming and outgoing traffic

Who is online

Users browsing this forum: Amazon [Bot], anav, jfim88, ppptran and 25 guests