Fix default route generation with explicit GATEWAYs in providers file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3842 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-05-02 20:27:50 +00:00
parent a33b2cf937
commit 61309e8bd0
3 changed files with 15 additions and 1 deletions

View File

@ -6,6 +6,10 @@ Changes in 3.2.0 Beta 6
3) Add TOS column to tcrules.
4) Fix 'proxyarp' interface attribute handling.
5) Fix default route generation in providers handling.
Changes in 3.2.0 Beta 5
1) Fix compilation problem on LEAF Bering.

View File

@ -1260,7 +1260,11 @@ __EOF__
;;
balance)
balance=yes
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight 1\""
if [ "x$gateway" = xdetect ] ; then
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight 1\""
else
save_command "DEFAULT_ROUTE=\"\$DEFAULT_ROUTE nexthop via \$gateway dev $interface weight 1\""
fi
;;
loose)
loose=Yes

View File

@ -40,6 +40,12 @@ Problems Corrected in 3.2.0 Beta 6
even when the -e option had not been specified.
3) Previously, the 'proxyarp' option in /etc/shorewall/interfaces caused
startup errors.
4) Previously, specifying specific IP addresses for GATEWAY in with 'balance'
/etc/shorewall/providers caused a [re]start error.
Other changes in 3.2.0 Beta 6
1) A TOS column has been added to /etc/shorewall/tcrules. This allows marking