On 11/26/10 4:18 PM, Steven Jan Springl wrote: > Tom > > Having recreated the capabilities file, "shorewall start" produces the > following message: > > WARNING: Unknown capability (HEADER_MATCH) > ignored : /etc/shorewall2/capabilities (line 54) > > Note, this also happens with shorewall6. > > ------------------------------------------------------------------------------------------------------------- > > The following entry in the routes file: > > 0 10.1.1.0/24 - - > > produces the following message: > > Use of uninitialized value $physical in concatenation (.) or string > at /usr/share/shorewall/Shorewall/Providers.pm line 690, <$currentfile> line > 9.
The attached patches should correct these problems. Thanks for testing, Steven. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Config.pm
b/Shorewall/Perl/Shorewall/Config.pm
index 5a4fdd6..4f3b657 100644
--- a/Shorewall/Perl/Shorewall/Config.pm
+++ b/Shorewall/Perl/Shorewall/Config.pm
@@ -685,6 +685,7 @@ sub initialize( $ ) {
FLOW_FILTER => undef,
FWMARK_RT_MASK => undef,
MARK_ANYWHERE => undef,
+ HEADER_MATCH => undef,
CAPVERSION => undef,
KERNELVERSION => undef,
);
diff --git a/Shorewall/Perl/Shorewall/Providers.pm
b/Shorewall/Perl/Shorewall/Providers.pm
index 96b6e80..1e9b365 100644
--- a/Shorewall/Perl/Shorewall/Providers.pm
+++ b/Shorewall/Perl/Shorewall/Providers.pm
@@ -655,13 +655,13 @@ sub add_a_route( ) {
for ( keys %providers ) {
if ( $providers{$_}{number} == $provider_number ) {
$provider = $_;
- $found = 1;
+ $found = $providers{$provider}{physical};
last;
}
}
}
- fatal_error "Unknown provider ($provider)" unless $found;
+ fatal_error "Unknown or invalid provider ($provider)" unless $found;
}
validate_net ( $dest, 1 );
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
