Fix restart with load-balancing

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2147 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-05-20 16:57:13 +00:00
parent a9956c0406
commit 4a11dfe292
4 changed files with 39 additions and 5 deletions

View File

@ -1082,8 +1082,14 @@ setup_providers()
run_and_save_command qt ip route flush table $number run_and_save_command qt ip route flush table $number
if [ "x$duplicate" != x- ]; then if [ "x$duplicate" != x- ]; then
run_ip route show table $duplicate | grep -Ev ^default | while read route; do run_ip route show table $duplicate | while read net route; do
ensure_and_save_command ip route add table $number $route case $net in
default|nexthop)
;;
*)
ensure_and_save_command ip route add table $number $net $route
;;
esac
done done
fi fi
@ -1151,7 +1157,6 @@ setup_providers()
# local # local
# #
EOF EOF
for table in $PROVIDERS; do for table in $PROVIDERS; do
eval number=\$${table}_number eval number=\$${table}_number
/bin/echo -e "$number\t$table" >> /etc/iproute2/rt_tables /bin/echo -e "$number\t$table" >> /etc/iproute2/rt_tables

View File

@ -50,7 +50,19 @@
# #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS # #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS
# Squid 1 1 - eth2 192.168.2.99 - # Squid 1 1 - eth2 192.168.2.99 -
# #
# For additional information, see http://shorewall.net/NAT.htm # Example:
#
# eth0 connects to ISP 1. The IP address of eth0 is 206.124.146.176 and
# the ISP's gateway router has IP address 206.124.146.254.
#
# eth1 connects to ISP 2. The IP address of eth1 is 130.252.99.27 and the
# ISP's gateway router has IP address 130.252.99.254.
#
# #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS
# ISP1 1 1 main eth0 206.124.146.254 track,balance
# ISP2 2 2 main eth1 130.252.99.254 track,balance
#
# For additional information, see http://shorewall.net/Shorewall_and_Routing.html
############################################################################## ##############################################################################
#NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS
#LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE #LAST LINE -- ADD YOUR ENTRIES ABOVE THIS LINE -- DO NOT REMOVE

View File

@ -1,5 +1,18 @@
Shorewall 2.4.0-RC1 Shorewall 2.4.0-RC1
-----------------------------------------------------------------------
Problems Corrected since 2.3.2
1) The /etc/shorewall/providers file is now installed correctly.
2) "shorewall restart" now works correctly when multiple providers
with load-balancing were specified when Shorewall was originally
started.
3) Routes created by entries in /etc/shorewall/proxyarp are now
copied to new routing tables created by entries in
/etc/shorewall/providers.
----------------------------------------------------------------------- -----------------------------------------------------------------------
Upgrade Issues when moving to 2.4.0 Upgrade Issues when moving to 2.4.0

View File

@ -16,10 +16,14 @@
# final mark for each packet will be the one assigned by the # final mark for each packet will be the one assigned by the
# LAST tcrule that matches. # LAST tcrule that matches.
# #
# If you use multiple internet providers with the 'track' option,
# in /etc/shorewall/providers be sure to read the restrictions at
# http://shorewall.net/Shorewall_and_Routing.html.
#
# Columns are: # Columns are:
# #
# #
# MARK/ a) A mark value which is a integer in the range 1-255 # MARK/ a) A mark value which is an integer in the range 1-255
# CLASSIFY # CLASSIFY
# May optionally be followed by ":P" or ":F" # May optionally be followed by ":P" or ":F"
# where ":P" indicates that marking should occur in # where ":P" indicates that marking should occur in