diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index d92ab9185..79294fb28 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -5509,6 +5509,8 @@ sub process_snat1( $$$$$$$$$$$$ ) { $detectaddress = 1; } } else { + fatal_error "SNAT rules must spacify a new source address and/or new source ports" unless supplied $addresses; + my $addrlist = ''; my @addrs = split_list $addresses, 'address';