update stripped subset of l7 patterns to 11-03-2007 patterns
[openwrt/.git] / package / iptables / files / l7 / fasttrack.pat
1 # FastTrack - P2P filesharing (Kazaa, Morpheus, iMesh, Grokster, etc)
2 # Pattern attributes: good slow notsofast
3 # Protocol groups: p2p
4 # Wiki: http://www.protocolinfo.org/wiki/Fasttrack
5 #
6 # Tested with Kazaa Lite Resurrection 0.0.7.6F
7 #
8 # This appears to match the download connections well, but not the search
9 # connections (I think they are encrypted :-( ).
10
11 fasttrack
12 # while this is a valid http request, this will be caught because
13 # the http pattern matches the response (and therefore the next packet)
14 # Even so, it's best to put this match earlier in the chain.
15 # http://cvs.berlios.de/cgi-bin/viewcvs.cgi/gift-fasttrack/giFT-FastTrack/PROTOCOL?rev=HEAD&content-type=text/vnd.viewcvs-markup
16
17 # This pattern is kinda slow, but not too bad.
18 ^get (/.download/[ -~]*|/.supernode[ -~]|/.status[ -~]|/.network[ -~]*|/.files|/.hash=[0-9a-f]*/[ -~]*) http/1.1|user-agent: kazaa|x-kazaa(-username|-network|-ip|-supernodeip|-xferid|-xferuid|tag)|^give [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]?[0-9]?[0-9]?
19
20 # This isn't much faster:
21 #^get (/.download/.*|/.supernode.|/.status.|/.network.*|/.files|/.hash=[0-9a-f]*/.*) http/1.1|user-agent: kazaa|x-kazaa(-username|-network|-ip|-supernodeip|-xferid|-xferuid|tag)|^give [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]?[0-9]?[0-9]?
22