--- /dev/null
+# Test
+
+Check for proper engine behavior for IPv4 over IPv4 tunneling.
+
+## Pcap
+
+Shared by reporter on Redmine ticket.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/4571
+https://redmine.openinfosecfoundation.org/issues/7752
--- /dev/null
+%YAML 1.1
+---
+
+stats:
+ enabled: yes
+ interval: 8
+
+logging:
+ default-log-level: notice
+ default-output-filter:
+ outputs:
+ - console:
+ enabled: yes
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - drop:
+ alerts: yes
+ - flow
+ - stats
--- /dev/null
+alert tcp any any -> any any (msg:"found"; content: "hello"; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- -k none
+- --simulate-ips
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ pkt_src: wire/pcap
+ proto: TCP
+ pkt_src: ipv4 tunnel
+ src_ip: 10.1.0.3
+ dest_ip: 10.1.0.4
+ tunnel.src_ip: 10.1.0.1
+ tunnel.dest_ip: 10.1.0.2
+ tunnel.proto: IP-in-IP
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: IP-in-IP
+ src_ip: 10.1.0.1
+ dest_ip: 10.1.0.2
+ flow.alerted: false
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: TCP
+ src_ip: 10.1.0.3
+ dest_ip: 10.1.0.4
+ flow.alerted: true
+ - filter:
+ count: 1
+ match:
+ event_type: stats
+ stats.decoder.ipv4_in_ipv4: 1
--- /dev/null
+# Test
+
+Check for proper engine behavior for IPv6 decoding.
+
+## Pcap
+
+Shared by reporter on Redmine ticket.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/4571
+
--- /dev/null
+%YAML 1.1
+---
+
+stats:
+ enabled: yes
+ interval: 8
+
+logging:
+ default-log-level: notice
+ default-output-filter:
+ outputs:
+ - console:
+ enabled: yes
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - drop:
+ alerts: yes
+ - flow
--- /dev/null
+alert tcp any any -> any any (msg:"found"; content: "hello"; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- -k none
+- --simulate-ips
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ pkt_src: wire/pcap
+ proto: TCP
+ ip_v: 6
+ pkt_src: wire/pcap
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: TCP
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ flow.alerted: true
--- /dev/null
+# Test
+
+Check for proper engine behavior for IPv6 over IPv6 tunneling.
+
+## Pcap
+
+Shared by reporter on Redmine ticket.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/4571
--- /dev/null
+%YAML 1.1
+---
+
+stats:
+ enabled: yes
+ interval: 8
+
+logging:
+ default-log-level: notice
+ default-output-filter:
+ outputs:
+ - console:
+ enabled: yes
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - drop:
+ alerts: yes
+ - flow
--- /dev/null
+alert tcp any any -> any any (msg:"found"; content: "hello"; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- -k none
+- --simulate-ips
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ pkt_src: ipv6 tunnel
+ proto: TCP
+ ip_v: 6
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:8334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:8335
+ tunnel.src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ tunnel.dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ tunnel.proto: IPv6
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: TCP
+ ip_v: 6
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:8334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:8335
+ flow.alerted: true
+ - filter:
+ count: 1
+ match:
+ proto: IPv6
+ ip_v: 6
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ - filter:
+ count: 2
+ match:
+ event_type: flow
--- /dev/null
+# Test
+
+Check for proper engine behavior for IPv6 over IPv4 tunneling.
+
+## Pcap
+
+Shared by reporter on Redmine ticket.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/4571
+https://redmine.openinfosecfoundation.org/issues/7752
+
--- /dev/null
+%YAML 1.1
+---
+
+stats:
+ enabled: yes
+ interval: 8
+
+logging:
+ default-log-level: notice
+ default-output-filter:
+ outputs:
+ - console:
+ enabled: yes
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - drop:
+ alerts: yes
+ - flow
+ - stats
--- /dev/null
+alert tcp any any -> any any (msg:"found"; content: "hello"; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- -k none
+- --simulate-ips
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ pkt_src: wire/pcap
+ proto: TCP
+ pkt_src: ipv4 tunnel
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ tunnel.src_ip: 10.1.0.1
+ tunnel.dest_ip: 10.1.0.2
+ tunnel.proto: IPv6
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: IPv6
+ src_ip: 10.1.0.1
+ dest_ip: 10.1.0.2
+ ip_v: 4
+ flow.alerted: false
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: TCP
+ ip_v: 6
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ flow.alerted: true
+ - filter:
+ count: 1
+ match:
+ event_type: stats
+ stats.decoder.ipv6_in_ipv4: 1
--- /dev/null
+# Test
+
+Check for proper engine behavior for IPv4 decoding.
+
+## Pcap
+
+Shared by reporter on Redmine ticket.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/4571
+
--- /dev/null
+%YAML 1.1
+---
+
+stats:
+ enabled: yes
+ interval: 8
+
+logging:
+ default-log-level: notice
+ default-output-filter:
+ outputs:
+ - console:
+ enabled: yes
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - drop:
+ alerts: yes
+ - flow
--- /dev/null
+alert tcp any any -> any any (msg:"found"; content: "hello"; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- -k none
+- --simulate-ips
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ pkt_src: wire/pcap
+ proto: TCP
+ ip_v: 4
+ pkt_src: wire/pcap
+ src_ip: 10.1.0.1
+ dest_ip: 10.1.0.2
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: TCP
+ src_ip: 10.1.0.1
+ dest_ip: 10.1.0.2
+ ip_v: 4
+ flow.alerted: true
--- /dev/null
+# Test
+
+Check for proper engine behavior for IPv4 over IPv6 tunneling.
+
+## Pcap
+
+Shared by reporter on Redmine ticket.
+
+## Ticket
+
+https://redmine.openinfosecfoundation.org/issues/4571
--- /dev/null
+%YAML 1.1
+---
+
+stats:
+ enabled: yes
+ interval: 8
+
+logging:
+ default-log-level: notice
+ default-output-filter:
+ outputs:
+ - console:
+ enabled: yes
+
+outputs:
+ - eve-log:
+ enabled: yes
+ filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+ filename: eve.json
+ types:
+ - alert
+ - drop:
+ alerts: yes
+ - flow
--- /dev/null
+alert tcp any any -> any any (msg:"found"; content: "hello"; sid:1;)
--- /dev/null
+requires:
+ min-version: 8
+
+args:
+- -k none
+- --simulate-ips
+- --set stream.midstream=true
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ proto: TCP
+ ip_v: 4
+ pkt_src: ipv6 tunnel
+ src_ip: 10.1.0.1
+ dest_ip: 10.1.0.2
+ tunnel.src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ tunnel.dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ tunnel.proto: IP-in-IP
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: TCP
+ ip_v: 4
+ src_ip: 10.1.0.1
+ dest_ip: 10.1.0.2
+ flow.alerted: true
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ proto: IP-in-IP
+ ip_v: 6
+ src_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
+ dest_ip: 2001:0db8:85a3:0000:0000:8a2e:0370:7335
+ flow.alerted: false
+ - filter:
+ count: 2
+ match:
+ event_type: flow