Diff for /loncom/configuration/Firewall.pm between versions 1.2 and 1.3

version 1.2, 2009/06/11 13:01:56 version 1.3, 2009/07/03 17:59:01
Line 302  sub get_fw_chain { Line 302  sub get_fw_chain {
         if (!-e '/etc/sysconfig/iptables') {          if (!-e '/etc/sysconfig/iptables') {
             print("Unable to find iptables file containing static definitions\n");              print("Unable to find iptables file containing static definitions\n");
         }          }
           my $count = `$iptables -L -n 2>/dev/null |grep $fw_chain |wc -l`;
           chomp($count);
           if (!$count) {
               $fw_chain ='INPUT';
           }
     }      }
     return $fw_chain;      return $fw_chain;
 }  }

Removed from v.1.2  
changed lines
  Added in v.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>