Limiting TCP 80 But Unlimited HTTP ???

Hey All,
I Found Layar7 In wiki.Mikrotik, And Use Http layer 7 Then Bulid A Mangle To Identify HTTP Packets
Then Bulide A Mangle 4 TCP 80 , !http(layaer7)
chain=prerouting action=mark-packet new-packet-mark=!WWW passthrough=no protocol=tcp layer7-protocol=!http dst-port=80

Then Run A Simple Queue For An IP With Packet mark !WWW, But it Dosent Work!
I Want To Limit All TCP 80, Packets.But Unlimited HTTP Browsing

Plz Help

So you want to paint the wall Red, but you don’t want it to be Red?

What you said, makes NO sense, what so ever…

Post all your mangle rules, and all your layer 7 rules, and try and explain better what you are trying to achieve…

chain=prerouting action=mark-packet new-packet-mark=!WWW passthrough=no protocol=tcp layer7-protocol=!http dst-port=80

Based on what you said, that just makes no sense without seeing the layer 7 rule, what so ever.

Tanx 4 your Reply.

My layaer 7:
/ip firewall layer7-protocol
add comment=“” name=http regexp=“http/(0\.9|1\.0|1\.1) [1-5][0-9][0-9] [\t-\r -~](connection:|content-type:|content-le
ngth:|date:)|post [\t-\r -~]
http/[01]\.[019]”

Mangle :
add action=mark-packet chain=prerouting comment=“www ! HTTP” disabled=no dst-port=80 layer7-protocol=!http
new-packet-mark=!WWW passthrough=no protocol=tcp

Then A Queue With Packet Mark “!www” 4 Limiting An IP x.x.x.x
So , Client Can Browse Without Queue, But Queued On Downloading Over Port 80.

Thats All I Want.
Tanx

there are no browsing there is only downloading of larger and smaller fails. that either can be recognised by special program and interpreted to show graphical information instead of text or binary code of some files that are downloaded.

Use connection-bytes in mangle rules.

Thank you,
But Plz Explain a little More :slight_smile:

Let’s assume that to open a web page you will download 512KB, so when you mangle traffic use connection-bytes=1-512000 for WEB, and for the downloads connection-bytes=512000-0, this is just an example the bytes you can divide as you wish.

Regards.

Faton

Thank You So,
Ill Try It!