From 87fb65097c079ef546b8df04f99703fdac963f00 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sat, 20 Dec 2008 10:46:00 -0500 Subject: [PATCH] Add ispconfig port to firewall if port != 8080 --- install/lib/installer_base.lib.php | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php index d75df9c..639e5b9 100644 --- a/install/lib/installer_base.lib.php +++ b/install/lib/installer_base.lib.php @@ -728,6 +728,11 @@ $tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000'; $udp_public_services = '53'; } + if(!stristr($tcp_public_services, $conf['apache']['vhost_port']) { + $tcp_public_services .= ' '.intval($conf['apache']['vhost_port'])); + if($row["tcp_port"]) != '') $this->db->query("UPDATE firewall SET tcp_port = tcp_port + ',".intval($conf['apache']['vhost_port'])."' WHERE server_id = ".intval($conf['server_id'])); + } + $content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content); $content = str_replace("{UDP_PUBLIC_SERVICES}", $udp_public_services, $content); -- Gitblit v1.9.1