Debian Codegraph @

tests/029_dnat_ipv4_tcp_udp_multifarm_hash_params/input.json

raw
1 {
2 "farms" : [
3 {
4 "name" : "lb01",
5 "family" : "ipv4",
6 "virtual-addr" : "192.168.0.100",
7 "virtual-ports" : "80",
8 "mode" : "dnat",
9 "protocol" : "tcp",
10 "scheduler" : "hash",
11 "sched-param" : "dstip",
12 "state" : "up",
13 "backends" : [
14 {
15 "name" : "bck0",
16 "ip-addr" : "192.168.0.10",
17 "weight" : "5",
18 "priority" : "1",
19 "state" : "up"
20 },
21 {
22 "name" : "bck1",
23 "ip-addr" : "192.168.0.11",
24 "weight" : "5",
25 "priority" : "1",
26 "state" : "up"
27 }
28 ]
29 },
30 {
31 "name" : "lb02",
32 "family" : "ipv4",
33 "virtual-addr" : "192.168.0.100",
34 "virtual-ports" : "53",
35 "mode" : "dnat",
36 "protocol" : "udp",
37 "scheduler" : "hash",
38 "sched-param" : "srcip srcport srcmac",
39 "state" : "up",
40 "backends" : [
41 {
42 "name" : "bck0",
43 "ip-addr" : "192.168.0.10",
44 "weight" : "5",
45 "priority" : "1",
46 "state" : "up"
47 },
48 {
49 "name" : "bck1",
50 "ip-addr" : "192.168.0.11",
51 "weight" : "5",
52 "priority" : "1",
53 "state" : "up"
54 }
55 ]
56 }
57 ]
58 }