Commit Graph

6 Commits (5ddd808e9bc737ea0699b4822ac609c456744310)

Author SHA1 Message Date
Victor Julien 49783fa9f7 github-ci: add namespace based IPS tests
Implementing a bridge test with af-packet IPS and a routing test
with iptables + nfqueue.

Very helpful explanation and guidance on network namespaces can be
found here: https://www.redhat.com/en/blog/net-namespaces

Sets up 3 network namespaces:
1. client - for running client tools like ping, curl, wget
2. server - for running a server, currently only Caddy
3. dut - for running Suricata, this namespace connects the client and
   server namespaces

Validate IPS operations in 3 ways:
1. check return codes of the client tools
2. check Suricata's IPS stats
3. use tshark to validate expected drops

Run Suricata in AF_PACKET IPS mode for both autofp and workers mode. Do
the same for NFQUEUE.

Tshark's JSON output is used with JQ to validate that pings are dropped.

All tests are codecov enabled.
5 months ago
Victor Julien ae10fc3de4 codecov: expect 5 flags to be submitted
Flags are:
- unittests
- suricata-verify
- pcap
- livemode
- fuzzcorpus

This should make sure codecov only adds its report after receiving
the results for each of the flags.
2 years ago
Victor Julien 377ce6b679 codecov: fix informational; disable github annotations 4 years ago
Victor Julien da7eff61cc codecov: set to informational 4 years ago
Victor Julien 3ce05a3583 fuzz: run OSS-Fuzz corpus and track coverage 5 years ago
Victor Julien 5303901790 github: add codecov.yml
Don't report until both cov runs are available to avoid partial
reporting in pull request comments.
6 years ago