On 02/25/2013 01:32 PM, Tom Eastep wrote:
> On 02/25/2013 01:17 PM, Steven Jan Springl wrote:

>> Shorewall6 snat entry:
>>
>> eth0  2001:1::/56  [2001:470:a:227::2]-[2001:470:a:227::10]::1000-1010
>>
>> Produces error message:
>>
>> ERROR: Invalid IPv6 Address (2001:470:a:227::2]) /etc/shorewall6A1/snat 
>> (line 
>> 10)
>>
> 
> The attached patch should correct this; although, the correct entry
> would be:
> 
> eth0  2001:1::/56  [2001:470:a:227::2]-[2001:470:a:227::10]:1000-1010

And the attached patch will catch the :: in your entry.

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 ccbcfcd..12599df 100644
--- a/Shorewall/Perl/Shorewall/Nat.pm
+++ b/Shorewall/Perl/Shorewall/Nat.pm
@@ -269,7 +269,7 @@ sub process_one_masq1( $$$$$$$$$$ )
 				#
 				my $ports;
 
-				if ( $addr =~ s/:([^]]+)$// ) {
+				if ( $addr =~ s/:([^]:]+)$// ) {
 				    $ports = $1;
 				}
 

Attachment: 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

Reply via email to