Skip to content

Commit 87fb650

Browse files
committed
Add ispconfig port to firewall if port != 8080
1 parent 8662458 commit 87fb650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@ public function configure_firewall()
728728
$tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000';
729729
$udp_public_services = '53';
730730
}
731+
if(!stristr($tcp_public_services, $conf['apache']['vhost_port']) {
732+
$tcp_public_services .= ' '.intval($conf['apache']['vhost_port']));
733+
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']));
734+
}
735+
731736
$content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content);
732737
$content = str_replace("{UDP_PUBLIC_SERVICES}", $udp_public_services, $content);
733738

0 commit comments

Comments
 (0)