Commit 948a842b authored by tbrehm's avatar tbrehm
Browse files

Open mysql port in firewall by default.

parent 671a41a2
...@@ -714,7 +714,7 @@ class installer_base { ...@@ -714,7 +714,7 @@ class installer_base {
$tcp_public_services = trim(str_replace(',',' ',$row["tcp_port"])); $tcp_public_services = trim(str_replace(',',' ',$row["tcp_port"]));
$udp_public_services = trim(str_replace(',',' ',$row["udp_port"])); $udp_public_services = trim(str_replace(',',' ',$row["udp_port"]));
} else { } else {
$tcp_public_services = '21 22 25 53 80 110 443 8080 10000'; $tcp_public_services = '21 22 25 53 80 110 443 3306 8080 10000';
$udp_public_services = '53'; $udp_public_services = '53';
} }
$content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content); $content = str_replace("{TCP_PUBLIC_SERVICES}", $tcp_public_services, $content);
......
...@@ -79,7 +79,7 @@ $form["tabs"]['firewall'] = array ( ...@@ -79,7 +79,7 @@ $form["tabs"]['firewall'] = array (
'regex' => '/^[\s0-9\,]{0,255}$/', 'regex' => '/^[\s0-9\,]{0,255}$/',
'errmsg'=> 'tcp_ports_error_regex'), 'errmsg'=> 'tcp_ports_error_regex'),
), ),
'default' => '20,21,22,25,53,80,110,443,8080,10000', 'default' => '20,21,22,25,53,80,110,443,3306,8080,10000',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
...@@ -91,7 +91,7 @@ $form["tabs"]['firewall'] = array ( ...@@ -91,7 +91,7 @@ $form["tabs"]['firewall'] = array (
'regex' => '/^[\s0-9\,]{0,255}$/', 'regex' => '/^[\s0-9\,]{0,255}$/',
'errmsg'=> 'tcp_ports_error_regex'), 'errmsg'=> 'tcp_ports_error_regex'),
), ),
'default' => '53', 'default' => '53,3306',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment