diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index 6e67c020d..2a4dd9c76 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -163,8 +163,8 @@ sub process_one_masq( ) if ( $addresses eq 'random' ) { $randomize = '--random '; } else { - $addresses =~ s/:persistent$// and $persistent = '--persistent '; - $addresses =~ s/:random$// and $randomize = '--random '; + $addresses =~ s/:persistent$// and $persistent = ' --persistent '; + $addresses =~ s/:random$// and $randomize = ' --random '; require_capability 'PERSISTENT_SNAT', ':persistent', 's' if $persistent;