Skip to content
Snippets Groups Projects
Unverified Commit 2c058da4 authored by Joel Takvorian's avatar Joel Takvorian Committed by GitHub
Browse files

[Trivial] Add config examples, + a link to RFC (#715)

* Add config examples, + a link to RFC

* regen bytecode
parent c1297afe
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#define DNS_QR_FLAG 0x8000 #define DNS_QR_FLAG 0x8000
#define UDP_MAXMSG 512 #define UDP_MAXMSG 512
// See https://www.rfc-editor.org/rfc/rfc1035 4.1.1. Header section format
struct dns_header { struct dns_header {
u16 id; u16 id;
u16 flags; u16 flags;
......
## Simple example using direct-flp + stdout
```bash
export FLP_CONFIG=$(cat ./examples/direct-flp/simple-stdout.json)
export EXPORT="direct-flp"
sudo -E bin/netobserv-ebpf-agent
```
{
"pipeline":[
{"name": "writer","follows": "preset-ingester"}
],
"parameters":[
{"name": "writer","write": {"type": "stdout"}}
]
}
## Simple example filtering on a single IP
```bash
export ENABLE_FLOW_FILTER="true"
export FLOW_FILTER_RULES=$(cat ./examples/filters/single-ip.json)
sudo -E bin/netobserv-ebpf-agent
```
[
{"ip_cidr":"192.168.1.20/32", "action": "Accept"}
]
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment