}
+
+
+ function createBase()
+ {
+
+ $iptables = System::which('iptables');
+ if (!$iptables) {
+ $this->jerr("iptables could not be found.");
+ }
+ $this->exec("{$iptables} -F postgres"); // flush old
+ $this->exec("{$iptables} -N postgres"); // create new..
+
+ $this->exec($iptables. ' -A postgres -m limit --limit 2/min -j LOG '.
+ '--log-prefix "IPTables-Dropped: " --log-level 4');
+ $this->exec("$iptables -A postgres -j DROP");
+
+
+
+
+
+ }
+
function exec($cmd) {
echo "$cmd\n";
echo `$cmd`;