add layer7 patterns to iptables-mod-filter
[openwrt-10.03/.git] / package / iptables / files / l7 / irc.pat
1 # IRC - Internet Relay Chat - RFC 1459
2 # Pattern quality: good veryfast
3 #
4 # Usually runs on port 6666 or 6667
5 # Note that chat traffic runs on these ports, but IRC-DCC traffic (which
6 # can use much more bandwidth) uses a dynamically assigned port, so you 
7 # must have the IRC connection tracking module in your kernel to classify
8 # this.
9 #
10 # This pattern has been tested and is believed to work well.  If it does not
11 # work for you, or you believe it could be improved, please post to 
12 # l7-filter-developers@lists.sf.net .  This list may be subscribed to at
13 # http://lists.sourceforge.net/lists/listinfo/l7-filter-developers
14
15 irc
16 # First thing that happens is that the client sends NICK and USER, in 
17 # either order.  This allows MIRC color codes (\x02-\x0d instead of
18 # \x09-\x0d).
19 ^(nick[\x09-\x0d -~]*user[\x09-\x0d -~]*:|user[\x09-\x0d -~]*:[\x02-\x0d -~]*nick[\x09-\x0d -~]*\x0d\x0a)
20