Page 1 of 1

QUEUE only for one TCP port

Posted: Tue Feb 19, 2019 11:43 am
by stef84
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

Re: QUEUE only for one TCP port

Posted: Tue Feb 19, 2019 2:12 pm
by vklpt
May be you messed up with source/destination port or source/destination queuing. You better show your rules.

Re: QUEUE only for one TCP port

Posted: Tue Feb 19, 2019 7:12 pm
by stef84
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

Re: QUEUE only for one TCP port

Posted: Tue Feb 19, 2019 7:29 pm
by vklpt
packet-mark and routing-mark are different things. You should use mark-packet action in mangle

Re: QUEUE only for one TCP port

Posted: Tue Feb 19, 2019 8:14 pm
by stef84
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