summaryrefslogtreecommitdiffstats
path: root/tests/options-ipv4.nat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/options-ipv4.nat')
-rw-r--r--tests/options-ipv4.nat12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/options-ipv4.nat b/tests/options-ipv4.nat
new file mode 100644
index 00000000..89b2b596
--- /dev/null
+++ b/tests/options-ipv4.nat
@@ -0,0 +1,12 @@
+*nat
+:PREROUTING ACCEPT [0:0]
+:INPUT ACCEPT [0:0]
+:OUTPUT ACCEPT [0:0]
+:POSTROUTING ACCEPT [0:0]
+-A PREROUTING -d 1.2.3.4/32 -i lo -j CLUSTERIP --new --hashmode sourceip --clustermac 01:02:03:04:05:06 --total-nodes 9 --local-node 2 --hash-init 123456789
+-A PREROUTING -i dummy0 -j DNAT --to-destination 1.2.3.4 --random --persistent
+-A PREROUTING -i dummy0 -p tcp -j REDIRECT --to-ports 1-2 --random
+-A POSTROUTING -o dummy0 -p tcp -j MASQUERADE --to-ports 1-2 --random
+-A POSTROUTING -o dummy0 -p tcp -j NETMAP --to 1.0.0.0/8
+-A POSTROUTING -o dummy0 -p tcp -j SNAT --to-source 1.2.3.4-1.2.3.5 --random --persistent
+COMMIT