require_once 'System.php';
$iptables = System::which('iptables');
+
+ if (!$iptables) {
+ $this->jerr("iptables could not be found.");
+ }
// this should have been set up already..
// in the base firewall code.
//--comment
-
-
-
- if (!$iptables) {
- $this->jerr("iptables could not be found.");
- }
- $this->exec("{$iptables} -F postgres"); // flush old
- $this->exec("{$iptables} -N postgres"); // create new..
-
+
foreach($this->ips as $ip=>$expires) {
$old = isset($cur[$ip]) ? $cur[$ip] : false;
if ($old) {