]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: ignoring traffic
authorJason Ish <ish@unx.ca>
Thu, 17 Dec 2015 17:25:08 +0000 (11:25 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 28 Sep 2016 11:11:10 +0000 (13:11 +0200)
doc/sphinx/performance/ignoring-traffic.rst [new file with mode: 0644]
doc/sphinx/performance/index.rst

diff --git a/doc/sphinx/performance/ignoring-traffic.rst b/doc/sphinx/performance/ignoring-traffic.rst
new file mode 100644 (file)
index 0000000..6e6f0db
--- /dev/null
@@ -0,0 +1,46 @@
+Ignoring Traffic
+================
+
+In some cases there are reasons to ignore certain traffic. Maybe a
+trusted host or network, or a site. This document lists some
+strategies for ignoring traffic.
+
+capture filters (BPF)
+---------------------
+
+Through BPFs the capture methods pcap, af-packet and pf_ring can be
+told what to send to Suricata, and what not. For example a simple
+filter 'tcp' will only send tcp packets.
+
+If some hosts and or nets need to be ignored, use something like "not
+(host IP1 or IP2 or IP3 or net NET/24)".
+
+pass rules
+----------
+
+Pass rules are Suricata rules that if matching, pass the packet and in
+case of TCP the rest of the flow. They look like normal rules, except
+that instead of 'alert' or 'drop' they start with 'pass'.
+
+Example:
+
+::
+
+  pass ip 1.2.3.4 any <> any any (msg:"pass all traffic from/to 1.2.3.4"; sid:1;)
+
+A big difference with capture filters is that logs such as http.log
+are still generated for this traffic.
+
+suppress
+--------
+
+Suppress rules can be used to make sure no alerts are generated for a
+host. This is not efficient however, as the suppression is only
+considered post-matching. In other words, Suricata first inspects a
+rule, and only then will it consider per-host suppressions.
+
+Example:
+
+::
+
+  suppress gen_id 0, sig_id 0, track by_src, ip 1.2.3.4
index 9fc1cd4af9ab931247dc7e8668e44cc38ad4b29b..b06bee6f5862ef7ee0590d1c1d51202b4120d49c 100644 (file)
@@ -10,3 +10,4 @@ Performance
    rule-profiling
    runmodes
    tcmalloc
+   ignoring-traffic