修訂 | 35a23ecbf5a16685f56790c8c95545be954ae09a (tree) |
---|---|
時間 | 2010-10-13 16:54:26 |
作者 | 0809216 <0809216@1ed6...> |
Commiter | 0809216 |
#534 Fixed: Delete short option / Modified all related script...
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10365 1ed66053-1c2d-0410-8867-f7571e6e31d3
@@ -4068,10 +4068,10 @@ sub get_forward_flag { | ||
4068 | 4068 | my $forward = shift; |
4069 | 4069 | |
4070 | 4070 | if (defined $forward && $forward =~ /^masq$/i) { |
4071 | - return '-M'; | |
4071 | + return '--masq'; | |
4072 | 4072 | } |
4073 | 4073 | elsif (defined $forward && $forward =~ /^tproxy$/i) { |
4074 | - return '-T'; | |
4074 | + return '--tproxy'; | |
4075 | 4075 | } |
4076 | 4076 | return q{}; |
4077 | 4077 | } |
@@ -244,9 +244,7 @@ bool l7vs::l7vsadm::parse_vs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i | ||
244 | 244 | count_map["--bypass"] == 0 && |
245 | 245 | count_map["-f"] == 0 && |
246 | 246 | count_map["--flag"] == 0 && |
247 | - count_map["-M"] == 0 && | |
248 | 247 | count_map["--masq"] == 0 && |
249 | - count_map["-T"] == 0 && | |
250 | 248 | count_map["--tproxy"] == 0 && |
251 | 249 | count_map["-Q"] == 0 && |
252 | 250 | count_map["--qos-up"] == 0 && |
@@ -312,20 +310,7 @@ bool l7vs::l7vsadm::parse_vs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i | ||
312 | 310 | is_conflict = true; |
313 | 311 | } |
314 | 312 | if (is_conflict == false && |
315 | - count_map["-M"] == 1 && count_map["--masq"] == 1) { | |
316 | - //-M(--masq) | |
317 | - conflict_option_name = "--masq"; | |
318 | - is_conflict = true; | |
319 | - } | |
320 | - if (is_conflict == false && | |
321 | - count_map["-T"] == 1 && count_map["--tproxy"] == 1) { | |
322 | - //-T(--tproxy) | |
323 | - conflict_option_name = "--tproxy"; | |
324 | - is_conflict = true; | |
325 | - } | |
326 | - if (is_conflict == false && | |
327 | - count_map["-M"] + count_map["--masq"] + | |
328 | - count_map["-T"] + count_map["--tproxy"] > 1) { | |
313 | + count_map["--masq"] + count_map["--tproxy"] > 1) { | |
329 | 314 | conflict_option_name = "--masq/tproxy"; |
330 | 315 | is_conflict = true; |
331 | 316 | } |
@@ -743,9 +728,9 @@ bool l7vs::l7vsadm::parse_opt_vs_fwdmode_func(int &pos, int argc, char *argv[]) | ||
743 | 728 | Logger logger(LOG_CAT_L7VSADM_COMMON, /*XXX*/999, "l7vsadm::parse_opt_vs_fwdmode_func", __FILE__, __LINE__); |
744 | 729 | |
745 | 730 | std::string opt(argv[pos]); |
746 | - if (opt == "-M" || opt == "--masq") { | |
731 | + if (opt == "--masq") { | |
747 | 732 | request.vs_element.sorry_fwdmode = virtualservice_element::FWD_MASQ; |
748 | - } else if (opt == "-T" || opt == "--tproxy") { | |
733 | + } else if (opt == "--tproxy") { | |
749 | 734 | #ifdef IP_TRANSPARENT |
750 | 735 | request.vs_element.sorry_fwdmode = virtualservice_element::FWD_TPROXY; |
751 | 736 | #else |
@@ -1297,9 +1282,7 @@ bool l7vs::l7vsadm::parse_rs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i | ||
1297 | 1282 | // Existence check of the parameter |
1298 | 1283 | if (count_map["-w"] == 0 && |
1299 | 1284 | count_map["--weight"] == 0 && |
1300 | - count_map["-M"] == 0 && | |
1301 | 1285 | count_map["--masq"] == 0 && |
1302 | - count_map["-T"] == 0 && | |
1303 | 1286 | count_map["--tproxy"] == 0) { |
1304 | 1287 | std::string buf("All option omitted for edit rs command."); |
1305 | 1288 | l7vsadm_err.setter(true, buf); |
@@ -1347,24 +1330,9 @@ bool l7vs::l7vsadm::parse_rs_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, i | ||
1347 | 1330 | is_conflict = true; |
1348 | 1331 | } |
1349 | 1332 | if ((is_conflict == false) && |
1350 | - (count_map["-M"] == 1) && (count_map["--masq"] == 1) && | |
1351 | - (l7vsadm_request::CMD_DEL_RS != cmd)) { | |
1352 | - //-M(--masq) | |
1353 | - conflict_option_name = "--masq"; | |
1354 | - is_conflict = true; | |
1355 | - } | |
1356 | - if ((is_conflict == false) && | |
1357 | - (count_map["-T"] == 1) && (count_map["--tproxy"] == 1) && | |
1358 | - (l7vsadm_request::CMD_DEL_RS != cmd)) { | |
1359 | - //-T(--tproxy) | |
1360 | - conflict_option_name = "--tproxy"; | |
1361 | - is_conflict = true; | |
1362 | - } | |
1363 | - if ((is_conflict == false) && | |
1364 | - count_map["-M"] + count_map["--masq"] + | |
1365 | - count_map["-T"] + count_map["--tproxy"] > 1 && | |
1333 | + count_map["--masq"] + count_map["--tproxy"] > 1 && | |
1366 | 1334 | (l7vsadm_request::CMD_DEL_RS != cmd)) { |
1367 | - //-M/T(--masq/tproxy) | |
1335 | + //--masq/tproxy | |
1368 | 1336 | conflict_option_name = "--masq/tproxy"; |
1369 | 1337 | is_conflict = true; |
1370 | 1338 | } |
@@ -1424,9 +1392,9 @@ bool l7vs::l7vsadm::parse_opt_rs_fwdmode_func(int &pos, int argc, char *argv[]) | ||
1424 | 1392 | Logger logger(LOG_CAT_L7VSADM_COMMON, /*XXX*/999, "l7vsadm::parse_opt_rs_fwdmode_func", __FILE__, __LINE__); |
1425 | 1393 | |
1426 | 1394 | std::string opt(argv[pos]); |
1427 | - if (opt == "-M" || opt == "--masq") { | |
1395 | + if (opt == "--masq") { | |
1428 | 1396 | request.vs_element.realserver_vector.front().fwdmode = realserver_element::FWD_MASQ; |
1429 | - } else if (opt == "-T" || opt == "--tproxy") { | |
1397 | + } else if (opt == "--tproxy") { | |
1430 | 1398 | #ifdef IP_TRANSPARENT |
1431 | 1399 | request.vs_element.realserver_vector.front().fwdmode = realserver_element::FWD_TPROXY; |
1432 | 1400 | #else |
@@ -2280,8 +2248,8 @@ bool l7vs::l7vsadm::parse_help_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, | ||
2280 | 2248 | " --scheduler -s scheduler one of rr,lc,wrr\n" |
2281 | 2249 | " --upper -u connection-count maximum number of connections\n" |
2282 | 2250 | " --bypass -b sorry-server sorry server address is host:port\n" |
2283 | - " --tproxy -T set sorry server connection to IP transparent mode.\n" | |
2284 | - " --masq -M set sorry server connection to IP masquerade mode.\n" | |
2251 | + " --tproxy set sorry server connection to IP transparent mode.\n" | |
2252 | + " --masq set sorry server connection to IP masquerade mode.\n" | |
2285 | 2253 | |
2286 | 2254 | " --flag -f sorry-flag sorry status set to virtual service\n" |
2287 | 2255 | " --qos-up -Q QoSval-up QoS Threshold(bps) set to real server direction\n" |
@@ -2293,8 +2261,8 @@ bool l7vs::l7vsadm::parse_help_func(l7vs::l7vsadm_request::COMMAND_CODE_TAG cmd, | ||
2293 | 2261 | " [logrotate-args]\n" |
2294 | 2262 | " --real-server -r server-address server-address is host:port\n" |
2295 | 2263 | " --weight -w weight scheduling weight set to real server\n" |
2296 | - " --tproxy -T set real server connection to IP transparent mode.\n" | |
2297 | - " --masq -M set real server connection to IP masquerade mode.\n" | |
2264 | + " --tproxy set real server connection to IP transparent mode.\n" | |
2265 | + " --masq set real server connection to IP masquerade mode.\n" | |
2298 | 2266 | " --switch -s replication-switch start or stop replication\n" |
2299 | 2267 | " --force -f force replication start\n" |
2300 | 2268 | " --dump -d dump replication memory\n" |
@@ -2321,16 +2289,16 @@ std::string l7vs::l7vsadm::usage() | ||
2321 | 2289 | stream << |
2322 | 2290 | "Usage: \n" |
2323 | 2291 | " l7vsadm -A -t service-address -m proto-module [module-args]\n" |
2324 | - " [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]\n" | |
2292 | + " [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]\n" | |
2325 | 2293 | " [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file]\n" |
2326 | 2294 | " [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]]\n" |
2327 | 2295 | " l7vsadm -E -t service-address -m proto-module [module-args]\n" |
2328 | - " [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M]\n" | |
2296 | + " [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy]\n" | |
2329 | 2297 | " [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag]\n" |
2330 | 2298 | " l7vsadm -D -t service-address -m proto-module [module-args]\n" |
2331 | 2299 | " l7vsadm -C\n" |
2332 | 2300 | " l7vsadm -a|e -t service-address -m proto-module [module-args]\n" |
2333 | - " -r server-address [-w weight] [-T|M]\n" | |
2301 | + " -r server-address [-w weight] [--masq|tproxy]\n" | |
2334 | 2302 | " l7vsadm -d -t service-address -m proto-module [module-args]\n" |
2335 | 2303 | " -r server-address\n" |
2336 | 2304 | " l7vsadm -R -s replication-switch\n" |
@@ -2697,9 +2665,7 @@ l7vs::l7vsadm::l7vsadm() | ||
2697 | 2665 | vs_option_dic["--upper"] = boost::bind(&l7vsadm::parse_opt_vs_upper_func, this, _1, _2, _3); |
2698 | 2666 | vs_option_dic["-b"] = boost::bind(&l7vsadm::parse_opt_vs_bypass_func, this, _1, _2, _3); |
2699 | 2667 | vs_option_dic["--bypass"] = boost::bind(&l7vsadm::parse_opt_vs_bypass_func, this, _1, _2, _3); |
2700 | - vs_option_dic["-T"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3); | |
2701 | 2668 | vs_option_dic["--tproxy"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3); |
2702 | - vs_option_dic["-M"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3); | |
2703 | 2669 | vs_option_dic["--masq"] = boost::bind(&l7vsadm::parse_opt_vs_fwdmode_func, this, _1, _2, _3); |
2704 | 2670 | vs_option_dic["-f"] = boost::bind(&l7vsadm::parse_opt_vs_flag_func, this, _1, _2, _3); |
2705 | 2671 | vs_option_dic["--flag"] = boost::bind(&l7vsadm::parse_opt_vs_flag_func, this, _1, _2, _3); |
@@ -2723,9 +2689,7 @@ l7vs::l7vsadm::l7vsadm() | ||
2723 | 2689 | rs_option_dic["--tcp-service"] = boost::bind(&l7vsadm::parse_opt_vs_target_func, this, _1, _2, _3); |
2724 | 2690 | rs_option_dic["-w"] = boost::bind(&l7vsadm::parse_opt_rs_weight_func, this, _1, _2, _3); |
2725 | 2691 | rs_option_dic["--weight"] = boost::bind(&l7vsadm::parse_opt_rs_weight_func, this, _1, _2, _3); |
2726 | - rs_option_dic["-T"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3); | |
2727 | 2692 | rs_option_dic["--tproxy"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3); |
2728 | - rs_option_dic["-M"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3); | |
2729 | 2693 | rs_option_dic["--masq"] = boost::bind(&l7vsadm::parse_opt_rs_fwdmode_func, this, _1, _2, _3); |
2730 | 2694 | rs_option_dic["-m"] = boost::bind(&l7vsadm::parse_opt_vs_module_func, this, _1, _2, _3); |
2731 | 2695 | rs_option_dic["--proto-module"] = boost::bind(&l7vsadm::parse_opt_vs_module_func, this, _1, _2, _3); |
@@ -9,7 +9,7 @@ $VAR1 = { | ||
9 | 9 | 'weight' => '0', |
10 | 10 | 'option' => { |
11 | 11 | 'flags' => '-r 127.0.0.3:30000', |
12 | - 'forward' => '-M' | |
12 | + 'forward' => '--masq' | |
13 | 13 | }, |
14 | 14 | 'server' => { |
15 | 15 | 'ip' => '127.0.0.3', |
@@ -21,7 +21,7 @@ $VAR1 = { | ||
21 | 21 | 'weight' => '1', |
22 | 22 | 'option' => { |
23 | 23 | 'flags' => '-r 127.0.0.2:20000', |
24 | - 'forward' => '-M' | |
24 | + 'forward' => '--masq' | |
25 | 25 | }, |
26 | 26 | 'server' => { |
27 | 27 | 'ip' => '127.0.0.2', |
@@ -36,7 +36,7 @@ $VAR1 = { | ||
36 | 36 | 'weight' => '20', |
37 | 37 | 'option' => { |
38 | 38 | 'flags' => '-r 127.0.0.3:30000', |
39 | - 'forward' => '-M' | |
39 | + 'forward' => '--masq' | |
40 | 40 | }, |
41 | 41 | 'server' => { |
42 | 42 | 'ip' => '127.0.0.3', |
@@ -48,7 +48,7 @@ $VAR1 = { | ||
48 | 48 | 'weight' => '10', |
49 | 49 | 'option' => { |
50 | 50 | 'flags' => '-r 127.0.0.2:20000', |
51 | - 'forward' => '-M' | |
51 | + 'forward' => '--masq' | |
52 | 52 | }, |
53 | 53 | 'server' => { |
54 | 54 | 'ip' => '127.0.0.2', |
@@ -66,7 +66,7 @@ $VAR1 = { | ||
66 | 66 | 'weight' => '0', |
67 | 67 | 'option' => { |
68 | 68 | 'flags' => '-r 127.0.0.1:30000', |
69 | - 'forward' => '-M' | |
69 | + 'forward' => '--masq' | |
70 | 70 | }, |
71 | 71 | 'server' => { |
72 | 72 | 'ip' => '127.0.0.1', |
@@ -78,7 +78,7 @@ $VAR1 = { | ||
78 | 78 | 'weight' => '1', |
79 | 79 | 'option' => { |
80 | 80 | 'flags' => '-r 127.0.0.1:20000', |
81 | - 'forward' => '-M' | |
81 | + 'forward' => '--masq' | |
82 | 82 | }, |
83 | 83 | 'server' => { |
84 | 84 | 'ip' => '127.0.0.1', |
@@ -93,7 +93,7 @@ $VAR1 = { | ||
93 | 93 | 'weight' => '20', |
94 | 94 | 'option' => { |
95 | 95 | 'flags' => '-r [::3]:30000', |
96 | - 'forward' => '-M' | |
96 | + 'forward' => '--masq' | |
97 | 97 | }, |
98 | 98 | 'server' => { |
99 | 99 | 'ip' => '[::3]', |
@@ -105,7 +105,7 @@ $VAR1 = { | ||
105 | 105 | 'weight' => '10', |
106 | 106 | 'option' => { |
107 | 107 | 'flags' => '-r [::2]:20000', |
108 | - 'forward' => '-M' | |
108 | + 'forward' => '--masq' | |
109 | 109 | }, |
110 | 110 | 'server' => { |
111 | 111 | 'ip' => '[::2]', |
@@ -22,17 +22,10 @@ then | ||
22 | 22 | fi |
23 | 23 | usleep 100000 |
24 | 24 | |
25 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -T -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log | |
25 | +$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -T -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log" | |
29 | - exit 1 | |
30 | -fi | |
31 | - | |
32 | -$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -M -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log | |
33 | -if [ $? -ne 0 ] | |
34 | -then | |
35 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -M -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log" | |
28 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -u 1000 -q 512 -Q 512 -b $SorryServer1_ADDR:$SorryServer1_PORT -f 1 -z /etc/l7vs/sslproxy/sslproxy.target.cf -O deferaccept -L 1 -a /var/log/l7vs/access_log" | |
36 | 29 | exit 1 |
37 | 30 | fi |
38 | 31 |
@@ -87,29 +80,6 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string | ||
87 | 80 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
88 | 81 | TCP localhost:40001 sessionless rr --sorry-uri '/' --statistic 0 |
89 | 82 | Bypass Settings: |
90 | - Sorry Server localhost:50001 Tproxy | |
91 | - Max Connection 1000 | |
92 | - Sorry Flag on | |
93 | - SSL Settings: | |
94 | - SSL Config File /etc/l7vs/sslproxy/sslproxy.target.cf | |
95 | - Logging Settings: | |
96 | - Access Log on | |
97 | - Access Log File deferaccept | |
98 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
99 | - Socket Settings: | |
100 | - TCP_DEFER_ACCEPT enable | |
101 | - TCP_NODELAY disable | |
102 | - TCP_CORK disable | |
103 | - TCP_QUICKACK disable | |
104 | - Throughput: | |
105 | - Current Upload / Limit 0.000000 Mbps / 0.004096 Mbps | |
106 | - Current Download / Limit 0.000000 Mbps / 0.004096 Mbps | |
107 | - Statistics: | |
108 | - HTTP Total Requests 0 | |
109 | - HTTP GET Requests 0 | |
110 | - HTTP POST Requests 0 | |
111 | -TCP localhost:40002 sessionless rr --sorry-uri '/' --statistic 0 | |
112 | - Bypass Settings: | |
113 | 83 | Sorry Server localhost:50001 Masq |
114 | 84 | Max Connection 1000 |
115 | 85 | Sorry Flag on |
@@ -31,13 +31,6 @@ then | ||
31 | 31 | fi |
32 | 32 | usleep 100000 |
33 | 33 | |
34 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M | |
35 | -if [ $? -ne 0 ] | |
36 | -then | |
37 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M" | |
38 | - exit 1 | |
39 | -fi | |
40 | - | |
41 | 34 | $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq |
42 | 35 | if [ $? -ne 0 ] |
43 | 36 | then |
@@ -45,13 +38,6 @@ then | ||
45 | 38 | exit 1 |
46 | 39 | fi |
47 | 40 | |
48 | -$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M | |
49 | -if [ $? -ne 0 ] | |
50 | -then | |
51 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M" | |
52 | - exit 1 | |
53 | -fi | |
54 | - | |
55 | 41 | $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq |
56 | 42 | if [ $? -ne 0 ] |
57 | 43 | then |
@@ -108,29 +94,6 @@ total trap counts none | ||
108 | 94 | |
109 | 95 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
110 | 96 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
111 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
112 | - Bypass Settings: | |
113 | - Sorry Server 127.0.0.1:50001 Masq | |
114 | - Max Connection 0 | |
115 | - Sorry Flag off | |
116 | - SSL Settings: | |
117 | - SSL Config File none | |
118 | - Logging Settings: | |
119 | - Access Log off | |
120 | - Access Log File none | |
121 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
122 | - Socket Settings: | |
123 | - TCP_DEFER_ACCEPT disable | |
124 | - TCP_NODELAY disable | |
125 | - TCP_CORK disable | |
126 | - TCP_QUICKACK disable | |
127 | - Throughput: | |
128 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
129 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
130 | - Statistics: | |
131 | - HTTP Total Requests 0 | |
132 | - HTTP GET Requests 0 | |
133 | - HTTP POST Requests 0 | |
134 | 97 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
135 | 98 | Bypass Settings: |
136 | 99 | Sorry Server 127.0.0.1:50001 Masq |
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 | ||
154 | 117 | HTTP Total Requests 0 |
155 | 118 | HTTP GET Requests 0 |
156 | 119 | HTTP POST Requests 0 |
157 | -TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | |
158 | - Bypass Settings: | |
159 | - Sorry Server [::1]:50002 Masq | |
160 | - Max Connection 0 | |
161 | - Sorry Flag off | |
162 | - SSL Settings: | |
163 | - SSL Config File none | |
164 | - Logging Settings: | |
165 | - Access Log off | |
166 | - Access Log File none | |
167 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
168 | - Socket Settings: | |
169 | - TCP_DEFER_ACCEPT disable | |
170 | - TCP_NODELAY disable | |
171 | - TCP_CORK disable | |
172 | - TCP_QUICKACK disable | |
173 | - Throughput: | |
174 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
175 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
176 | - Statistics: | |
177 | - HTTP Total Requests 0 | |
178 | - HTTP GET Requests 0 | |
179 | - HTTP POST Requests 0 | |
180 | 120 | TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 |
181 | 121 | Bypass Settings: |
182 | 122 | Sorry Server [::1]:50002 Masq |
@@ -31,13 +31,6 @@ then | ||
31 | 31 | fi |
32 | 32 | usleep 100000 |
33 | 33 | |
34 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T | |
35 | -if [ $? -ne 0 ] | |
36 | -then | |
37 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
38 | - exit 1 | |
39 | -fi | |
40 | - | |
41 | 34 | $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy |
42 | 35 | if [ $? -ne 0 ] |
43 | 36 | then |
@@ -45,13 +38,6 @@ then | ||
45 | 38 | exit 1 |
46 | 39 | fi |
47 | 40 | |
48 | -$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T | |
49 | -if [ $? -ne 0 ] | |
50 | -then | |
51 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T" | |
52 | - exit 1 | |
53 | -fi | |
54 | - | |
55 | 41 | $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --tproxy |
56 | 42 | if [ $? -ne 0 ] |
57 | 43 | then |
@@ -108,29 +94,6 @@ total trap counts none | ||
108 | 94 | |
109 | 95 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
110 | 96 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
111 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
112 | - Bypass Settings: | |
113 | - Sorry Server 127.0.0.1:50001 Tproxy | |
114 | - Max Connection 0 | |
115 | - Sorry Flag off | |
116 | - SSL Settings: | |
117 | - SSL Config File none | |
118 | - Logging Settings: | |
119 | - Access Log off | |
120 | - Access Log File none | |
121 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
122 | - Socket Settings: | |
123 | - TCP_DEFER_ACCEPT disable | |
124 | - TCP_NODELAY disable | |
125 | - TCP_CORK disable | |
126 | - TCP_QUICKACK disable | |
127 | - Throughput: | |
128 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
129 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
130 | - Statistics: | |
131 | - HTTP Total Requests 0 | |
132 | - HTTP GET Requests 0 | |
133 | - HTTP POST Requests 0 | |
134 | 97 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
135 | 98 | Bypass Settings: |
136 | 99 | Sorry Server 127.0.0.1:50001 Tproxy |
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 | ||
154 | 117 | HTTP Total Requests 0 |
155 | 118 | HTTP GET Requests 0 |
156 | 119 | HTTP POST Requests 0 |
157 | -TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | |
158 | - Bypass Settings: | |
159 | - Sorry Server [::1]:50002 Tproxy | |
160 | - Max Connection 0 | |
161 | - Sorry Flag off | |
162 | - SSL Settings: | |
163 | - SSL Config File none | |
164 | - Logging Settings: | |
165 | - Access Log off | |
166 | - Access Log File none | |
167 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
168 | - Socket Settings: | |
169 | - TCP_DEFER_ACCEPT disable | |
170 | - TCP_NODELAY disable | |
171 | - TCP_CORK disable | |
172 | - TCP_QUICKACK disable | |
173 | - Throughput: | |
174 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
175 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
176 | - Statistics: | |
177 | - HTTP Total Requests 0 | |
178 | - HTTP GET Requests 0 | |
179 | - HTTP POST Requests 0 | |
180 | 120 | TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 |
181 | 121 | Bypass Settings: |
182 | 122 | Sorry Server [::1]:50002 Tproxy |
@@ -30,14 +30,6 @@ then | ||
30 | 30 | fi |
31 | 31 | usleep 100000 |
32 | 32 | |
33 | -RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
34 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
35 | -if [ "${RET}" != "${EXPECT}" ] | |
36 | -then | |
37 | - echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M -T" | |
38 | - exit 1 | |
39 | -fi | |
40 | - | |
41 | 33 | RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
42 | 34 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
43 | 35 | if [ "${RET}" != "${EXPECT}" ] |
@@ -46,30 +38,6 @@ then | ||
46 | 38 | exit 1 |
47 | 39 | fi |
48 | 40 | |
49 | -RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
50 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
51 | -if [ "${RET}" != "${EXPECT}" ] | |
52 | -then | |
53 | - echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT -M --tproxy" | |
54 | - exit 1 | |
55 | -fi | |
56 | - | |
57 | -RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
58 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
59 | -if [ "${RET}" != "${EXPECT}" ] | |
60 | -then | |
61 | - echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer1_ADDR:$SorryServer1_PORT --masq -T" | |
62 | - exit 1 | |
63 | -fi | |
64 | - | |
65 | -RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
66 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
67 | -if [ "${RET}" != "${EXPECT}" ] | |
68 | -then | |
69 | - echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M -T" | |
70 | - exit 1 | |
71 | -fi | |
72 | - | |
73 | 41 | RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
74 | 42 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
75 | 43 | if [ "${RET}" != "${EXPECT}" ] |
@@ -78,21 +46,5 @@ then | ||
78 | 46 | exit 1 |
79 | 47 | fi |
80 | 48 | |
81 | -RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
82 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
83 | -if [ "${RET}" != "${EXPECT}" ] | |
84 | -then | |
85 | - echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT -M --tproxy" | |
86 | - exit 1 | |
87 | -fi | |
88 | - | |
89 | -RET=`$L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
90 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
91 | -if [ "${RET}" != "${EXPECT}" ] | |
92 | -then | |
93 | - echo "Test failed: $L7VSADM -A -t localhost:40001 -m sessionless -b $SorryServer2_ADDR:$SorryServer2_PORT --masq -T" | |
94 | - exit 1 | |
95 | -fi | |
96 | - | |
97 | 49 | exit 0 |
98 | 50 |
@@ -109,10 +109,10 @@ then | ||
109 | 109 | fi |
110 | 110 | |
111 | 111 | |
112 | -$L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 -T -Q 1M -q 1M -L 1 | |
112 | +$L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 --tproxy -Q 1M -q 1M -L 1 | |
113 | 113 | if [ $? -ne 0 ] |
114 | 114 | then |
115 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 -T -Q 1M -q 1M -L 1" | |
115 | + echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m ip -s lc -u 200 -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -f 1 --tproxy -Q 1M -q 1M -L 1" | |
116 | 116 | exit 1 |
117 | 117 | fi |
118 | 118 |
@@ -31,31 +31,17 @@ then | ||
31 | 31 | fi |
32 | 32 | usleep 100000 |
33 | 33 | |
34 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M | |
34 | +$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq | |
35 | 35 | if [ $? -ne 0 ] |
36 | 36 | then |
37 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M" | |
37 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq" | |
38 | 38 | exit 1 |
39 | 39 | fi |
40 | 40 | |
41 | -$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M | |
41 | +$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq | |
42 | 42 | if [ $? -ne 0 ] |
43 | 43 | then |
44 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M" | |
45 | - exit 1 | |
46 | -fi | |
47 | - | |
48 | -$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M | |
49 | -if [ $? -ne 0 ] | |
50 | -then | |
51 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M" | |
52 | - exit 1 | |
53 | -fi | |
54 | - | |
55 | -$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M | |
56 | -if [ $? -ne 0 ] | |
57 | -then | |
58 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M" | |
44 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq" | |
59 | 45 | exit 1 |
60 | 46 | fi |
61 | 47 |
@@ -108,29 +94,6 @@ total trap counts none | ||
108 | 94 | |
109 | 95 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
110 | 96 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
111 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
112 | - Bypass Settings: | |
113 | - Sorry Server 127.0.0.1:50001 Masq | |
114 | - Max Connection 0 | |
115 | - Sorry Flag off | |
116 | - SSL Settings: | |
117 | - SSL Config File none | |
118 | - Logging Settings: | |
119 | - Access Log off | |
120 | - Access Log File none | |
121 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
122 | - Socket Settings: | |
123 | - TCP_DEFER_ACCEPT disable | |
124 | - TCP_NODELAY disable | |
125 | - TCP_CORK disable | |
126 | - TCP_QUICKACK disable | |
127 | - Throughput: | |
128 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
129 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
130 | - Statistics: | |
131 | - HTTP Total Requests 0 | |
132 | - HTTP GET Requests 0 | |
133 | - HTTP POST Requests 0 | |
134 | 97 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
135 | 98 | Bypass Settings: |
136 | 99 | Sorry Server 127.0.0.1:50001 Masq |
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 | ||
154 | 117 | HTTP Total Requests 0 |
155 | 118 | HTTP GET Requests 0 |
156 | 119 | HTTP POST Requests 0 |
157 | -TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | |
158 | - Bypass Settings: | |
159 | - Sorry Server [::1]:50002 Masq | |
160 | - Max Connection 0 | |
161 | - Sorry Flag off | |
162 | - SSL Settings: | |
163 | - SSL Config File none | |
164 | - Logging Settings: | |
165 | - Access Log off | |
166 | - Access Log File none | |
167 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
168 | - Socket Settings: | |
169 | - TCP_DEFER_ACCEPT disable | |
170 | - TCP_NODELAY disable | |
171 | - TCP_CORK disable | |
172 | - TCP_QUICKACK disable | |
173 | - Throughput: | |
174 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
175 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
176 | - Statistics: | |
177 | - HTTP Total Requests 0 | |
178 | - HTTP GET Requests 0 | |
179 | - HTTP POST Requests 0 | |
180 | 120 | TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 |
181 | 121 | Bypass Settings: |
182 | 122 | Sorry Server [::1]:50002 Masq |
@@ -206,13 +146,6 @@ then | ||
206 | 146 | exit 1 |
207 | 147 | fi |
208 | 148 | |
209 | -$L7VSADM -E -t 127.0.0.1:40001 -m sessionless -T | |
210 | -if [ $? -ne 0 ] | |
211 | -then | |
212 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -T" | |
213 | - exit 1 | |
214 | -fi | |
215 | - | |
216 | 149 | $L7VSADM -E -t 127.0.0.1:40002 -m sessionless --tproxy |
217 | 150 | if [ $? -ne 0 ] |
218 | 151 | then |
@@ -220,13 +153,6 @@ then | ||
220 | 153 | exit 1 |
221 | 154 | fi |
222 | 155 | |
223 | -$L7VSADM -E -t 127.0.0.1:40003 -m sessionless -T | |
224 | -if [ $? -ne 0 ] | |
225 | -then | |
226 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40003 -m sessionless -T" | |
227 | - exit 1 | |
228 | -fi | |
229 | - | |
230 | 156 | $L7VSADM -E -t 127.0.0.1:40004 -m sessionless --tproxy |
231 | 157 | if [ $? -ne 0 ] |
232 | 158 | then |
@@ -283,29 +209,6 @@ total trap counts none | ||
283 | 209 | |
284 | 210 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
285 | 211 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
286 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
287 | - Bypass Settings: | |
288 | - Sorry Server 127.0.0.1:50001 Tproxy | |
289 | - Max Connection 0 | |
290 | - Sorry Flag off | |
291 | - SSL Settings: | |
292 | - SSL Config File none | |
293 | - Logging Settings: | |
294 | - Access Log off | |
295 | - Access Log File none | |
296 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
297 | - Socket Settings: | |
298 | - TCP_DEFER_ACCEPT disable | |
299 | - TCP_NODELAY disable | |
300 | - TCP_CORK disable | |
301 | - TCP_QUICKACK disable | |
302 | - Throughput: | |
303 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
304 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
305 | - Statistics: | |
306 | - HTTP Total Requests 0 | |
307 | - HTTP GET Requests 0 | |
308 | - HTTP POST Requests 0 | |
309 | 212 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
310 | 213 | Bypass Settings: |
311 | 214 | Sorry Server 127.0.0.1:50001 Tproxy |
@@ -329,29 +232,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 | ||
329 | 232 | HTTP Total Requests 0 |
330 | 233 | HTTP GET Requests 0 |
331 | 234 | HTTP POST Requests 0 |
332 | -TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | |
333 | - Bypass Settings: | |
334 | - Sorry Server [::1]:50002 Tproxy | |
335 | - Max Connection 0 | |
336 | - Sorry Flag off | |
337 | - SSL Settings: | |
338 | - SSL Config File none | |
339 | - Logging Settings: | |
340 | - Access Log off | |
341 | - Access Log File none | |
342 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
343 | - Socket Settings: | |
344 | - TCP_DEFER_ACCEPT disable | |
345 | - TCP_NODELAY disable | |
346 | - TCP_CORK disable | |
347 | - TCP_QUICKACK disable | |
348 | - Throughput: | |
349 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
350 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
351 | - Statistics: | |
352 | - HTTP Total Requests 0 | |
353 | - HTTP GET Requests 0 | |
354 | - HTTP POST Requests 0 | |
355 | 235 | TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 |
356 | 236 | Bypass Settings: |
357 | 237 | Sorry Server [::1]:50002 Tproxy |
@@ -31,31 +31,17 @@ then | ||
31 | 31 | fi |
32 | 32 | usleep 100000 |
33 | 33 | |
34 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T | |
34 | +$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy | |
35 | 35 | if [ $? -ne 0 ] |
36 | 36 | then |
37 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
37 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy" | |
38 | 38 | exit 1 |
39 | 39 | fi |
40 | 40 | |
41 | -$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T | |
41 | +$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --tproxy | |
42 | 42 | if [ $? -ne 0 ] |
43 | 43 | then |
44 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
45 | - exit 1 | |
46 | -fi | |
47 | - | |
48 | -$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T | |
49 | -if [ $? -ne 0 ] | |
50 | -then | |
51 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T" | |
52 | - exit 1 | |
53 | -fi | |
54 | - | |
55 | -$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T | |
56 | -if [ $? -ne 0 ] | |
57 | -then | |
58 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
44 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy" | |
59 | 45 | exit 1 |
60 | 46 | fi |
61 | 47 |
@@ -108,29 +94,6 @@ total trap counts none | ||
108 | 94 | |
109 | 95 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
110 | 96 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
111 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
112 | - Bypass Settings: | |
113 | - Sorry Server 127.0.0.1:50001 Tproxy | |
114 | - Max Connection 0 | |
115 | - Sorry Flag off | |
116 | - SSL Settings: | |
117 | - SSL Config File none | |
118 | - Logging Settings: | |
119 | - Access Log off | |
120 | - Access Log File none | |
121 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
122 | - Socket Settings: | |
123 | - TCP_DEFER_ACCEPT disable | |
124 | - TCP_NODELAY disable | |
125 | - TCP_CORK disable | |
126 | - TCP_QUICKACK disable | |
127 | - Throughput: | |
128 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
129 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
130 | - Statistics: | |
131 | - HTTP Total Requests 0 | |
132 | - HTTP GET Requests 0 | |
133 | - HTTP POST Requests 0 | |
134 | 97 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
135 | 98 | Bypass Settings: |
136 | 99 | Sorry Server 127.0.0.1:50001 Tproxy |
@@ -154,29 +117,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 | ||
154 | 117 | HTTP Total Requests 0 |
155 | 118 | HTTP GET Requests 0 |
156 | 119 | HTTP POST Requests 0 |
157 | -TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | |
158 | - Bypass Settings: | |
159 | - Sorry Server [::1]:50002 Tproxy | |
160 | - Max Connection 0 | |
161 | - Sorry Flag off | |
162 | - SSL Settings: | |
163 | - SSL Config File none | |
164 | - Logging Settings: | |
165 | - Access Log off | |
166 | - Access Log File none | |
167 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
168 | - Socket Settings: | |
169 | - TCP_DEFER_ACCEPT disable | |
170 | - TCP_NODELAY disable | |
171 | - TCP_CORK disable | |
172 | - TCP_QUICKACK disable | |
173 | - Throughput: | |
174 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
175 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
176 | - Statistics: | |
177 | - HTTP Total Requests 0 | |
178 | - HTTP GET Requests 0 | |
179 | - HTTP POST Requests 0 | |
180 | 120 | TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 |
181 | 121 | Bypass Settings: |
182 | 122 | Sorry Server [::1]:50002 Tproxy |
@@ -206,13 +146,6 @@ then | ||
206 | 146 | exit 1 |
207 | 147 | fi |
208 | 148 | |
209 | -$L7VSADM -E -t 127.0.0.1:40001 -m sessionless -M | |
210 | -if [ $? -ne 0 ] | |
211 | -then | |
212 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -M" | |
213 | - exit 1 | |
214 | -fi | |
215 | - | |
216 | 149 | $L7VSADM -E -t 127.0.0.1:40002 -m sessionless --masq |
217 | 150 | if [ $? -ne 0 ] |
218 | 151 | then |
@@ -220,13 +153,6 @@ then | ||
220 | 153 | exit 1 |
221 | 154 | fi |
222 | 155 | |
223 | -$L7VSADM -E -t 127.0.0.1:40003 -m sessionless -M | |
224 | -if [ $? -ne 0 ] | |
225 | -then | |
226 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40003 -m sessionless -M" | |
227 | - exit 1 | |
228 | -fi | |
229 | - | |
230 | 156 | $L7VSADM -E -t 127.0.0.1:40004 -m sessionless --masq |
231 | 157 | if [ $? -ne 0 ] |
232 | 158 | then |
@@ -283,29 +209,6 @@ total trap counts none | ||
283 | 209 | |
284 | 210 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
285 | 211 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
286 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
287 | - Bypass Settings: | |
288 | - Sorry Server 127.0.0.1:50001 Masq | |
289 | - Max Connection 0 | |
290 | - Sorry Flag off | |
291 | - SSL Settings: | |
292 | - SSL Config File none | |
293 | - Logging Settings: | |
294 | - Access Log off | |
295 | - Access Log File none | |
296 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
297 | - Socket Settings: | |
298 | - TCP_DEFER_ACCEPT disable | |
299 | - TCP_NODELAY disable | |
300 | - TCP_CORK disable | |
301 | - TCP_QUICKACK disable | |
302 | - Throughput: | |
303 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
304 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
305 | - Statistics: | |
306 | - HTTP Total Requests 0 | |
307 | - HTTP GET Requests 0 | |
308 | - HTTP POST Requests 0 | |
309 | 212 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
310 | 213 | Bypass Settings: |
311 | 214 | Sorry Server 127.0.0.1:50001 Masq |
@@ -329,29 +232,6 @@ TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 | ||
329 | 232 | HTTP Total Requests 0 |
330 | 233 | HTTP GET Requests 0 |
331 | 234 | HTTP POST Requests 0 |
332 | -TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | |
333 | - Bypass Settings: | |
334 | - Sorry Server [::1]:50002 Masq | |
335 | - Max Connection 0 | |
336 | - Sorry Flag off | |
337 | - SSL Settings: | |
338 | - SSL Config File none | |
339 | - Logging Settings: | |
340 | - Access Log off | |
341 | - Access Log File none | |
342 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
343 | - Socket Settings: | |
344 | - TCP_DEFER_ACCEPT disable | |
345 | - TCP_NODELAY disable | |
346 | - TCP_CORK disable | |
347 | - TCP_QUICKACK disable | |
348 | - Throughput: | |
349 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
350 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
351 | - Statistics: | |
352 | - HTTP Total Requests 0 | |
353 | - HTTP GET Requests 0 | |
354 | - HTTP POST Requests 0 | |
355 | 235 | TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 |
356 | 236 | Bypass Settings: |
357 | 237 | Sorry Server [::1]:50002 Masq |
@@ -30,68 +30,17 @@ then | ||
30 | 30 | fi |
31 | 31 | usleep 100000 |
32 | 32 | |
33 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M | |
33 | +$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq | |
34 | 34 | if [ $? -ne 0 ] |
35 | 35 | then |
36 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M" | |
36 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --masq" | |
37 | 37 | exit 1 |
38 | 38 | fi |
39 | 39 | |
40 | -$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M | |
40 | +$L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq | |
41 | 41 | if [ $? -ne 0 ] |
42 | 42 | then |
43 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M" | |
44 | - exit 1 | |
45 | -fi | |
46 | - | |
47 | -$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T | |
48 | -if [ $? -ne 0 ] | |
49 | -then | |
50 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
51 | - exit 1 | |
52 | -fi | |
53 | - | |
54 | -$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T | |
55 | -if [ $? -ne 0 ] | |
56 | -then | |
57 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
58 | - exit 1 | |
59 | -fi | |
60 | - | |
61 | -$L7VSADM -A -t 127.0.0.1:40005 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M | |
62 | -if [ $? -ne 0 ] | |
63 | -then | |
64 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40005 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M" | |
65 | - exit 1 | |
66 | -fi | |
67 | - | |
68 | -$L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M | |
69 | -if [ $? -ne 0 ] | |
70 | -then | |
71 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M" | |
72 | - exit 1 | |
73 | -fi | |
74 | - | |
75 | -$L7VSADM -A -t 127.0.0.1:40007 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T | |
76 | -if [ $? -ne 0 ] | |
77 | -then | |
78 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40007 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T" | |
79 | - exit 1 | |
80 | -fi | |
81 | - | |
82 | -$L7VSADM -A -t 127.0.0.1:40008 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T | |
83 | -if [ $? -ne 0 ] | |
84 | -then | |
85 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40008 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T" | |
86 | - exit 1 | |
87 | -fi | |
88 | - | |
89 | - | |
90 | -RET=`$L7VSADM -E -t localhost:40001 -m sessionless -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
91 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
92 | -if [ "${RET}" != "${EXPECT}" ] | |
93 | -then | |
94 | - echo "Test failed: $L7VSADM -E -t localhost:40001 -m sessionless -M -T" | |
43 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40006 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq" | |
95 | 44 | exit 1 |
96 | 45 | fi |
97 | 46 |
@@ -103,30 +52,6 @@ then | ||
103 | 52 | exit 1 |
104 | 53 | fi |
105 | 54 | |
106 | -RET=`$L7VSADM -E -t localhost:40003 -m sessionless -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
107 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
108 | -if [ "${RET}" != "${EXPECT}" ] | |
109 | -then | |
110 | - echo "Test failed: $L7VSADM -E -t localhost:40003 -m sessionless -M --tproxy" | |
111 | - exit 1 | |
112 | -fi | |
113 | - | |
114 | -RET=`$L7VSADM -E -t localhost:40004 -m sessionless --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
115 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
116 | -if [ "${RET}" != "${EXPECT}" ] | |
117 | -then | |
118 | - echo "Test failed: $L7VSADM -E -t localhost:40004 -m sessionless --masq -T" | |
119 | - exit 1 | |
120 | -fi | |
121 | - | |
122 | -RET=`$L7VSADM -E -t localhost:40005 -m sessionless -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
123 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
124 | -if [ "${RET}" != "${EXPECT}" ] | |
125 | -then | |
126 | - echo "Test failed: $L7VSADM -E -t localhost:40005 -m sessionless -M -T" | |
127 | - exit 1 | |
128 | -fi | |
129 | - | |
130 | 55 | RET=`$L7VSADM -E -t localhost:40006 -m sessionless --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
131 | 56 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
132 | 57 | if [ "${RET}" != "${EXPECT}" ] |
@@ -135,20 +60,4 @@ then | ||
135 | 60 | exit 1 |
136 | 61 | fi |
137 | 62 | |
138 | -RET=`$L7VSADM -E -t localhost:40007 -m sessionless -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
139 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
140 | -if [ "${RET}" != "${EXPECT}" ] | |
141 | -then | |
142 | - echo "Test failed: $L7VSADM -E -t localhost:40007 -m sessionless -M --tproxy" | |
143 | - exit 1 | |
144 | -fi | |
145 | - | |
146 | -RET=`$L7VSADM -E -t localhost:40008 -m sessionless --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
147 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
148 | -if [ "${RET}" != "${EXPECT}" ] | |
149 | -then | |
150 | - echo "Test failed: $L7VSADM -E -t localhost:40008 -m sessionless --masq -T" | |
151 | - exit 1 | |
152 | -fi | |
153 | - | |
154 | 63 | exit 0 |
@@ -31,31 +31,17 @@ then | ||
31 | 31 | fi |
32 | 32 | usleep 100000 |
33 | 33 | |
34 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M | |
34 | +$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq | |
35 | 35 | if [ $? -ne 0 ] |
36 | 36 | then |
37 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -M" | |
37 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} --masq" | |
38 | 38 | exit 1 |
39 | 39 | fi |
40 | 40 | |
41 | -$L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M | |
41 | +$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy | |
42 | 42 | if [ $? -ne 0 ] |
43 | 43 | then |
44 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40002 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -M" | |
45 | - exit 1 | |
46 | -fi | |
47 | - | |
48 | -$L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T | |
49 | -if [ $? -ne 0 ] | |
50 | -then | |
51 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} -T" | |
52 | - exit 1 | |
53 | -fi | |
54 | - | |
55 | -$L7VSADM -A -t 127.0.0.1:40004 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T | |
56 | -if [ $? -ne 0 ] | |
57 | -then | |
58 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer2_ADDR}:${SorryServer2_PORT} -T" | |
44 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40003 -m sessionless -b ${SorryServer1_ADDR}:${SorryServer1_PORT} --tproxy" | |
59 | 45 | exit 1 |
60 | 46 | fi |
61 | 47 |
@@ -108,29 +94,6 @@ total trap counts none | ||
108 | 94 | |
109 | 95 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
110 | 96 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
111 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
112 | - Bypass Settings: | |
113 | - Sorry Server 127.0.0.1:50001 Masq | |
114 | - Max Connection 0 | |
115 | - Sorry Flag off | |
116 | - SSL Settings: | |
117 | - SSL Config File none | |
118 | - Logging Settings: | |
119 | - Access Log off | |
120 | - Access Log File none | |
121 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
122 | - Socket Settings: | |
123 | - TCP_DEFER_ACCEPT disable | |
124 | - TCP_NODELAY disable | |
125 | - TCP_CORK disable | |
126 | - TCP_QUICKACK disable | |
127 | - Throughput: | |
128 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
129 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
130 | - Statistics: | |
131 | - HTTP Total Requests 0 | |
132 | - HTTP GET Requests 0 | |
133 | - HTTP POST Requests 0 | |
134 | 97 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
135 | 98 | Bypass Settings: |
136 | 99 | Sorry Server [::1]:50002 Masq |
@@ -176,29 +139,6 @@ TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | ||
176 | 139 | Statistics: |
177 | 140 | HTTP Total Requests 0 |
178 | 141 | HTTP GET Requests 0 |
179 | - HTTP POST Requests 0 | |
180 | -TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 | |
181 | - Bypass Settings: | |
182 | - Sorry Server [::1]:50002 Tproxy | |
183 | - Max Connection 0 | |
184 | - Sorry Flag off | |
185 | - SSL Settings: | |
186 | - SSL Config File none | |
187 | - Logging Settings: | |
188 | - Access Log off | |
189 | - Access Log File none | |
190 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
191 | - Socket Settings: | |
192 | - TCP_DEFER_ACCEPT disable | |
193 | - TCP_NODELAY disable | |
194 | - TCP_CORK disable | |
195 | - TCP_QUICKACK disable | |
196 | - Throughput: | |
197 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
198 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
199 | - Statistics: | |
200 | - HTTP Total Requests 0 | |
201 | - HTTP GET Requests 0 | |
202 | 142 | HTTP POST Requests 0" |
203 | 143 | if [ "${RET}" != "${EXPECT}" ] |
204 | 144 | then |
@@ -206,13 +146,6 @@ then | ||
206 | 146 | exit 1 |
207 | 147 | fi |
208 | 148 | |
209 | -$L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1 | |
210 | -if [ $? -ne 0 ] | |
211 | -then | |
212 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1" | |
213 | - exit 1 | |
214 | -fi | |
215 | - | |
216 | 149 | $L7VSADM -E -t 127.0.0.1:40002 -m sessionless -f 1 |
217 | 150 | if [ $? -ne 0 ] |
218 | 151 | then |
@@ -227,13 +160,6 @@ then | ||
227 | 160 | exit 1 |
228 | 161 | fi |
229 | 162 | |
230 | -$L7VSADM -E -t 127.0.0.1:40004 -m sessionless -f 1 | |
231 | -if [ $? -ne 0 ] | |
232 | -then | |
233 | - echo "Test failed: $L7VSADM -E -t 127.0.0.1:40001 -m sessionless -f 1" | |
234 | - exit 1 | |
235 | -fi | |
236 | - | |
237 | 163 | RET=`$L7VSADM -V -n` |
238 | 164 | EXPECT="Layer-7 Virtual Server version 3.0.0 |
239 | 165 | L7vsd Log Level: |
@@ -283,29 +209,6 @@ total trap counts none | ||
283 | 209 | |
284 | 210 | Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string |
285 | 211 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
286 | -TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0 | |
287 | - Bypass Settings: | |
288 | - Sorry Server 127.0.0.1:50001 Masq | |
289 | - Max Connection 0 | |
290 | - Sorry Flag on | |
291 | - SSL Settings: | |
292 | - SSL Config File none | |
293 | - Logging Settings: | |
294 | - Access Log off | |
295 | - Access Log File none | |
296 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
297 | - Socket Settings: | |
298 | - TCP_DEFER_ACCEPT disable | |
299 | - TCP_NODELAY disable | |
300 | - TCP_CORK disable | |
301 | - TCP_QUICKACK disable | |
302 | - Throughput: | |
303 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
304 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
305 | - Statistics: | |
306 | - HTTP Total Requests 0 | |
307 | - HTTP GET Requests 0 | |
308 | - HTTP POST Requests 0 | |
309 | 212 | TCP 127.0.0.1:40002 sessionless rr --sorry-uri '/' --statistic 0 |
310 | 213 | Bypass Settings: |
311 | 214 | Sorry Server [::1]:50002 Masq |
@@ -351,29 +254,6 @@ TCP 127.0.0.1:40003 sessionless rr --sorry-uri '/' --statistic 0 | ||
351 | 254 | Statistics: |
352 | 255 | HTTP Total Requests 0 |
353 | 256 | HTTP GET Requests 0 |
354 | - HTTP POST Requests 0 | |
355 | -TCP 127.0.0.1:40004 sessionless rr --sorry-uri '/' --statistic 0 | |
356 | - Bypass Settings: | |
357 | - Sorry Server [::1]:50002 Tproxy | |
358 | - Max Connection 0 | |
359 | - Sorry Flag on | |
360 | - SSL Settings: | |
361 | - SSL Config File none | |
362 | - Logging Settings: | |
363 | - Access Log off | |
364 | - Access Log File none | |
365 | - Access Log Rotate --ac-rotate-type size --ac-rotate-max-backup-index 10 --ac-rotate-max-filesize 10M | |
366 | - Socket Settings: | |
367 | - TCP_DEFER_ACCEPT disable | |
368 | - TCP_NODELAY disable | |
369 | - TCP_CORK disable | |
370 | - TCP_QUICKACK disable | |
371 | - Throughput: | |
372 | - Current Upload / Limit 0.000000 Mbps / 0.000000 Mbps | |
373 | - Current Download / Limit 0.000000 Mbps / 0.000000 Mbps | |
374 | - Statistics: | |
375 | - HTTP Total Requests 0 | |
376 | - HTTP GET Requests 0 | |
377 | 257 | HTTP POST Requests 0" |
378 | 258 | if [ "${RET}" != "${EXPECT}" ] |
379 | 259 | then |
@@ -38,17 +38,17 @@ then | ||
38 | 38 | exit 1 |
39 | 39 | fi |
40 | 40 | |
41 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 -M | |
41 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 --masq | |
42 | 42 | if [ $? -ne 0 ] |
43 | 43 | then |
44 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 -M" | |
44 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 0 --masq" | |
45 | 45 | exit 1 |
46 | 46 | fi |
47 | 47 | |
48 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 -T | |
48 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 --tproxy | |
49 | 49 | if [ $? -ne 0 ] |
50 | 50 | then |
51 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 -T" | |
51 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -w 2 --tproxy" | |
52 | 52 | exit 1 |
53 | 53 | fi |
54 | 54 |
@@ -2,26 +2,6 @@ | ||
2 | 2 | . ${SET_DEFAULT_CONF} |
3 | 3 | |
4 | 4 | #Run http server |
5 | -RealServer1=RealServer1 | |
6 | -RealServer1_ADDR=127.0.0.1 | |
7 | -RealServer1_PORT=50001 | |
8 | -start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT | |
9 | -if [ $? -ne 0 ] | |
10 | -then | |
11 | - echo "Test failed: start_lighttpd RealServer1" | |
12 | - exit 1 | |
13 | -fi | |
14 | - | |
15 | -RealServer2=RealServer2 | |
16 | -RealServer2_ADDR=[::1] | |
17 | -RealServer2_PORT=50002 | |
18 | -start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i | |
19 | -if [ $? -ne 0 ] | |
20 | -then | |
21 | - echo "Test failed: start_lighttpd RealServer2" | |
22 | - exit 1 | |
23 | -fi | |
24 | - | |
25 | 5 | RealServer3=RealServer3 |
26 | 6 | RealServer3_ADDR=127.0.0.1 |
27 | 7 | RealServer3_PORT=50003 |
@@ -58,20 +38,6 @@ then | ||
58 | 38 | exit 1 |
59 | 39 | fi |
60 | 40 | |
61 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
62 | -if [ $? -ne 0 ] | |
63 | -then | |
64 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
65 | - exit 1 | |
66 | -fi | |
67 | - | |
68 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M | |
69 | -if [ $? -ne 0 ] | |
70 | -then | |
71 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M" | |
72 | - exit 1 | |
73 | -fi | |
74 | - | |
75 | 41 | $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --masq |
76 | 42 | if [ $? -ne 0 ] |
77 | 43 | then |
@@ -91,8 +57,6 @@ EXPECT="Layer-7 Virtual Server version 3.0.0 | ||
91 | 57 | Prot LocalAddress:Port ProtoMod Scheduler |
92 | 58 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
93 | 59 | TCP 127.0.0.1:40001 ip rr |
94 | - -> ${RealServer1_ADDR}:${RealServer1_PORT} Masq 1 0 0 | |
95 | - -> ${RealServer2_ADDR}:${RealServer2_PORT} Masq 1 0 0 | |
96 | 60 | -> ${RealServer3_ADDR}:${RealServer3_PORT} Masq 1 0 0 |
97 | 61 | -> ${RealServer4_ADDR}:${RealServer4_PORT} Masq 1 0 0 " |
98 | 62 | if [ "${RET}" != "${EXPECT}" ] |
@@ -2,26 +2,6 @@ | ||
2 | 2 | . ${SET_DEFAULT_CONF} |
3 | 3 | |
4 | 4 | #Run http server |
5 | -RealServer1=RealServer1 | |
6 | -RealServer1_ADDR=127.0.0.1 | |
7 | -RealServer1_PORT=50001 | |
8 | -start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT | |
9 | -if [ $? -ne 0 ] | |
10 | -then | |
11 | - echo "Test failed: start_lighttpd RealServer1" | |
12 | - exit 1 | |
13 | -fi | |
14 | - | |
15 | -RealServer2=RealServer2 | |
16 | -RealServer2_ADDR=[::1] | |
17 | -RealServer2_PORT=50002 | |
18 | -start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i | |
19 | -if [ $? -ne 0 ] | |
20 | -then | |
21 | - echo "Test failed: start_lighttpd RealServer2" | |
22 | - exit 1 | |
23 | -fi | |
24 | - | |
25 | 5 | RealServer3=RealServer3 |
26 | 6 | RealServer3_ADDR=127.0.0.1 |
27 | 7 | RealServer3_PORT=50003 |
@@ -58,20 +38,6 @@ then | ||
58 | 38 | exit 1 |
59 | 39 | fi |
60 | 40 | |
61 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
62 | -if [ $? -ne 0 ] | |
63 | -then | |
64 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
65 | - exit 1 | |
66 | -fi | |
67 | - | |
68 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T | |
69 | -if [ $? -ne 0 ] | |
70 | -then | |
71 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T" | |
72 | - exit 1 | |
73 | -fi | |
74 | - | |
75 | 41 | $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy |
76 | 42 | if [ $? -ne 0 ] |
77 | 43 | then |
@@ -91,8 +57,6 @@ EXPECT="Layer-7 Virtual Server version 3.0.0 | ||
91 | 57 | Prot LocalAddress:Port ProtoMod Scheduler |
92 | 58 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
93 | 59 | TCP 127.0.0.1:40001 ip rr |
94 | - -> ${RealServer1_ADDR}:${RealServer1_PORT} Tproxy 1 0 0 | |
95 | - -> ${RealServer2_ADDR}:${RealServer2_PORT} Tproxy 1 0 0 | |
96 | 60 | -> ${RealServer3_ADDR}:${RealServer3_PORT} Tproxy 1 0 0 |
97 | 61 | -> ${RealServer4_ADDR}:${RealServer4_PORT} Tproxy 1 0 0 " |
98 | 62 | if [ "${RET}" != "${EXPECT}" ] |
@@ -37,14 +37,6 @@ then | ||
37 | 37 | exit 1 |
38 | 38 | fi |
39 | 39 | |
40 | -RET=`$L7VSADM -a -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
41 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
42 | -if [ "${RET}" != "${EXPECT}" ] | |
43 | -then | |
44 | - echo "Test failed: $L7VSADM -a -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T" | |
45 | - exit 1 | |
46 | -fi | |
47 | - | |
48 | 40 | RET=`$L7VSADM -a -t localhost:40002 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
49 | 41 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
50 | 42 | if [ "${RET}" != "${EXPECT}" ] |
@@ -53,30 +45,6 @@ then | ||
53 | 45 | exit 1 |
54 | 46 | fi |
55 | 47 | |
56 | -RET=`$L7VSADM -a -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
57 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
58 | -if [ "${RET}" != "${EXPECT}" ] | |
59 | -then | |
60 | - echo "Test failed: $L7VSADM -a -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy" | |
61 | - exit 1 | |
62 | -fi | |
63 | - | |
64 | -RET=`$L7VSADM -a -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
65 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
66 | -if [ "${RET}" != "${EXPECT}" ] | |
67 | -then | |
68 | - echo "Test failed: $L7VSADM -a -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T" | |
69 | - exit 1 | |
70 | -fi | |
71 | - | |
72 | -RET=`$L7VSADM -a -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
73 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
74 | -if [ "${RET}" != "${EXPECT}" ] | |
75 | -then | |
76 | - echo "Test failed: $L7VSADM -a -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T" | |
77 | - exit 1 | |
78 | -fi | |
79 | - | |
80 | 48 | RET=`$L7VSADM -a -t localhost:40006 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
81 | 49 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
82 | 50 | if [ "${RET}" != "${EXPECT}" ] |
@@ -85,21 +53,5 @@ then | ||
85 | 53 | exit 1 |
86 | 54 | fi |
87 | 55 | |
88 | -RET=`$L7VSADM -a -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
89 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
90 | -if [ "${RET}" != "${EXPECT}" ] | |
91 | -then | |
92 | - echo "Test failed: $L7VSADM -a -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy" | |
93 | - exit 1 | |
94 | -fi | |
95 | - | |
96 | -RET=`$L7VSADM -a -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
97 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
98 | -if [ "${RET}" != "${EXPECT}" ] | |
99 | -then | |
100 | - echo "Test failed: $L7VSADM -a -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T" | |
101 | - exit 1 | |
102 | -fi | |
103 | - | |
104 | 56 | exit 0 |
105 | 57 |
@@ -36,10 +36,10 @@ then | ||
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 | |
39 | -$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 -T | |
39 | +$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 --tproxy | |
40 | 40 | if [ $? -ne 0 ] |
41 | 41 | then |
42 | - echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 -T" | |
42 | + echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -w 2 --tproxy" | |
43 | 43 | exit 1 |
44 | 44 | fi |
45 | 45 |
@@ -58,31 +58,31 @@ then | ||
58 | 58 | exit 1 |
59 | 59 | fi |
60 | 60 | |
61 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
61 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq | |
62 | 62 | if [ $? -ne 0 ] |
63 | 63 | then |
64 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
64 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq" | |
65 | 65 | exit 1 |
66 | 66 | fi |
67 | 67 | |
68 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M | |
68 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} --masq | |
69 | 69 | if [ $? -ne 0 ] |
70 | 70 | then |
71 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M" | |
71 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} --masq" | |
72 | 72 | exit 1 |
73 | 73 | fi |
74 | 74 | |
75 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T | |
75 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy | |
76 | 76 | if [ $? -ne 0 ] |
77 | 77 | then |
78 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T" | |
78 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy" | |
79 | 79 | exit 1 |
80 | 80 | fi |
81 | 81 | |
82 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T | |
82 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy | |
83 | 83 | if [ $? -ne 0 ] |
84 | 84 | then |
85 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T" | |
85 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy" | |
86 | 86 | exit 1 |
87 | 87 | fi |
88 | 88 |
@@ -2,26 +2,6 @@ | ||
2 | 2 | . ${SET_DEFAULT_CONF} |
3 | 3 | |
4 | 4 | #Run http server |
5 | -RealServer1=RealServer1 | |
6 | -RealServer1_ADDR=127.0.0.1 | |
7 | -RealServer1_PORT=50001 | |
8 | -start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT | |
9 | -if [ $? -ne 0 ] | |
10 | -then | |
11 | - echo "Test failed: start_lighttpd RealServer1" | |
12 | - exit 1 | |
13 | -fi | |
14 | - | |
15 | -RealServer2=RealServer2 | |
16 | -RealServer2_ADDR=[::1] | |
17 | -RealServer2_PORT=50002 | |
18 | -start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i | |
19 | -if [ $? -ne 0 ] | |
20 | -then | |
21 | - echo "Test failed: start_lighttpd RealServer2" | |
22 | - exit 1 | |
23 | -fi | |
24 | - | |
25 | 5 | RealServer3=RealServer3 |
26 | 6 | RealServer3_ADDR=127.0.0.1 |
27 | 7 | RealServer3_PORT=50003 |
@@ -58,47 +38,17 @@ then | ||
58 | 38 | exit 1 |
59 | 39 | fi |
60 | 40 | |
61 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
62 | -if [ $? -ne 0 ] | |
63 | -then | |
64 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
65 | - exit 1 | |
66 | -fi | |
67 | - | |
68 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T | |
69 | -if [ $? -ne 0 ] | |
70 | -then | |
71 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T" | |
72 | - exit 1 | |
73 | -fi | |
74 | - | |
75 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T | |
76 | -if [ $? -ne 0 ] | |
77 | -then | |
78 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -T" | |
79 | - exit 1 | |
80 | -fi | |
81 | - | |
82 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T | |
83 | -if [ $? -ne 0 ] | |
84 | -then | |
85 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -T" | |
86 | - exit 1 | |
87 | -fi | |
88 | - | |
89 | - | |
90 | - | |
91 | -$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
41 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy | |
92 | 42 | if [ $? -ne 0 ] |
93 | 43 | then |
94 | - echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
44 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --tproxy" | |
95 | 45 | exit 1 |
96 | 46 | fi |
97 | 47 | |
98 | -$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M | |
48 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy | |
99 | 49 | if [ $? -ne 0 ] |
100 | 50 | then |
101 | - echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M" | |
51 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --tproxy" | |
102 | 52 | exit 1 |
103 | 53 | fi |
104 | 54 |
@@ -122,8 +72,6 @@ EXPECT="Layer-7 Virtual Server version 3.0.0 | ||
122 | 72 | Prot LocalAddress:Port ProtoMod Scheduler |
123 | 73 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
124 | 74 | TCP 127.0.0.1:40001 ip rr |
125 | - -> ${RealServer1_ADDR}:${RealServer1_PORT} Masq 1 0 0 | |
126 | - -> ${RealServer2_ADDR}:${RealServer2_PORT} Masq 1 0 0 | |
127 | 75 | -> ${RealServer3_ADDR}:${RealServer3_PORT} Masq 1 0 0 |
128 | 76 | -> ${RealServer4_ADDR}:${RealServer4_PORT} Masq 1 0 0 " |
129 | 77 | if [ "${RET}" != "${EXPECT}" ] |
@@ -2,26 +2,6 @@ | ||
2 | 2 | . ${SET_DEFAULT_CONF} |
3 | 3 | |
4 | 4 | #Run http server |
5 | -RealServer1=RealServer1 | |
6 | -RealServer1_ADDR=127.0.0.1 | |
7 | -RealServer1_PORT=50001 | |
8 | -start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT | |
9 | -if [ $? -ne 0 ] | |
10 | -then | |
11 | - echo "Test failed: start_lighttpd RealServer1" | |
12 | - exit 1 | |
13 | -fi | |
14 | - | |
15 | -RealServer2=RealServer2 | |
16 | -RealServer2_ADDR=[::1] | |
17 | -RealServer2_PORT=50002 | |
18 | -start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -i | |
19 | -if [ $? -ne 0 ] | |
20 | -then | |
21 | - echo "Test failed: start_lighttpd RealServer2" | |
22 | - exit 1 | |
23 | -fi | |
24 | - | |
25 | 5 | RealServer3=RealServer3 |
26 | 6 | RealServer3_ADDR=127.0.0.1 |
27 | 7 | RealServer3_PORT=50003 |
@@ -58,47 +38,17 @@ then | ||
58 | 38 | exit 1 |
59 | 39 | fi |
60 | 40 | |
61 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
41 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --masq | |
62 | 42 | if [ $? -ne 0 ] |
63 | 43 | then |
64 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
44 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} --masq" | |
65 | 45 | exit 1 |
66 | 46 | fi |
67 | 47 | |
68 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M | |
48 | +$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --masq | |
69 | 49 | if [ $? -ne 0 ] |
70 | 50 | then |
71 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -M" | |
72 | - exit 1 | |
73 | -fi | |
74 | - | |
75 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -M | |
76 | -if [ $? -ne 0 ] | |
77 | -then | |
78 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer3_ADDR}:${RealServer3_PORT} -M" | |
79 | - exit 1 | |
80 | -fi | |
81 | - | |
82 | -$L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -M | |
83 | -if [ $? -ne 0 ] | |
84 | -then | |
85 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} -M" | |
86 | - exit 1 | |
87 | -fi | |
88 | - | |
89 | - | |
90 | - | |
91 | -$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
92 | -if [ $? -ne 0 ] | |
93 | -then | |
94 | - echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
95 | - exit 1 | |
96 | -fi | |
97 | - | |
98 | -$L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T | |
99 | -if [ $? -ne 0 ] | |
100 | -then | |
101 | - echo "Test failed: $L7VSADM -e -t 127.0.0.1:40001 -m ip -r ${RealServer2_ADDR}:${RealServer2_PORT} -T" | |
51 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m ip -r ${RealServer4_ADDR}:${RealServer4_PORT} --masq" | |
102 | 52 | exit 1 |
103 | 53 | fi |
104 | 54 |
@@ -116,16 +66,11 @@ then | ||
116 | 66 | exit 1 |
117 | 67 | fi |
118 | 68 | |
119 | - | |
120 | - | |
121 | - | |
122 | 69 | RET=`$L7VSADM -l -n` |
123 | 70 | EXPECT="Layer-7 Virtual Server version 3.0.0 |
124 | 71 | Prot LocalAddress:Port ProtoMod Scheduler |
125 | 72 | -> RemoteAddress:Port Forward Weight ActiveConn InactConn |
126 | 73 | TCP 127.0.0.1:40001 ip rr |
127 | - -> ${RealServer1_ADDR}:${RealServer1_PORT} Tproxy 1 0 0 | |
128 | - -> ${RealServer2_ADDR}:${RealServer2_PORT} Tproxy 1 0 0 | |
129 | 74 | -> ${RealServer3_ADDR}:${RealServer3_PORT} Tproxy 1 0 0 |
130 | 75 | -> ${RealServer4_ADDR}:${RealServer4_PORT} Tproxy 1 0 0 " |
131 | 76 | if [ "${RET}" != "${EXPECT}" ] |
@@ -51,14 +51,6 @@ then | ||
51 | 51 | exit 1 |
52 | 52 | fi |
53 | 53 | |
54 | -RET=`$L7VSADM -e -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
55 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
56 | -if [ "${RET}" != "${EXPECT}" ] | |
57 | -then | |
58 | - echo "Test failed: $L7VSADM -e -t localhost:40001 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M -T" | |
59 | - exit 1 | |
60 | -fi | |
61 | - | |
62 | 54 | RET=`$L7VSADM -e -t localhost:40002 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
63 | 55 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
64 | 56 | if [ "${RET}" != "${EXPECT}" ] |
@@ -67,30 +59,6 @@ then | ||
67 | 59 | exit 1 |
68 | 60 | fi |
69 | 61 | |
70 | -RET=`$L7VSADM -e -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
71 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
72 | -if [ "${RET}" != "${EXPECT}" ] | |
73 | -then | |
74 | - echo "Test failed: $L7VSADM -e -t localhost:40003 -m ip -r $RealServer1_ADDR:$RealServer1_PORT -M --tproxy" | |
75 | - exit 1 | |
76 | -fi | |
77 | - | |
78 | -RET=`$L7VSADM -e -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
79 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
80 | -if [ "${RET}" != "${EXPECT}" ] | |
81 | -then | |
82 | - echo "Test failed: $L7VSADM -e -t localhost:40004 -m ip -r $RealServer1_ADDR:$RealServer1_PORT --masq -T" | |
83 | - exit 1 | |
84 | -fi | |
85 | - | |
86 | -RET=`$L7VSADM -e -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
87 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
88 | -if [ "${RET}" != "${EXPECT}" ] | |
89 | -then | |
90 | - echo "Test failed: $L7VSADM -e -t localhost:40005 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M -T" | |
91 | - exit 1 | |
92 | -fi | |
93 | - | |
94 | 62 | RET=`$L7VSADM -e -t localhost:40006 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` |
95 | 63 | EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." |
96 | 64 | if [ "${RET}" != "${EXPECT}" ] |
@@ -99,21 +67,5 @@ then | ||
99 | 67 | exit 1 |
100 | 68 | fi |
101 | 69 | |
102 | -RET=`$L7VSADM -e -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
103 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
104 | -if [ "${RET}" != "${EXPECT}" ] | |
105 | -then | |
106 | - echo "Test failed: $L7VSADM -e -t localhost:40007 -m ip -r $RealServer2_ADDR:$RealServer2_PORT -M --tproxy" | |
107 | - exit 1 | |
108 | -fi | |
109 | - | |
110 | -RET=`$L7VSADM -e -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T 2>&1 | grep "PARSE ERROR: Option --masq/tproxy is conflict."` | |
111 | -EXPECT="PARSE ERROR: Option --masq/tproxy is conflict." | |
112 | -if [ "${RET}" != "${EXPECT}" ] | |
113 | -then | |
114 | - echo "Test failed: $L7VSADM -e -t localhost:40008 -m ip -r $RealServer2_ADDR:$RealServer2_PORT --masq -T" | |
115 | - exit 1 | |
116 | -fi | |
117 | - | |
118 | 70 | exit 0 |
119 | 71 |
@@ -14,16 +14,16 @@ usleep 100000 | ||
14 | 14 | RET=`$L7VSADM --help` |
15 | 15 | EXPECT="Usage: |
16 | 16 | l7vsadm -A -t service-address -m proto-module [module-args] |
17 | - [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M] | |
17 | + [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy] | |
18 | 18 | [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file] |
19 | 19 | [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]] |
20 | 20 | l7vsadm -E -t service-address -m proto-module [module-args] |
21 | - [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M] | |
21 | + [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy] | |
22 | 22 | [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag] |
23 | 23 | l7vsadm -D -t service-address -m proto-module [module-args] |
24 | 24 | l7vsadm -C |
25 | 25 | l7vsadm -a|e -t service-address -m proto-module [module-args] |
26 | - -r server-address [-w weight] [-T|M] | |
26 | + -r server-address [-w weight] [--masq|tproxy] | |
27 | 27 | l7vsadm -d -t service-address -m proto-module [module-args] |
28 | 28 | -r server-address |
29 | 29 | l7vsadm -R -s replication-switch |
@@ -57,13 +57,13 @@ Commands: | ||
57 | 57 | |
58 | 58 | Options: |
59 | 59 | --tcp-service -t service-address service-address is host:port |
60 | - --proto-module -m proto-module protocol module name and module argment | |
60 | + --proto-module -m proto-module protocol module name and module argument | |
61 | 61 | [module-args] |
62 | 62 | --scheduler -s scheduler one of rr,lc,wrr |
63 | 63 | --upper -u connection-count maximum number of connections |
64 | 64 | --bypass -b sorry-server sorry server address is host:port |
65 | - --tproxy -T set sorry server connection to IP transparent mode. | |
66 | - --masq -M set sorry server connection to IP masquarade mode. | |
65 | + --tproxy set sorry server connection to IP transparent mode. | |
66 | + --masq set sorry server connection to IP masquerade mode. | |
67 | 67 | --flag -f sorry-flag sorry status set to virtual service |
68 | 68 | --qos-up -Q QoSval-up QoS Threshold(bps) set to real server direction |
69 | 69 | --qos-down -q QoSval-down QoS Threshold(bps) set to client direction |
@@ -74,8 +74,8 @@ Options: | ||
74 | 74 | [logrotate-args] |
75 | 75 | --real-server -r server-address server-address is host:port |
76 | 76 | --weight -w weight scheduling weight set to real server |
77 | - --tproxy -T set real server connection to IP transparent mode. | |
78 | - --masq -M set real server connection to IP masquarade mode. | |
77 | + --tproxy set real server connection to IP transparent mode. | |
78 | + --masq set real server connection to IP masquerade mode. | |
79 | 79 | --switch -s replication-switch start or stop replication |
80 | 80 | --force -f force replication start |
81 | 81 | --dump -d dump replication memory |
@@ -14,16 +14,16 @@ usleep 100000 | ||
14 | 14 | RET=`$L7VSADM -h` |
15 | 15 | EXPECT="Usage: |
16 | 16 | l7vsadm -A -t service-address -m proto-module [module-args] |
17 | - [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M] | |
17 | + [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy] | |
18 | 18 | [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file] |
19 | 19 | [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]] |
20 | 20 | l7vsadm -E -t service-address -m proto-module [module-args] |
21 | - [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M] | |
21 | + [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy] | |
22 | 22 | [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag] |
23 | 23 | l7vsadm -D -t service-address -m proto-module [module-args] |
24 | 24 | l7vsadm -C |
25 | 25 | l7vsadm -a|e -t service-address -m proto-module [module-args] |
26 | - -r server-address [-w weight] [-T|M] | |
26 | + -r server-address [-w weight] [--masq|tproxy] | |
27 | 27 | l7vsadm -d -t service-address -m proto-module [module-args] |
28 | 28 | -r server-address |
29 | 29 | l7vsadm -R -s replication-switch |
@@ -57,13 +57,13 @@ Commands: | ||
57 | 57 | |
58 | 58 | Options: |
59 | 59 | --tcp-service -t service-address service-address is host:port |
60 | - --proto-module -m proto-module protocol module name and module argment | |
60 | + --proto-module -m proto-module protocol module name and module argument | |
61 | 61 | [module-args] |
62 | 62 | --scheduler -s scheduler one of rr,lc,wrr |
63 | 63 | --upper -u connection-count maximum number of connections |
64 | 64 | --bypass -b sorry-server sorry server address is host:port |
65 | - --tproxy -T set sorry server connection to IP transparent mode. | |
66 | - --masq -M set sorry server connection to IP masquarade mode. | |
65 | + --tproxy set sorry server connection to IP transparent mode. | |
66 | + --masq set sorry server connection to IP masquerade mode. | |
67 | 67 | --flag -f sorry-flag sorry status set to virtual service |
68 | 68 | --qos-up -Q QoSval-up QoS Threshold(bps) set to real server direction |
69 | 69 | --qos-down -q QoSval-down QoS Threshold(bps) set to client direction |
@@ -74,8 +74,8 @@ Options: | ||
74 | 74 | [logrotate-args] |
75 | 75 | --real-server -r server-address server-address is host:port |
76 | 76 | --weight -w weight scheduling weight set to real server |
77 | - --tproxy -T set real server connection to IP transparent mode. | |
78 | - --masq -M set real server connection to IP masquarade mode. | |
77 | + --tproxy set real server connection to IP transparent mode. | |
78 | + --masq set real server connection to IP masquerade mode. | |
79 | 79 | --switch -s replication-switch start or stop replication |
80 | 80 | --force -f force replication start |
81 | 81 | --dump -d dump replication memory |
@@ -15,28 +15,33 @@ RET=`$L7VSADM -x 2>&1` | ||
15 | 15 | EXPECT="PARSE ERROR: command not found. |
16 | 16 | Usage: |
17 | 17 | l7vsadm -A -t service-address -m proto-module [module-args] |
18 | - [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M] | |
18 | + [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy] | |
19 | 19 | [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-z ssl-config-file] |
20 | 20 | [-O socket-option] [-L access-log-flag] [-a access-log-file [logrotate-args]] |
21 | 21 | l7vsadm -E -t service-address -m proto-module [module-args] |
22 | - [-s scheduler] [-u connection-count] [-b sorry-server] [-T|M] | |
22 | + [-s scheduler] [-u connection-count] [-b sorry-server] [--masq|tproxy] | |
23 | 23 | [-f sorry-flag] [-Q QoSval-up] [-q QoSval-down] [-L access-log-flag] |
24 | 24 | l7vsadm -D -t service-address -m proto-module [module-args] |
25 | 25 | l7vsadm -C |
26 | 26 | l7vsadm -a|e -t service-address -m proto-module [module-args] |
27 | - -r server-address [-w weight] [-T|M] | |
27 | + -r server-address [-w weight] [--masq|tproxy] | |
28 | 28 | l7vsadm -d -t service-address -m proto-module [module-args] |
29 | 29 | -r server-address |
30 | 30 | l7vsadm -R -s replication-switch |
31 | 31 | l7vsadm -R -f |
32 | 32 | l7vsadm -R -d |
33 | 33 | l7vsadm -L -c log-category -l log-level |
34 | - l7vsadm -S -c log-category -l log-level | |
34 | + l7vsadm -S [-f snmp-flag] [-i update-interval] [-t log-trap-flag] [-l log-trap-level] | |
35 | + l7vsadm -S -r [-t service-address -m proto-module] | |
35 | 36 | l7vsadm -P -r reload-parameter |
36 | 37 | l7vsadm -l [-n] |
37 | 38 | l7vsadm -V [-n] |
38 | 39 | l7vsadm -K [-n] |
39 | 40 | l7vsadm -h" |
41 | + | |
42 | +echo "$RET">/tmp/1 | |
43 | +echo "$EXPECT">/tmp/2 | |
44 | +diff -u /tmp/1 /tmp/2 | |
40 | 45 | if [ "${RET}" != "${EXPECT}" ] |
41 | 46 | then |
42 | 47 | echo "Test failed: $L7VSADM -x" |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
32 | +$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
35 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
32 | +$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
35 | + echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
32 | +$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
35 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
32 | +$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
35 | + echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M | |
25 | +$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M | |
28 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq | |
29 | 29 | " |
30 | 30 | exit 1 |
31 | 31 | fi |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M | |
25 | +$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M | |
28 | + echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq | |
29 | 29 | " |
30 | 30 | exit 1 |
31 | 31 | fi |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T | |
25 | +$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T | |
28 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy | |
29 | 29 | " |
30 | 30 | exit 1 |
31 | 31 | fi |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T | |
25 | +$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T | |
28 | + echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy | |
29 | 29 | " |
30 | 30 | exit 1 |
31 | 31 | fi |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
32 | +$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
35 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M | |
32 | +$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -M" | |
35 | + echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --masq" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
32 | +$L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
35 | + echo "Test failed: $L7VSADM -a -t 127.0.0.1:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -29,10 +29,10 @@ then | ||
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 | |
32 | -$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T | |
32 | +$L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy | |
33 | 33 | if [ $? -ne 0 ] |
34 | 34 | then |
35 | - echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} -T" | |
35 | + echo "Test failed: $L7VSADM -a -t [::1]:40001 -m sessionless -r ${RealServer1_ADDR}:${RealServer1_PORT} --tproxy" | |
36 | 36 | exit 1 |
37 | 37 | fi |
38 | 38 |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
25 | +$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
28 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
25 | +$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -M -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
28 | + echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --masq -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
25 | +$L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
28 | + echo "Test failed: $L7VSADM -A -t 127.0.0.1:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 |
@@ -22,10 +22,10 @@ fi | ||
22 | 22 | usleep 100000 |
23 | 23 | |
24 | 24 | # Add service |
25 | -$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
25 | +$L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf | |
26 | 26 | if [ $? -ne 0 ] |
27 | 27 | then |
28 | - echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} -T -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
28 | + echo "Test failed: $L7VSADM -A -t [::1]:40001 -m sessionless -b ${SorryServer_ADDR}:${SorryServer_PORT} --tproxy -z $L7VSD_CONF_DIR/sslproxy/sslproxy.target.cf" | |
29 | 29 | exit 1 |
30 | 30 | fi |
31 | 31 |