]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add vxlan with ssh test 83/head
authorVictor Julien <victor@inliniac.net>
Fri, 28 Jun 2019 08:52:08 +0000 (10:52 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 28 Jun 2019 09:22:37 +0000 (11:22 +0200)
tests/vxlan-decoder-03/README.md [new file with mode: 0644]
tests/vxlan-decoder-03/test.yaml [new file with mode: 0644]
tests/vxlan-decoder-03/vxlan.pcap [new file with mode: 0644]

diff --git a/tests/vxlan-decoder-03/README.md b/tests/vxlan-decoder-03/README.md
new file mode 100644 (file)
index 0000000..6acdd4f
--- /dev/null
@@ -0,0 +1,8 @@
+# Description
+
+Test basic VXLAN decoding by tracking SSH over VXLAN
+
+# PCAP
+
+Pcap provided by Eric Leblond. Captured using AWS traffic mirror feature.
+
diff --git a/tests/vxlan-decoder-03/test.yaml b/tests/vxlan-decoder-03/test.yaml
new file mode 100644 (file)
index 0000000..1611b4f
--- /dev/null
@@ -0,0 +1,29 @@
+requires:
+  min-version: 5.0.0
+  features:
+    - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 13
+      match:
+        event_type: flow
+        dest_port: 4789
+        flow.pkts_toclient: 0
+        flow.bytes_toclient: 0
+  - filter:
+      count: 4
+      match:
+        event_type: ssh
+        dest_port: 22
+  - filter:
+      count: 1
+      match:
+        event_type: flow
+        app_proto: ntp
+        dest_port: 123
+  - filter:
+      count: 8
+      match:
+        event_type: dns
+        dns.rrname: "ec2-18-196-145-224.eu-central-1.compute.amazonaws.com"
diff --git a/tests/vxlan-decoder-03/vxlan.pcap b/tests/vxlan-decoder-03/vxlan.pcap
new file mode 100644 (file)
index 0000000..c71d5dc
Binary files /dev/null and b/tests/vxlan-decoder-03/vxlan.pcap differ