summaryrefslogtreecommitdiff
path: root/openwrt/package/iptables/files/l7/fasttrack.pat
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-18 16:17:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-18 16:17:27 +0000
commit198e0eb8415bbe4dfac5bde95f524f86bd6f0bf9 (patch)
treedaa920abf3c10575e4b45f96a4a9f318f5a47b1a /openwrt/package/iptables/files/l7/fasttrack.pat
parent7164dc5f27f8de29b1f5a110f1997d8c5af1d7fe (diff)
downloadmtk-20170518-198e0eb8415bbe4dfac5bde95f524f86bd6f0bf9.zip
mtk-20170518-198e0eb8415bbe4dfac5bde95f524f86bd6f0bf9.tar.gz
mtk-20170518-198e0eb8415bbe4dfac5bde95f524f86bd6f0bf9.tar.bz2
add layer7 patterns to iptables-mod-filter
SVN-Revision: 2519
Diffstat (limited to 'openwrt/package/iptables/files/l7/fasttrack.pat')
-rw-r--r--openwrt/package/iptables/files/l7/fasttrack.pat25
1 files changed, 25 insertions, 0 deletions
diff --git a/openwrt/package/iptables/files/l7/fasttrack.pat b/openwrt/package/iptables/files/l7/fasttrack.pat
new file mode 100644
index 0000000..46295c6
--- /dev/null
+++ b/openwrt/package/iptables/files/l7/fasttrack.pat
@@ -0,0 +1,25 @@
+# FastTrack - P2P filesharing (Kazaa, Morpheus, iMesh, Grokster, etc)
+# Pattern quality: good notsofast
+#
+# Tested with Kazaa Lite Resurrection 0.0.7.6F
+#
+# This appears to match the download connections well, but not the search
+# connections (I think they are encrypted :-( ).
+#
+# Please post to l7-filter-developers@lists.sf.net as to whether it works
+# for you or not. If you believe it could be improved please post your
+# suggestions to that list as well. You may subscribe to this list at
+# http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
+
+fasttrack
+# while this is a valid http request, this will be caught because
+# the http pattern matches the response (and therefore the next packet)
+# Even so, it's best to put this match earlier in the chain.
+# http://cvs.berlios.de/cgi-bin/viewcvs.cgi/gift-fasttrack/giFT-FastTrack/PROTOCOL?rev=HEAD&content-type=text/vnd.viewcvs-markup
+
+# This pattern is kinda slow, but not too bad.
+^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]?
+
+# This isn't much faster:
+#^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]?
+