summaryrefslogtreecommitdiffstats
path: root/usr/local/share/protocols/h323.pat
blob: 75b1a394acbffa04e9efc354e43954e6c6573eb5 (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
25
26
27
28
29
30
31
32
33
34
35
36
# H.323 - Voice over IP.
# Pattern attributes: ok veryfast fast
# Protocol groups: voip itu-t_standard
# Wiki: http://www.protocolinfo.org/wiki/H.323
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
#
# This pattern is written without knowledge of the principles of H.323.
# It has only been tested with gnomemeeting and may not work for other
# clients. 
#
# Also, it has been reported that:
# "the pattern ... match[es] only first H.323 stream (conntrack for H.323 was 
# enabled).  Also the major chunk of traffic was of RTP which went untracked."
#
# Also, it may very well match other things that use TPKT and
# Q.931. 

# Note that to take full advantage of this pattern, you will need to
# have connection tracking of H.323 support in your kernel.  This
# support is not in the stock kernel.  A patch can be found at
# http://netfilter.org

h323
# TPKT format: http://www.ietf.org/rfc/rfc1006.txt
# \x03 = TPKT version.  It was 3 in May 1987 and gnomemeeting still uses 3.
# ..? = null reserved byte and packet length field.
# Q.931 format: http://www.freesoft.org/CIE/Topics/126.htm
# \x08  = Q.931
# . = length of call reference
# The next byte was: \x18 = message sent from originating side.
# But based on experimentation, it seems that just . is better. 
# .?.?.?.?.?.?.?.?.?.?.?.?.?.?.? = call reference (0-15 bytes (0 for nulls))
# \x05 = setup message
#
# Yup, it doesn't actually include any H.323 protocol information.
^\x03..?\x08...?.?.?.?.?.?.?.?.?.?.?.?.?.?.?\x05
OpenPOWER on IntegriCloud