mirror of https://github.com/OISF/suricata
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Extend the app-layer-protocol keyword to accept a pipe-separated list of
protocol values, so a single rule can match any of several protocols:
app-layer-protocol:[!]<proto1>|<proto2>[|...][,<qualifier>]...;
A non-negated list matches when the flow's protocol equals any listed value
(OR); a negated list matches when it equals none of them (NOR). The
single-value form and the trailing mode qualifier are unchanged.
Matching keeps the historical AppProtoEquals() equivalences by default
(dns/doh2, http/http1/http2, dcerpc/smb, ...). An `exact` qualifier selects
strict identity matching with no equivalences and no http umbrella; it
combines with a direction mode in any order. Because a flow is never the
generic ALPROTO_HTTP, `http,exact` is rejected at load.
Values are expanded once at rule load into an effective match-set bitmask, so
the per-packet match is a single bitmask test. Single-value rules remain
prefilterable; multi-value rules are excluded from prefiltering and an
explicit prefilter on them is rejected. Conflicting keyword combinations
(duplicate or overlapping negations, mixed positive/negated) are rejected at
load. Engine-analysis reports the effective match set.
Ticket: 7705
|
1 month ago | |
|---|---|---|
| .. | ||
| dataset-examples | 3 years ago | |
| dns-keywords | 10 years ago | |
| fast-pattern | 10 years ago | |
| flow-keywords | 6 years ago | |
| header-keywords | 9 years ago | |
| http-keywords | 6 years ago | |
| intro | 9 years ago | |
| normalized-buffers | 10 years ago | |
| payload-keywords | 6 months ago | |
| pcre | 9 years ago | |
| rule-types | 2 years ago | |
| app-layer.rst | 1 month ago | |
| base64-keywords.rst | 1 year ago | |
| bypass-keyword.rst | 2 months ago | |
| config.rst | 3 months ago | |
| datasets.rst | 2 months ago | |
| dcerpc-keywords.rst | 4 months ago | |
| decode-layer.rst | 11 months ago | |
| dhcp-keywords.rst | 4 months ago | |
| differences-from-snort.rst | 3 months ago | |
| dnp3-keywords.rst | 9 months ago | |
| dns-keywords.rst | 3 months ago | |
| email-keywords.rst | 11 months ago | |
| enip-keyword.rst | 1 month ago | |
| fast-pattern-explained.rst | 3 years ago | |
| file-keywords.rst | 3 months ago | |
| flow-keywords.rst | 2 months ago | |
| ftp-keywords.rst | 1 month ago | |
| header-keywords.rst | 4 months ago | |
| http-keywords.rst | 4 months ago | |
| http2-keywords.rst | 10 months ago | |
| ike-keywords.rst | 6 months ago | |
| index.rst | 2 months ago | |
| integer-keywords.rst | 9 months ago | |
| intro.rst | 4 months ago | |
| ip-reputation-rules.rst | 3 months ago | |
| ipaddr.rst | 4 years ago | |
| ja-keywords.rst | 3 months ago | |
| kerberos-keywords.rst | 1 month ago | |
| ldap-keywords.rst | 11 months ago | |
| llmnr-keywords.rst | 2 months ago | |
| lua-detection.rst | 1 year ago | |
| mdns-keywords.rst | 3 months ago | |
| meta.rst | 4 months ago | |
| modbus-keyword.rst | 8 years ago | |
| mqtt-keywords.rst | 3 months ago | |
| multi-buffer-matching.rst | 4 months ago | |
| nfs-keywords.rst | 11 months ago | |
| noalert.rst | 4 months ago | |
| ntp-keywords.rst | 4 months ago | |
| payload-keywords.rst | 1 month ago | |
| pgsql-keywords.rst | 4 months ago | |
| prefilter-keywords.rst | 3 months ago | |
| quic-keywords.rst | 3 years ago | |
| rfb-keywords.rst | 2 years ago | |
| rule-types.rst | 11 months ago | |
| rules-internals.rst | 11 months ago | |
| sctp-keywords.rst | 2 months ago | |
| sdp-keywords.rst | 1 year ago | |
| sip-keywords.rst | 2 years ago | |
| smb-keywords.rst | 4 months ago | |
| smtp-keywords.rst | 4 months ago | |
| snmp-keywords.rst | 4 months ago | |
| ssh-keywords.rst | 4 months ago | |
| tag.rst | 3 years ago | |
| thresholding.rst | 6 months ago | |
| tls-keywords.rst | 4 months ago | |
| transforms.rst | 2 months ago | |
| vlan-keywords.rst | 2 years ago | |
| websocket-keywords.rst | 10 months ago | |
| xbits.rst | 3 months ago | |