--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ types:
+ - alert:
+ tagged-packets: yes
+ - tls:
+ extended: no # enable this for extended logging information
+ - drop:
+ alerts: yes # log alerts that caused drops
+ flows: start # start or all: 'start' logs only a single drop
+ - flow
--- /dev/null
+drop ip 100.117.241.123 any -> any any (sid:1;)
+drop ip 100.64.4.146 any -> any any (sid:2;)
--- /dev/null
+requirements:
+ min-version: 6
+
+args:
+- -k none
+- --simulate-ips
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ alert.action: blocked
+ pcap_cnt: 1
+ - filter:
+ count: 1
+ match:
+ event_type: drop
+ alert.signature_id: 1
+ alert.action: blocked
+ pcap_cnt: 1
+ drop.reason: rules
+ - filter:
+ count: 1
+ match:
+ event_type: drop
+ pcap_cnt: 2
+ drop.reason: flow drop
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ flow.action: drop
+ tcp.state: syn_sent
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - eve-log:
+ enabled: yes
+ types:
+ - alert:
+ tagged-packets: yes
+ - tls:
+ extended: no # enable this for extended logging information
+ - drop:
+ alerts: yes # log alerts that caused drops
+ flows: start # start or all: 'start' logs only a single drop
+ - flow
--- /dev/null
+drop ip 192.168.10.31 any -> any any (sid:1;)
+drop ip 192.168.10.10 any -> any any (sid:2;)
--- /dev/null
+requirements:
+ min-version: 6
+
+args:
+- -k none
+- --simulate-ips
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ alert.action: blocked
+ pcap_cnt: 1
+ - filter:
+ count: 1
+ match:
+ event_type: drop
+ alert.signature_id: 1
+ alert.action: blocked
+ pcap_cnt: 1
+ drop.reason: rules
+ - filter:
+ count: 1
+ match:
+ event_type: drop
+ pcap_cnt: 4
+ drop.reason: flow drop
+ - filter:
+ count: 1
+ match:
+ event_type: flow
+ flow.action: drop