Passthrough in mangle

Hi, I’ve been trying to set up some basic QOS rules for our wireless network, and have stumbled apon a few questions.

If I do packet marks in mangle, and unselect passthrough, would it bypass queues, firewall filter, or both?

no it will just not go to the next mangle rule.

I thought unselecting passthrough skipped the rest of the mangle rules.

Yes, That’s what I meant :slight_smile:

can you tell me what is better?
use on all mangle rules for prioritizing packets passthrough or not, or only on some of them (which)?

regards

For all “mark-packet” mangle rules it doesn’t make sense to set passthrough=yes.
If packet is already marked then simply do not send to next mangle rules, to save CPU resources.

i’m just asking coz my cpu doesn’t get more then 30% and mangle doesn’t work very well. now i have all set to passtrough=“no”

As a suggestion, you could use the counter to find out, do your mangle work or not. Basicly the passthrough will be usefull for example

you would like to mark connection and base on the marked connection you would like to mark routing or packet. Or you would like to remark the already marked entity (conn/packet/route). And this passthrough=no is only effected on the same chain.

May this could help

do you have any examples?
any link?

tnx

on mikrotik wiki you will find alot of example but i will give you a simple trial :
just set following mangle on your router :

  1. mark connection on chain prerouting with your pc ip address as src-address and action mark-new-connection with new connection mark = pc set the passthrough =yes
  2. mark packet on chain prerouting with connection mark = pc, action = mark-packet with new-packet mark=packet1 passthrough=yes
  3. mark packet on chain prerouting with connection mark = pc, action = mark-packet with new-packet mark=packet2 passthrough=no
  4. mark packet on chain prerouting with connection mark = pc, action = mark-packet with new-packet mark=packet3 passthrough=yes

And try to make any communcation from your pc to internet for example. You will see on firewall mangle list the counter 2,3 will growth and 4 will stay 0.

if you set your traffic shapper (queue) based on packet 2 or 4 the shapper will not work. It will work on packet3.

Let me know your result