summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/maps/anonymous_snat_map_0
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2015-12-11 11:10:24 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-12-18 13:58:59 +0100
commit914d089d3721b9812563704823cbae67973e038d (patch)
tree13f0e27e4814e52669dcd502b62a4de85bb5476b /tests/shell/testcases/maps/anonymous_snat_map_0
parent91697b3dd6b16fc498d35fb94b572f2b22ccfbe5 (diff)
tests/shell: add maps tests cases
Let's add some tests cases for maps. Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/shell/testcases/maps/anonymous_snat_map_0')
-rwxr-xr-xtests/shell/testcases/maps/anonymous_snat_map_08
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/shell/testcases/maps/anonymous_snat_map_0 b/tests/shell/testcases/maps/anonymous_snat_map_0
new file mode 100755
index 00000000..32aac8a3
--- /dev/null
+++ b/tests/shell/testcases/maps/anonymous_snat_map_0
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# anonymous map can be added to a snat rule
+
+set -e
+$NFT add table nat
+$NFT add chain nat postrouting
+$NFT add rule nat postrouting snat ip saddr map {1.1.1.1 : 2.2.2.2}