Iptables.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 08:42:21 +0000 (16:42 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Mar 2013 08:42:21 +0000 (16:42 +0800)
Iptables.php

index 2fa337e..923ba6d 100644 (file)
@@ -249,10 +249,9 @@ class Pman_Admin_Iptables extends Pman {
         
         
         $rows = $this->readChain('postgres');
-       
-        
-        // -A INPUT -p udp -m udp --dport 5432 -j postgres
-        // -A INPUT -p tcp -m tcp --dport 5432 -j postgres
+        if ($rows === false) {
+            $this->createBase();
+        }
         
         
         // /sbin/iptables -L postgres -v -n --line-numbers