Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/vxlan-decoder-04-strip/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Description

Test basic VXLAN decoding

# PCAP

Pcap from https://github.com/OISF/suricata/pull/3847/files
Binary file added tests/vxlan-decoder-04-strip/input.pcap
Binary file not shown.
22 changes: 22 additions & 0 deletions tests/vxlan-decoder-04-strip/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
requires:
features:
- HAVE_LIBJANSSON

args:
- --set decoder.vxlan.enabled=true
- --set decoder.vxlan.mode=strip

checks:
- filter:
count: 1
match:
event_type: flow
src_port: 53
dest_port: 12345
- filter:
count: 1
match:
event_type: flow
src_port: 32021
dest_port: 12345

7 changes: 7 additions & 0 deletions tests/vxlan-decoder-05-strip/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Description

Test basic VXLAN decoding

# PCAP

https://github.com/the-tcpdump-group/tcpdump/blob/master/tests/vxlan.pcap
1 change: 1 addition & 0 deletions tests/vxlan-decoder-05-strip/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert icmp any any -> any any (itype:8; sid:1;)
25 changes: 25 additions & 0 deletions tests/vxlan-decoder-05-strip/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
requires:
features:
- HAVE_LIBJANSSON
args:
- --set decoder.vxlan.enabled=true
- --set decoder.vxlan.mode=strip

checks:
- filter:
count: 1
match:
event_type: flow
proto: "ICMP"
flow.pkts_toserver: 4
flow.pkts_toclient: 4
- filter:
count: 0
match:
event_type: flow
dest_port: 4789
- filter:
count: 0
match:
event_type: alert
tunnel.dest_port: 4789
Binary file added tests/vxlan-decoder-05-strip/vxlan.pcap
Binary file not shown.