summaryrefslogtreecommitdiff
path: root/package/iptables/files/l7/jabber.pat
blob: 7a0c6840e147d2242a29ce1eabae91c6ee2b24b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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