On 02/24/2013 06:53 AM, Steven Jan Springl wrote: > Shorewall6 snat entry: > > eth0() 2001:1:1:1::1 ð0 > > produces the following message: > > Use of uninitialized value $provider_number in numeric eq (==) at > /usr/share/shorewall/Shorewall/Providers.pm line 1706, <$currentfile> line 10.
This issue is not unique to Shorewall6 -- would also occur using Shorewall. Patch attached. Thanks 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/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm
index 0eea857..db4476c 100644
--- a/Shorewall/Perl/Shorewall/Nat.pm
+++ b/Shorewall/Perl/Shorewall/Nat.pm
@@ -140,6 +140,9 @@ sub process_one_masq1( $$$$$$$$$$ )
if ( $interface =~ /(.*)[(](\w*)[)]$/ ) {
$interface = $1;
my $provider = $2;
+
+ fatal_error "Missing Provider ($fullinterface)" unless supplied $provider;
+
$fullinterface =~ s/[(]\w*[)]//;
my $realm = lookup_provider( $provider );
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
