summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2008-04-12 11:19:04 +0200
committerWilly Tarreau <w@1wt.eu>2008-04-12 11:19:04 +0200
commit73290cc74f64ea5e0b091eeee75957ad1d94e09d (patch)
treeb3a465a436cd259fedfd50fa81ea126d90fdd3c1
parentf899b94e6341a0e0b1b0e03f56c2f0a326174c26 (diff)
downloadhaproxy-73290cc74f64ea5e0b091eeee75957ad1d94e09d.tar.gz
[TESTS] add a test case for port mapping
-rw-r--r--tests/test-map-ports.cfg31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/test-map-ports.cfg b/tests/test-map-ports.cfg
new file mode 100644
index 000000000..a273f0ea2
--- /dev/null
+++ b/tests/test-map-ports.cfg
@@ -0,0 +1,31 @@
+# This is a test configuration.
+# It presents 4 instances using fixed and relative port assignments from
+# ports 8001 to 8004. TCP only is used, and the destination address is not
+# relevant (use netstat -an).
+
+global
+ maxconn 100
+
+defaults
+ mode tcp
+ clitimeout 15000
+ srvtimeout 15000
+ contimeout 15000
+ balance roundrobin
+
+listen fixed
+ bind :8001
+ server s1 1.1.1.1:8001
+
+listen same
+ bind :8002
+ server s2 1.1.1.2
+
+listen plus1000
+ bind :8003
+ server s3 1.1.1.3:+1000
+
+listen minus1000
+ bind :8004
+ server s4 1.1.1.4:-1000
+