summaryrefslogtreecommitdiff
path: root/package/iptables/files/l7/smtp.pat
diff options
context:
space:
mode:
authorTim Yardley <lst@openwrt.org>2007-11-19 23:07:00 +0000
committerTim Yardley <lst@openwrt.org>2007-11-19 23:07:00 +0000
commit85b17a4e9e515a74095ecc691e60fd62e4819a9d (patch)
treeb3336ad58be12cce16152ac9809852b8a02ef7bf /package/iptables/files/l7/smtp.pat
parentc439768c9af677c22fb2893c467e9fec89dfff21 (diff)
downloadmtk-20170518-85b17a4e9e515a74095ecc691e60fd62e4819a9d.zip
mtk-20170518-85b17a4e9e515a74095ecc691e60fd62e4819a9d.tar.gz
mtk-20170518-85b17a4e9e515a74095ecc691e60fd62e4819a9d.tar.bz2
update stripped subset of l7 patterns to 11-03-2007 patterns
SVN-Revision: 9582
Diffstat (limited to 'package/iptables/files/l7/smtp.pat')
-rw-r--r--package/iptables/files/l7/smtp.pat22
1 files changed, 11 insertions, 11 deletions
diff --git a/package/iptables/files/l7/smtp.pat b/package/iptables/files/l7/smtp.pat
index 1bab7a1..eb98ae7 100644
--- a/package/iptables/files/l7/smtp.pat
+++ b/package/iptables/files/l7/smtp.pat
@@ -1,22 +1,17 @@
# SMTP - Simple Mail Transfer Protocol - RFC 2821 (See also RFC 1869)
-# Pattern quality: great fast
+# Pattern attributes: great notsofast fast
+# Protocol groups: mail ietf_internet_standard
+# Wiki: http://www.protocolinfo.org/wiki/SMTP
+#
# usually runs on port 25
#
-# This pattern has been tested and is believed to work well. 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
+# This pattern has been tested and is believed to work well.
-smtp
# As usual, no text is required after "220", but all known servers have some
# there. It (almost?) always has string "smtp" in it. The RFC examples
# does not, so we match those too, just in case anyone has copied them
# literally.
-^220[\x09-\x0d -~]* (e?smtp|simple mail)
-
-# This is ~3x faster if the stream starts with "220"
-#^220.* (e?smtp|simple mail)
-
+#
# Some examples:
# 220 mail.stalker.com ESMTP CommuniGate Pro 4.1.3
# 220 mail.vieodata.com ESMTP Merak 6.1.0; Mon, 15 Sep 2003 13:48:11 -0400
@@ -37,3 +32,8 @@ smtp
# RFC examples:
# 220 xyz.com Simple Mail Transfer Service Ready (RFC example)
# 220 dbc.mtview.ca.us SMTP service ready
+
+smtp
+^220[\x09-\x0d -~]* (e?smtp|simple mail)
+userspace pattern=^220[\x09-\x0d -~]* (E?SMTP|[Ss]imple [Mm]ail)
+userspace flags=REG_NOSUB REG_EXTENDED