On 11/5/2015 5:11 PM, Tom Eastep wrote:
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.


The attached patch is better.

-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..0d351a6 100644
--- a/Shorewall/Perl/Shorewall/Providers.pm
+++ b/Shorewall/Perl/Shorewall/Providers.pm
@@ -1768,6 +1768,7 @@ sub map_provider_to_interface() {
 
 sub setup_providers() {
     our $providers;
+    our $pseudoproviders;
 
     if ( $providers ) {
        if ( $maxload ) {
@@ -1798,6 +1799,11 @@ sub setup_providers() {
 
        setup_route_marking if @routemarked_interfaces || @load_interfaces;
     } else {
+       if ( $pseudoproviders ) {
+           emit '';
+           emit "start_$providers{$_}->{what}_$_" for @providers;
+       }
+       
        emit "\nif [ -z \"\$g_noroutes\" ]; then";
 
        push_indent;
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to