If they stream through https you can't do anything!Man, people using https. what to do?!!
/ip firewall layer7-protocol
add name=validcertssl regexp="^(.\?.\?\\x16\\x03.*\\x16\ \x03|.\?.\?\\x01\\x03\\x01\?.*\\x0b).*(thawte|equifax secure|rsa data security, inc|verisign, inc|gte cybertrust root|entrust\\.net limited)"
i haven't seen yet a layer 7 regex for https of any kind!
but... i might be wrong. if i am... i would like to see it
My bad, we were talking about streaming over https, I should have mentioned it!really is a reply for
i haven't seen yet a layer 7 regex for https of any kind!
but... i might be wrong. if i am... i would like to see it
That's why I say just identify IPs from which a lot of data is downloaded in individual connections. Add those IPs to an address-list. Shape traffic to those IPs.the whole reason of https is its name.... secure... it uses a ssl. the packets are encripted, you won't be able to see what the packet is even with layer 7, that's the whole point.
many have tried but i haven't seen a model working.
i haven't seen yet a layer 7 regex for https of any kind!
but... i might be wrong. if i am... i would like to see it :)
cheers
with ros 6.25 not work more ?Here is what I use in my boards and it is working perfect. Just to clarify I found the rules somewhere on the internet or even this forum, but I don't remember exactly where to credit them atm.
The idea is to inspect the header of the packets and see if they contain the keyword we need, in this case youtube, but can be substituted for other streaming site :
/ip firewall mangle add action=add-dst-to-address-list address-list=Youtube address-list-timeout=10m chain=prerouting comment=youtube content=youtube.com dst-port=80,443 protocol=tcp
This puts the ip's in an address list, next we mark the packets :
/ip firewall mangle add action=mark-packet chain=forward comment=youtube new-packet-mark=Youtube passthrough=no src-address-list=Youtube
Now we have marked all the packets. And you can use that for queue's or whatever you need.
This even works for https, because the GET query goes to the server in plain text.
/ip firewall mangle add action=add-dst-to-address-list address-list=Youtube address-list-timeout=10m chain=prerouting comment=youtube content=youtube.com dst-port=80,443 protocol=tcp
this first rule for me not working:marking packet is work because I have list ...Code: Select all/ip firewall mangle add action=add-dst-to-address-list address-list=Youtube address-list-timeout=10m chain=prerouting comment=youtube content=youtube.com dst-port=80,443 protocol=tcp
EDIT sory it work my mistake ... im litle modify