diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2007-12-14 13:40:31 -0800 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2007-12-14 13:40:31 -0800 |
commit | 59b21be36b2f4cd74aa0cea53492e3023b59770b (patch) | |
tree | c1f1893bcba148eff202148f548328155bf729d4 /src/loadbalance.conf | |
download | vyatta-wanloadbalance-debian/0.1.tar.gz vyatta-wanloadbalance-debian/0.1.zip |
initial check wan lbdebian/0.1
Signed-off-by: Michael Larson <slioch@eng-140.vyatta.com>
Diffstat (limited to 'src/loadbalance.conf')
-rw-r--r-- | src/loadbalance.conf | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/loadbalance.conf b/src/loadbalance.conf new file mode 100644 index 0000000..85e6c5d --- /dev/null +++ b/src/loadbalance.conf @@ -0,0 +1,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 + } +}
\ No newline at end of file |