mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-12 08:38:14 +01:00
Allow route weight to be specified via 'balance=<weight>'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2210 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
9455783312
commit
1194f7c42a
@ -1,3 +1,7 @@
|
||||
Changes in 2.4.0-Final
|
||||
|
||||
1) Add the ability to specify a weight in the balance option.
|
||||
|
||||
Changes in 2.4.0-RC2
|
||||
|
||||
1) Relax "detect" restriction.
|
||||
|
@ -1136,6 +1136,9 @@ setup_providers()
|
||||
eval ${iface}_routemark=$mark
|
||||
ROUTEMARK_INTERFACES="$ROUTEMARK_INTERFACES $interface"
|
||||
;;
|
||||
balance=*)
|
||||
DEFAULT_ROUTE="$DEFAULT_ROUTE nexthop via $gateway dev $interface weight ${option#*=}"
|
||||
;;
|
||||
balance)
|
||||
DEFAULT_ROUTE="$DEFAULT_ROUTE nexthop via $gateway dev $interface weight 1"
|
||||
;;
|
||||
|
@ -45,7 +45,12 @@
|
||||
# connecting to local servers through this provider.
|
||||
#
|
||||
# balance The providers that have 'default' specified will
|
||||
# get outbound traffic load-balanced among them.
|
||||
# get outbound traffic load-balanced among them. By
|
||||
# default, all interfaces with 'balance' specified
|
||||
# will have the same weight (1). You can change the
|
||||
# weight of an interface by specifiying balance=<weight>
|
||||
# where <weight> is the weight of the route out of
|
||||
# this interface.
|
||||
#
|
||||
# Example: You run squid in your DMZ on IP address 192.168.2.99. Your DMZ
|
||||
# interface is eth2
|
||||
|
@ -71,7 +71,12 @@ New Features in version 2.4.0
|
||||
better yet, use the CLASSIFY target).
|
||||
|
||||
balance The providers that have 'balance' specified will
|
||||
get outbound traffic load-balanced among them.
|
||||
get outbound traffic load-balanced among them. By
|
||||
default, all interfaces with 'balance' specified
|
||||
will have the same weight (1). You can change the
|
||||
weight of the route out of the interface by
|
||||
specifiying balance=<weight> where <weight> is
|
||||
the desired route weight.
|
||||
|
||||
Example: You run squid in your DMZ on IP address
|
||||
192.168.2.99. Your DMZ interface is eth2
|
||||
|
Loading…
Reference in New Issue
Block a user