fasttrack.pat 1.4 KB

12345678910111213141516171819202122232425
  1. # FastTrack - P2P filesharing (Kazaa, Morpheus, iMesh, Grokster, etc)
  2. # Pattern quality: good notsofast
  3. #
  4. # Tested with Kazaa Lite Resurrection 0.0.7.6F
  5. #
  6. # This appears to match the download connections well, but not the search
  7. # connections (I think they are encrypted :-( ).
  8. #
  9. # Please post to l7-filter-developers@lists.sf.net as to whether it works
  10. # for you or not. If you believe it could be improved please post your
  11. # suggestions to that list as well. You may subscribe to this list at
  12. # http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
  13. fasttrack
  14. # while this is a valid http request, this will be caught because
  15. # the http pattern matches the response (and therefore the next packet)
  16. # Even so, it's best to put this match earlier in the chain.
  17. # http://cvs.berlios.de/cgi-bin/viewcvs.cgi/gift-fasttrack/giFT-FastTrack/PROTOCOL?rev=HEAD&content-type=text/vnd.viewcvs-markup
  18. # This pattern is kinda slow, but not too bad.
  19. ^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]?
  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]?