path: root/tests/shell/testcases/chains/0008masquerade_jump_1
diff options
authorArturo Borrero <>2016-03-22 14:06:09 +0100
committerPablo Neira Ayuso <>2016-03-23 12:09:29 +0100
commit7fa2b0534745f53881ec74a0a73d4f870ea4b026 (patch)
treeca2e06bcc30a239c50947fbc820388474b5a652c /tests/shell/testcases/chains/0008masquerade_jump_1
parent4de76d7f998ed7ef4698f4f5135457b4f58591a2 (diff)
tests/shell: add chain validations tests
Some basic test regarding chains: jumps and validations. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'tests/shell/testcases/chains/0008masquerade_jump_1')
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/shell/testcases/chains/0008masquerade_jump_1 b/tests/shell/testcases/chains/0008masquerade_jump_1
new file mode 100755
index 00000000..7754ed03
--- /dev/null
+++ b/tests/shell/testcases/chains/0008masquerade_jump_1
@@ -0,0 +1,11 @@
+set -e
+$NFT add table t
+$NFT add chain t output {type nat hook output priority 0 \; }
+$NFT add chain t c1
+$NFT add rule t c1 masquerade
+# kernel should return EOPNOTSUPP
+$NFT add rule t output jump c1 2>/dev/null
+echo "E: accepted masquerade in output hook" >&2