Community discussions

MikroTik App
 
bardossyAdrian
just joined
Topic Author
Posts: 10
Joined: Mon Jan 08, 2018 2:33 pm

Simple Queue for mikrotik windows update download

Thu Mar 08, 2018 3:02 pm

Hi all,

my name is Adrian and I need your help.

I am configuring simple queue for limiting the bandwidth of windows update download.
I configured it in a few steps:
> created an address list of windows update servers
> created 3 mark connection and 3 mark packet mangle rules with destination address list set to those addresses in connection mark and applied the connection mark in packet mark rules
> rules are for new, established and related conenctions
> created simple queue type with limitation
> applied the simple queue

Problem is, mangle is showing the traffic when I download the windows update, but not simple queue. I am including configs.

Here is my address list for windows updates:
Here is address list:
/ip firewall address-list
add address=13.107.4.50 list=windows_update
add address=54.208.189.112 list=windows_update
add address=157.56.77.153 list=windows_update
add address=65.55.50.157 list=windows_update
add address=65.55.50.158 list=windows_update
add address=147.229.255.81 list=windows_update
add address=207.46.22.245 list=windows_update
add address=2.0.0.0/8 list=windows_update
add address=70.0.0.1 list=windows_update
add address=60.0.0.1 list=windows_update
add address=94.0.0.1 list=windows_update
add address=111.0.0.1 list=windows_update
add address=132.0.0.1 list=windows_update
add address=157.0.0.1 list=windows_update
add address=207.0.0.1 list=windows_update
add address=213.0.0.1 list=windows_update

Here are mangle rules;
/ip firewall mangle
add action=mark-connection chain=prerouting comment=\
    "limit windows update established" connection-state=related \
    dst-address-list=windows_update new-connection-mark=Win_Update \
    passthrough=yes
add action=mark-connection chain=prerouting comment=\
    "limit windows update related" connection-state=established \
    dst-address-list=windows_update new-connection-mark=Win_Update \
    passthrough=yes
add action=mark-connection chain=prerouting comment=\
    "limit windows update new" connection-state=new dst-address-list=\
    windows_update new-connection-mark=Win_Update passthrough=yes
add action=mark-packet chain=prerouting comment="win update established" \
    connection-mark=Win_Update connection-state=established new-packet-mark=\
    win_update passthrough=no
add action=mark-packet chain=prerouting comment="win update related" \
    connection-mark=Win_Update connection-state=new new-packet-mark=\
    win_update passthrough=no
add action=mark-packet chain=prerouting comment="win update new" \
    connection-mark=Win_Update connection-state=related new-packet-mark=\
    win_update passthrough=no

Here is simple queue
/queue simple
add name=queue_download_MS_update packet-marks=win_update priority=4/4 queue=\
    default-small/PCQ_downloadMSUpdate target=""  total-queue=default

Here is  queue type
/queue type
add kind=pcq name=PCQ_downloadMSUpdate pcq-classifier=dst-address pcq-rate=7M
Can you help me please?

Best regards,
Adrian Bardossy
 
erfanurmia
newbie
Posts: 31
Joined: Wed Mar 07, 2018 11:14 am
Contact:

Re: Simple Queue for mikrotik windows update download

Fri Mar 09, 2018 2:39 am

do you add packet mark on simple queue??
 
bardossyAdrian
just joined
Topic Author
Posts: 10
Joined: Mon Jan 08, 2018 2:33 pm

Re: Simple Queue for mikrotik windows update download

Fri Mar 09, 2018 12:09 pm

Hello,

yes I included packet mark in simple queue.
[ab.admin@S4U_Lidicka] > queue simple print 
Flags: X - disabled, I - invalid, D - dynamic 
 2    name="queue_download_MS_update" target="" parent=none 
      packet-marks=win_update priority=8/8 
      queue=default-small/PCQ_downloadMSUpdate limit-at=0/0 max-limit=7M/7M 
      burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s bucket-size=0.1/0.1 
      total-queue=default
      
      [ab.admin@S4U_Lidicka] > queue type print 
 9   name="PCQ_downloadMSUpdate" kind=pcq pcq-rate=7M pcq-limit=50KiB 
     pcq-classifier=dst-address pcq-total-limit=2000KiB 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=128 pcq-dst-address6-mask=128


Total statistics shows traffic, but not traffic when it downloads the updates.

Best regards,
Adrian