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

raeburn raeburn@source.lon-capa.org
Fri, 17 Jul 2009 00:15:49 -0000


raeburn		Fri Jul 17 00:15:49 2009 EDT

  Modified files:              
    /loncom/configuration	Firewall.pm 
  Log:
  On Debian saved rulesets may be found in /var/lib/iptables.
  
  
Index: loncom/configuration/Firewall.pm
diff -u loncom/configuration/Firewall.pm:1.4 loncom/configuration/Firewall.pm:1.5
--- loncom/configuration/Firewall.pm:1.4	Mon Jul  6 00:07:19 2009
+++ loncom/configuration/Firewall.pm	Fri Jul 17 00:15:49 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Firewall configuration to allow internal LON-CAPA communication between servers   
 #
-# $Id: Firewall.pm,v 1.4 2009/07/06 00:07:19 raeburn Exp $
+# $Id: Firewall.pm,v 1.5 2009/07/17 00:15:49 raeburn Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -301,7 +301,9 @@
         $fw_chain = 'input_ext';
     } else {
         if (!-e '/etc/sysconfig/iptables') {
-            print("Unable to find iptables file containing static definitions\n");
+            if (!-e '/var/lib/iptables') {
+                print("Unable to find iptables file containing static definitions\n");
+            }
         }
         if ($iptables eq '') {
             $iptables = &get_pathto_iptables();