Commit 6d2e211e authored by Franco Fichtner's avatar Franco Fichtner

firewall: removed NAT+proxy, this option is unused

(cherry picked from commit e24d1970)
parent 072bc535
...@@ -65,7 +65,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -65,7 +65,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
} }
$pconfig['enablebinatreflection'] = !empty($config['system']['enablebinatreflection']); $pconfig['enablebinatreflection'] = !empty($config['system']['enablebinatreflection']);
$pconfig['enablenatreflectionhelper'] = isset($config['system']['enablenatreflectionhelper']) ? $config['system']['enablenatreflectionhelper'] : null; $pconfig['enablenatreflectionhelper'] = isset($config['system']['enablenatreflectionhelper']) ? $config['system']['enablenatreflectionhelper'] : null;
$pconfig['reflectiontimeout'] = !empty($config['system']['reflectiontimeout']) ? $config['system']['reflectiontimeout'] : null;
$pconfig['bypassstaticroutes'] = isset($config['filter']['bypassstaticroutes']); $pconfig['bypassstaticroutes'] = isset($config['filter']['bypassstaticroutes']);
$pconfig['disablevpnrules'] = isset($config['system']['disablevpnrules']); $pconfig['disablevpnrules'] = isset($config['system']['disablevpnrules']);
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
...@@ -92,9 +91,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -92,9 +91,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if (!empty($pconfig['maximumtableentries']) && !is_numericint($pconfig['maximumtableentries'])) { if (!empty($pconfig['maximumtableentries']) && !is_numericint($pconfig['maximumtableentries'])) {
$input_errors[] = gettext("The Firewall Maximum Table Entries value must be an integer."); $input_errors[] = gettext("The Firewall Maximum Table Entries value must be an integer.");
} }
if (!empty($pconfig['reflectiontimeout']) && !is_numericint($pconfig['reflectiontimeout'])) {
$input_errors[] = gettext("The Reflection timeout must be an integer.");
}
if (count($input_errors) == 0) { if (count($input_errors) == 0) {
if (!empty($pconfig['lb_use_sticky'])) { if (!empty($pconfig['lb_use_sticky'])) {
...@@ -174,7 +170,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -174,7 +170,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$config['system']['maximumstates'] = $pconfig['maximumstates']; $config['system']['maximumstates'] = $pconfig['maximumstates'];
$config['system']['aliasesresolveinterval'] = $pconfig['aliasesresolveinterval']; $config['system']['aliasesresolveinterval'] = $pconfig['aliasesresolveinterval'];
$config['system']['maximumtableentries'] = $pconfig['maximumtableentries']; $config['system']['maximumtableentries'] = $pconfig['maximumtableentries'];
$config['system']['reflectiontimeout'] = $pconfig['reflectiontimeout'];
if (!empty($pconfig['bypassstaticroutes'])) { if (!empty($pconfig['bypassstaticroutes'])) {
$config['filter']['bypassstaticroutes'] = $pconfig['bypassstaticroutes']; $config['filter']['bypassstaticroutes'] = $pconfig['bypassstaticroutes'];
...@@ -285,17 +280,6 @@ include("head.inc"); ...@@ -285,17 +280,6 @@ include("head.inc");
</div> </div>
</td> </td>
</tr> </tr>
<tr>
<td><a id="help_for_reflectiontimeout" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Reflection Timeout");?></td>
<td>
<input name="reflectiontimeout" type="text" value="<?=$pconfig['reflectiontimeout']; ?>" />
<div class="hidden" for="help_for_reflectiontimeout">
<strong><?=gettext("Enter value for Reflection timeout in seconds.");?></strong>
<br /><br />
<?=gettext("Note: Only applies to Reflection on port forwards in NAT + proxy mode.");?>
</div>
</td>
</tr>
<tr> <tr>
<td><a id="help_for_enablebinatreflection" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Reflection for 1:1");?></td> <td><a id="help_for_enablebinatreflection" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Reflection for 1:1");?></td>
<td> <td>
......
Markdown is supported
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