On 02/25/2013 01:17 PM, Steven Jan Springl wrote: > Tom > > 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 -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 1019f88..ccbcfcd 100644
--- a/Shorewall/Perl/Shorewall/Nat.pm
+++ b/Shorewall/Perl/Shorewall/Nat.pm
@@ -277,7 +277,7 @@ sub process_one_masq1( $$$$$$$$$$ )
$addr = $1;
- if ( $addr =~ /^(.+)-(.+)$/ ) {
+ if ( $addr =~ /^(.+)]-\[(.+)$/ ) {
validate_range( $1, $2 );
} else {
validate_address $addr, 0;
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
