From 0d682fe78b5711d7dac3975e2e42d8db4680a88a Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 19 Jul 2018 09:57:06 -0700 Subject: [PATCH] Disallow optional shared providers Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 8084a4f58..a0a686e9a 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -636,6 +636,7 @@ sub process_a_provider( $ ) { } fatal_error "A provider interface must have at least one associated zone" unless $tproxy || %{interface_zones($interface)}; + fatal_error "An interface supporting multiple providers may not be optional" if $shared && $optional; unless ( $pseudo ) { if ( $local ) {