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

raeburn raeburn at source.lon-capa.org
Wed Apr 24 17:34:44 EDT 2024


raeburn		Wed Apr 24 21:34:44 2024 EDT

  Modified files:              
    /loncom/configuration	Firewall.pm 
  Log:
  - Support Ubuntu 22 and 24 (using ufw).
  
  
Index: loncom/configuration/Firewall.pm
diff -u loncom/configuration/Firewall.pm:1.25 loncom/configuration/Firewall.pm:1.26
--- loncom/configuration/Firewall.pm:1.25	Tue Dec 21 16:42:15 2021
+++ loncom/configuration/Firewall.pm	Wed Apr 24 21:34:44 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Firewall configuration to allow internal LON-CAPA communication between servers   
 #
-# $Id: Firewall.pm,v 1.25 2021/12/21 16:42:15 raeburn Exp $
+# $Id: Firewall.pm,v 1.26 2024/04/24 21:34:44 raeburn Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -365,6 +365,18 @@
             }
             close(PIPE);
         }
+        unless ($status) {
+            if (open(PIPE,'nft list tables |')) {
+                while(<PIPE>) {
+                    chomp();
+                    if (/filter$/) {
+                        $status = 1;
+                        last;
+                    }   
+                }           
+                close(PIPE);      
+            }           
+        }
     }
     unless ($status) {
         $status = &uses_firewalld();




More information about the LON-CAPA-cvs mailing list