summaryrefslogtreecommitdiffstats
path: root/extensions/libebt_nflog.txlate
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-04-13 17:40:56 +0200
committerFlorian Westphal <fw@strlen.de>2018-04-13 22:17:34 +0200
commite67c08880961f64984b396d6e8ad6bad04546253 (patch)
tree6aeef3826addf24e1c4b973de54a836c76626abe /extensions/libebt_nflog.txlate
parent207dd5e853e42b4477f4cb7234fc28bb6b30275d (diff)
ebtables-translate: add initial test cases
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'extensions/libebt_nflog.txlate')
-rw-r--r--extensions/libebt_nflog.txlate11
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/libebt_nflog.txlate b/extensions/libebt_nflog.txlate
new file mode 100644
index 00000000..bc3f5364
--- /dev/null
+++ b/extensions/libebt_nflog.txlate
@@ -0,0 +1,11 @@
+ebtables-translate -A INPUT --nflog
+nft add rule bridge filter INPUT log group 1 counter
+
+ebtables-translate -A INPUT --nflog-group 42
+nft add rule bridge filter INPUT log group 42 counter
+
+ebtables-translate -A INPUT --nflog-range 42
+nft add rule bridge filter INPUT log group 1 snaplen 42 counter
+
+ebtables-translate -A INPUT --nflog-threshold 100 --nflog-prefix foo
+nft add rule bridge filter INPUT log prefix "foo" group 1 queue-threshold 100 counter