diff --git a/Shorewall/Perl/Shorewall/Nat.pm b/Shorewall/Perl/Shorewall/Nat.pm index 424fdcee5..8116e3039 100644 --- a/Shorewall/Perl/Shorewall/Nat.pm +++ b/Shorewall/Perl/Shorewall/Nat.pm @@ -458,6 +458,8 @@ sub setup_netmap() { require_capability 'RAWPOST_TABLE', 'Stateless NAT Entries', ''; + validate_net $net2, 0; + unless ( $interfaceref->{root} ) { @match = imatch_dest_dev( $interface ); $interface = $interfaceref->{name};