Hi Tom,
Am 14.04.2011 21:07, schrieb Tom Eastep:
> Hi Jörg,
>
> On 04/14/2011 10:25 AM, Jörg Kleuver wrote:
>
>> If I add balance to the providers file for both ISPs, i guess there's
>> still something wrong in the case i have default routes with metric<> 0
>> and no default route with metric 0. shorewall start works and the
>> balanced route is added, but not removed when doing shorewall stop.
>
> That's a case that I didn't test. Attached patch should correct it.
>
>>
>> I'll test some cases tomorrow with USE_DEFAULT_RT=Yes.
>>
>
> I did test that so hopefully your testing tomorrow will go smoother.
>
> -Tom
I found the reason for the balanced route not to be removed. There was a
typo in DEFROUTE3.diff:
@@ -557,6 +561,15 @@ restore_default_route() {
esac
done < ${VARDIR}/default_route
+ if [ -n "$default_route" ]; then
+ replace_default_route
+ elif [ $result = 1 ]; then
+ #
+ # We added a default route with metric 0 but there wasn't one
previously
+ #
+ qt -4 ip route del default metric 0 && progress_message "Default
route with metric 0 deleted"
^^^^^^^^^^^^^^
+ fi
+
With that fixed this case is working properly. I'll test some more later.
Greetings Jörg
--
CISS TDI GmbH
Jörg Kleuver CISS TDI GmbH
Tel. +49 2642 97 80 28 Barbarossastraße 36
Fax. +49 2642 97 80 10 53489 Sinzig, Germany
Sitz der Gesellschaft: Sinzig AG Koblenz, HR-Nummer 13357
Geschäftsführer: Dipl.-Math. Joachim Figura, Dipl.-Inform. Berthold Bärk
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users