diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/init.d/vyatta-wanloadbalance | 44 | ||||
-rw-r--r-- | etc/loadbalance.conf | 50 |
2 files changed, 0 insertions, 94 deletions
diff --git a/etc/init.d/vyatta-wanloadbalance b/etc/init.d/vyatta-wanloadbalance deleted file mode 100644 index 214ea8e..0000000 --- a/etc/init.d/vyatta-wanloadbalance +++ /dev/null @@ -1,44 +0,0 @@ -#! /bin/bash - -### BEGIN INIT INFO -# Provides: vyatta-wanloadbalnce -# Required-Start: $network $remote_fs $syslog -# Required-Stop: $network $remote_fs $syslog -# Default-Start: -# Default-Stop: -# Short-Description: Vyatta WAN loadbalance service -### END INIT INFO - -declare progname=${0##*/} -declare action=$1; shift - -conf=$1; shift -pid=/var/run/vyatta/wlb.pid - -test -x $bb || exit 0 - -start () -{ - if [ -n "$conf" ] ; then - /opt/vyatta/sbin/wan_lb -f $conf -d -i $pid 2>/dev/null - else - /opt/vyatta/sbin/wan_lb -f /var/run/load-balance/wlb.conf -d -i $pid 2>/dev/null - fi -} - -stop () -{ - if [ -f $pid ] - then - kill -s SIGTERM $( cat $pid ) 2>/dev/null - fi -} - -case "$action" in - start) start;; - stop) stop;; - force-reload) stop; sleep 1; start;; - restart) stop; sleep 1; start;; - *) echo "Usage: $progname {start|stop|restart}" - exit 1 -esac diff --git a/etc/loadbalance.conf b/etc/loadbalance.conf deleted file mode 100644 index 85e6c5d..0000000 --- a/etc/loadbalance.conf +++ /dev/null @@ -1,50 +0,0 @@ -# -# 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 |