aboutsummaryrefslogtreecommitdiffstats
path: root/package/iptables/files/l7/jabber.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
commit4f330ac6d98dabd3a0710918f68cfdb8bcd38d9f (patch)
treea7481f67f879a9177ede16fce6b062cca0ebcf3b /package/iptables/files/l7/jabber.pat
parent72582c721989d47b78485678fef600a302962fa5 (diff)
downloadupstream-4f330ac6d98dabd3a0710918f68cfdb8bcd38d9f.tar.gz
upstream-4f330ac6d98dabd3a0710918f68cfdb8bcd38d9f.tar.bz2
upstream-4f330ac6d98dabd3a0710918f68cfdb8bcd38d9f.zip
add layer7 patterns to iptables-mod-filter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2519 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iptables/files/l7/jabber.pat')
-rw-r--r--package/iptables/files/l7/jabber.pat24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/iptables/files/l7/jabber.pat b/package/iptables/files/l7/jabber.pat
new file mode 100644
index 0000000000..7a0c6840e1
--- /dev/null
+++ b/package/iptables/files/l7/jabber.pat
@@ -0,0 +1,24 @@
+# Jabber (XMPP) - an open instant messenger protocol - http://jabber.org
+# Pattern quality: good fast
+#
+# This pattern has been tested with Gaim and Gabber. It is only tested
+# with non-SSL mode Jabber with no proxies. If it does not
+# work for you, or you believe it could be improved, please post to
+# l7-filter-developers@lists.sf.net . This list may be subscribed to at
+# http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
+
+# Thanks to Jan Hudec for some improvements.
+
+# Jabber seems to take a long time to set up a connection. I'm
+# connecting with Gabber 0.8.8 to 12jabber.org and the first 8 packets
+# is this:
+# <stream:stream to='12jabber.com' xmlns='jabber:client'
+# xmlns:stream='http://etherx.jabber.org/streams'><?xml
+# version='1.0'?><stream:stream
+# xmlns:stream='http://etherx.jabber.org/streams' id='3f73e951'
+# xmlns='jabber:client' from='12jabber.com'>
+#
+# No mention of my username or password yet, you'll note.
+
+jabber
+<stream:stream[\x09-\x0d ][ -~]*[\x09-\x0d ]xmlns=['"]jabber