-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnntp.pat
More file actions
18 lines (16 loc) · 871 Bytes
/
nntp.pat
File metadata and controls
18 lines (16 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# NNTP - Network News Transfer Protocol (RFC 977, 2980)
# usually runs on port 119
# This pattern is tested and is believed to work well (but could use more
# testing). 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
nntp
# matches authorized login
# OR
# matches unauthorized login if the server says "news" after 20(0|1)
# (Half of the 2 servers I tested did :-), but they both required authorization
# so it's quite possible that this pattern will miss some nntp traffic.)
20(0|1)[\x09-\x0d -~]*AUTHINFO USER|20(0|1)[\x09-\x0d -~]*news
# same thing, slightly more accurate, but about 8 times slower
#20(0|1)[\x09-\x0d -~]*\x0d\x0a[\x09-\x0d -~]*AUTHINFO USER|20(0|1)[\x09-\x0d -~]*news