blob: 85e6c5d260e66d8311ff87c126fc86e144a1569f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#
# Sample vyatta load balance configuration file.
#
health {
interface eth1 {
target 10.0.0.1
success-ct 2
failure-ct 1
ping-resp 100
}
interface eth2 {
target 10.0.0.1
success-ct 1
failure-ct 1
ping-resp 1000
}
}
rule 1 {
protocol udp
interface eth1 {
weight 1
}
interface eth2 {
weight 2
}
}
rule 2 {
protocol tcp
source {
address 1.1.1.1
port-number 2222
}
interface eth1 {
weight 1
}
interface eth2 {
weight 3
}
}
#default rule w/o protocol specified
rule 10 {
interface eth2 {
weight 1
}
}
|