* Anand SVR <[EMAIL PROTECTED]> 2005-07-27 23:17 > As a starting point, I would like to define classification rules such > that web access to > *.edu OR *.net OR *.org can be put under one bandwidth chunk. Public > mail sites such as *.yahoo.com OR gmail.com OR *hotmail.com under a > different chunk. The rest goes to default chunk, and so on. If any one > category is not using its bandwidth share, others should be able to > borrow the bandwidth. Of course smtp and other kinds of traffic will > be given their quota. > > Can I do the above kind of classification, and subsequently bandwidth > allocation based on text based wildcard with logical operators such as > above using any of the existing options available under Linux ? Am I > asking for a moon ? :)
You can probably achieve this by using iptables to either mark or classify the packets. Another possible route is to use the new textsearch ematch although it's probably more efficient to write an own ematch for this partially parsing the HTTP header. The problem there is that the connection tracking part is still missing but that will be added soon. So basically your filter would look like: u32 classifier dport 80 ematch conntrack_get(full tuple) AND ematch http(edu) OR ematch http(net) OR ematch http(org) action conntrack_put(full tuple) This would be just one out of various possible solutions to address the above problem. I'll let you know once we have the conntrack bits in the packet classification layer. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html