aboutsummaryrefslogtreecommitdiff
path: root/test-data
diff options
context:
space:
mode:
authorSupremist <sergkarv@gmail.com>2026-07-09 18:23:11 +0300
committerSupremist <sergkarv@gmail.com>2026-07-09 18:23:11 +0300
commite3012776a657e7a1d84f6c77f57a7730480597ca (patch)
tree1b3c51de8497679e5df6e0ede36b23eecf05d18c /test-data
parentf0aaa78ab5c49d3a6c702cc58e8b4983855c836e (diff)
downloadnetbird-e3012776a657e7a1d84f6c77f57a7730480597ca.tar.xz
netbird-e3012776a657e7a1d84f6c77f57a7730480597ca.zip
Update netbird ips in nft sets on monitor events
Diffstat (limited to 'test-data')
-rw-r--r--test-data/mock-nft-mon.nu4
-rw-r--r--test-data/nft-mon-output.json3
2 files changed, 7 insertions, 0 deletions
diff --git a/test-data/mock-nft-mon.nu b/test-data/mock-nft-mon.nu
new file mode 100644
index 0000000..9048dc3
--- /dev/null
+++ b/test-data/mock-nft-mon.nu
@@ -0,0 +1,4 @@
+const events = 'test-data/nft-mon-output.json'
+open --raw $events | lines | each { sleep 1sec; print $in } | ignore
+sleep 5sec
+open --raw $events | lines | each { sleep 1sec; print $in } | ignore \ No newline at end of file
diff --git a/test-data/nft-mon-output.json b/test-data/nft-mon-output.json
new file mode 100644
index 0000000..1080082
--- /dev/null
+++ b/test-data/nft-mon-output.json
@@ -0,0 +1,3 @@
+{"delete": {"rule": {"family": "ip", "table": "netbird", "chain": "netbird-rt-fwd", "handle": 68, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "saddr"}}, "right": "100.66.181.207"}}, {"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "daddr"}}, "right": "172.30.0.5"}}, {"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}}
+{"add": {"rule": {"family": "ip", "table": "netbird", "chain": "netbird-rt-fwd", "handle": 69, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "saddr"}}, "right": "100.66.181.207"}}, {"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "daddr"}}, "right": "172.30.0.5"}}, {"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}}
+{"add": {"rule": {"family": "ip", "table": "netbird", "chain": "netbird-rt-fwd", "handle": 69, "expr": [{"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "saddr"}}, "right": "100.66.181.207"}}, {"match": {"op": "==", "left": {"payload": {"protocol": "ip", "field": "daddr"}}, "right": "172.30.0.5"}}, {"counter": {"packets": 0, "bytes": 0}}, {"accept": null}]}}} \ No newline at end of file