Artur Uszyński wrote: > According to http://www.shorewall.net/MultiISP.html, section "What an > entry in the Providers File Does": > > "1. Unless loose is specified, an ip rule is generated for each IP > address on the INTERFACE that routes traffic from that address through > the associated routing table." > > It works like that in case of using shell compiler, but perl compiler > does not do that - I need to add appropriate rules manually to > route_rules.
Thanks for the report. It turns out that the meaning of 'loose' is accidentally reversed in Shorewall-perl; specifying 'loose' causes the rules to be added rather than omitted. Corrected by the attached patch. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
Index: Shorewall/Providers.pm =================================================================== --- Shorewall/Providers.pm (revision 7326) +++ Shorewall/Providers.pm (working copy) @@ -271,7 +271,7 @@ $providers{$table}{optional} = $optional; - if ( $loose ) { + unless ( $loose ) { my $rulebase = 20000 + ( 256 * ( $number - 1 ) ); emit "\nrulenum=0\n";
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users