Iptables.php
[Pman.Admin] / Iptables.php
index 8e17d3c..9907b63 100644 (file)
@@ -158,9 +158,9 @@ class Pman_Admin_Iptables extends Pman {
         
          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..