packet marking with string match for queues

Hi,
how can I packet mark based on content matching for using it in queues.
thnx

When you say content what content are you talking about matching?

content means match based on file extension etc. I can drop the packets based on content matching i:e .exe,.scr etc but unable to mark the packets for queueing
thnx

You would have to use a web proxy to be able to do something like this. I’m not sure about tying it into MT queues though.

yes it can be done easily in squid with delay pools. But how it can be done in Mikrotik with web-proxy ?
thnx

I think what you mean is something like…

/ip web-proxy acess add url=“:\.exe$” action=deny

*** my formatting might be off but that should be the theory. ***

this will deny the exe files but i want to slow it down. In squid you can easily right down the acl based on regexp and assing a delay pool. The acl you had stated will block the exe file not slow it down
regards

In MT you can do a download speed adjustment, but not a specific file, unless that file was being downloaded by a specific port or protocol.

packed to not have information about what type or what data it is carrying. there is now way to determine it is or is not exe file or whatever other file.

as suggested you can do that only by proxy as it is seeing actual files not just chunks of data in packet payload.