On 11/5/2015 12:30 PM, Tom Eastep wrote:
On 11/05/2015 06:42 AM, matt darfeuille wrote:
If I understand correctly the status -i command should display the
interfaces which have the option "optionel" in the "interfaces" file?
If so I do not have any *.status file in my vardir directory even
though I have some interface with the "optional" option.

Is it because of openwrt or am I misunderstanding/missing something?


I don't know. If you send me the compiled firewall script, I can take a
look...

Hi Matt,

Please try the attached patch to your Shorewall installation. If the providers file is empty, the optional interfaces were not being enabled.

Thanks,
-Tom
--
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Providers.pm 
b/Shorewall/Perl/Shorewall/Providers.pm
index 3aea167..d6a0475 100644
--- a/Shorewall/Perl/Shorewall/Providers.pm
+++ b/Shorewall/Perl/Shorewall/Providers.pm
@@ -1768,8 +1768,9 @@ sub map_provider_to_interface() {
 
 sub setup_providers() {
     our $providers;
+    our $pseudoproviders;
 
-    if ( $providers ) {
+    if ( $providers || $pseudoproviders ) {
        if ( $maxload ) {
            warning_message "The sum of the provider interface loads exceeds 
1.000000" if $maxload > 1;
            warning_message "The sum of the provider interface loads is less 
than 1.000000" if $maxload < 1;
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to