Require at least one zone for a provider

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-03-08 13:08:23 -08:00
parent e1f7a9dbf8
commit bd64baa8d9

View File

@ -512,6 +512,8 @@ sub process_a_provider( $ ) {
$maxload += $load;
}
fatal_error "A provider interface must have at least one associated zone" unless $tproxy || %{interface_zones($interface)};
if ( $local ) {
fatal_error "GATEWAY not valid with 'local' provider" unless $gatewaycase eq 'none';
fatal_error "'track' not valid with 'local'" if $track;