Iptables.php
[Pman.Admin] / Iptables.php
index b76f11d..19ed831 100644 (file)
@@ -223,12 +223,11 @@ class Pman_Admin_Iptables extends Pman {
     
     function updateTables()
     {
-       
         require_once 'System.php';
         
-        $iptables = System::which('iptables');
+        $iptables = System::which('iptables', '/sbin/iptables');
         
-         if (!$iptables) {
+         if (!$iptables || !file_exists($iptables)) {
             $this->jerr("iptables could not be found.");
         }
         // this should have been set up already..