[LON-CAPA-cvs] cvs: loncom /configuration Firewall.pm

raeburn raeburn at source.lon-capa.org
Sat Aug 8 19:20:32 EDT 2026


raeburn		Sat Aug  8 23:20:32 2026 EDT

  Modified files:              
    /loncom/configuration	Firewall.pm 
  Log:
  - Support distros (e.g., Ubuntu 26) where /proc/net/ip_tables_names is
    not populated, even though firewall is active.
  
  
Index: loncom/configuration/Firewall.pm
diff -u loncom/configuration/Firewall.pm:1.28 loncom/configuration/Firewall.pm:1.29
--- loncom/configuration/Firewall.pm:1.28	Fri Sep 13 03:52:03 2024
+++ loncom/configuration/Firewall.pm	Sat Aug  8 23:20:32 2026
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Firewall configuration to allow internal LON-CAPA communication between servers   
 #
-# $Id: Firewall.pm,v 1.28 2024/09/13 03:52:03 raeburn Exp $
+# $Id: Firewall.pm,v 1.29 2026/08/08 23:20:32 raeburn Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -370,18 +370,17 @@
                 }
             }
             close(PIPE);
-        }
-        unless ($status) {
-            if (open(PIPE,'nft list tables |')) {
-                while(<PIPE>) {
-                    chomp();
-                    if (/filter$/) {
-                        $status = 1;
-                        last;
-                    }   
-                }           
-                close(PIPE);      
-            }           
+    }
+    unless ($status) {
+        if (open(PIPE,'nft list tables |')) {
+            while(<PIPE>) {
+                chomp();
+                if (/filter$/) {
+                    $status = 1;
+                    last;
+                }
+            }
+            close(PIPE);
         }
     }
     unless ($status) {




More information about the LON-CAPA-cvs mailing list