Commit d0b0ca28 authored by Ian Matyssik's avatar Ian Matyssik

Add modulate state as an option for state tracking

parent 74108220
...@@ -247,7 +247,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -247,7 +247,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if ($pconfig['protocol'] == "icmp" && !empty($pconfig['icmptype']) && $pconfig['ipprotocol'] == "inet46") { if ($pconfig['protocol'] == "icmp" && !empty($pconfig['icmptype']) && $pconfig['ipprotocol'] == "inet46") {
$input_errors[] = gettext("You can not assign a ICMP type to a rule that applies to IPv4 and IPv6"); $input_errors[] = gettext("You can not assign a ICMP type to a rule that applies to IPv4 and IPv6");
} }
if ($pconfig['statetype'] == "synproxy state" ) { if ($pconfig['statetype'] == "synproxy state" || $pconfig['statetype'] == "modulate state") {
if ($pconfig['protocol'] != "tcp") { if ($pconfig['protocol'] != "tcp") {
$input_errors[] = sprintf(gettext("%s is only valid with protocol tcp."),$pconfig['statetype']); $input_errors[] = sprintf(gettext("%s is only valid with protocol tcp."),$pconfig['statetype']);
} }
...@@ -1467,6 +1467,9 @@ include("head.inc"); ...@@ -1467,6 +1467,9 @@ include("head.inc");
<option value="sloppy state" <?=$pconfig['statetype'] == "sloppy state" ? "selected=\"selected\"" :""; ?>> <option value="sloppy state" <?=$pconfig['statetype'] == "sloppy state" ? "selected=\"selected\"" :""; ?>>
<?=gettext("sloppy state");?> <?=gettext("sloppy state");?>
</option> </option>
<option value="modulate state"<?=$pconfig['statetype'] == "modulate state" ? "selected=\"selected\"" :""; ?>>
<?=gettext("modulate state");?>
</option>
<option value="synproxy state"<?=$pconfig['statetype'] == "synproxy state" ? "selected=\"selected\"" :""; ?>> <option value="synproxy state"<?=$pconfig['statetype'] == "synproxy state" ? "selected=\"selected\"" :""; ?>>
<?=gettext("synproxy state");?> <?=gettext("synproxy state");?>
</option> </option>
......
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