Community discussions

MikroTik App
 
stef84
newbie
Topic Author
Posts: 41
Joined: Tue Apr 29, 2014 8:00 pm
Location: Assisi - Italy
Contact:

QUEUE only for one TCP port

Tue Feb 19, 2019 11:43 am

Hello... i've a question

I've an host 192.168.1.41 in my LAN. I need limit bandwith 256k/3M on this host only for service use port 10333 TCP. I've creating a prerouting-mark in magle for this port, but the queue don't work.

can you help me? Thanks
 
User avatar
vklpt
newbie
Posts: 36
Joined: Mon Feb 18, 2019 1:13 pm
Location: Izhevsk
Contact:

Re: QUEUE only for one TCP port

Tue Feb 19, 2019 2:12 pm

May be you messed up with source/destination port or source/destination queuing. You better show your rules.
 
stef84
newbie
Topic Author
Posts: 41
Joined: Tue Apr 29, 2014 8:00 pm
Location: Assisi - Italy
Contact:

Re: QUEUE only for one TCP port

Tue Feb 19, 2019 7:12 pm

thanks friend for the help....

i've use this rule, but it's not work:
add action=mark-routing chain=prerouting new-routing-mark=service passthrough=\
    no protocol=tcp src-address=192.168.1.41 src-port=10333
add comment=NAME limit-at=256k/8M max-limit=256k/8M name=NAME \
    packet-marks=service queue=pcq-upload-default/pcq-download-default target=\
    192.168.1.41/32
 
User avatar
vklpt
newbie
Posts: 36
Joined: Mon Feb 18, 2019 1:13 pm
Location: Izhevsk
Contact:

Re: QUEUE only for one TCP port

Tue Feb 19, 2019 7:29 pm

packet-mark and routing-mark are different things. You should use mark-packet action in mangle
 
stef84
newbie
Topic Author
Posts: 41
Joined: Tue Apr 29, 2014 8:00 pm
Location: Assisi - Italy
Contact:

Re: QUEUE only for one TCP port

Tue Feb 19, 2019 8:14 pm

Thank you very mutch.

I've change only mark-packet and now work :D

But I can not tell if the rest of the traffic is regular and if the only traffic of TCP 10333 is limited

Thanks