summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-03-28 16:19:27 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-03-28 16:22:16 +0200
commiteb2c0525a128cb339e9eb2cdfe316e9cbc9dcfdc (patch)
treeda703e9a03d0891ea3f8fb0c34442ad659f2bc6a
parentca3c397793f67b0758ea9e16102852361034bcb6 (diff)
extensions: CLUSTERIP: add tests
Add a few tests to catch regressions. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--extensions/libipt_CLUSTERIP.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/libipt_CLUSTERIP.t b/extensions/libipt_CLUSTERIP.t
new file mode 100644
index 00000000..8434d9aa
--- /dev/null
+++ b/extensions/libipt_CLUSTERIP.t
@@ -0,0 +1,3 @@
+:INPUT
+-d 10.31.3.236/32 -i lo -j CLUSTERIP --new --hashmode sourceip --clustermac 01:AA:7B:47:F7:D7 --total-nodes 2 --local-node 0 --hash-init 1;=;OK
+-d 10.31.3.236/32 -i lo -j CLUSTERIP --new --hashmode sourceip --clustermac 01:AA:7B:47:F7:D7 --total-nodes 2 --local-node 1 --hash-init 1;=;OK