Revision a44455c4
Added by Scott Ullrich almost 21 years ago
usr/local/www/firewall_rules_edit.php | ||
---|---|---|
123 | 123 |
else |
124 | 124 |
$pconfig['type'] = $a_filter[$id]['type']; |
125 | 125 |
|
126 |
$pconfig['max-src-states'] = $a_filter[$id]['max-src-states']; |
|
127 |
$pconfig['max-src-nodes'] = $a_filter[$id]['max-src-nodes']; |
|
128 |
|
|
126 | 129 |
if (isset($a_filter[$id]['protocol'])) |
127 | 130 |
$pconfig['proto'] = $a_filter[$id]['protocol']; |
128 | 131 |
else |
... | ... | |
320 | 323 |
$filterent['direction'] = $_POST['direction']; |
321 | 324 |
$filterent['queue'] = $_POST['queue']; |
322 | 325 |
|
326 |
/* Advanced options */ |
|
327 |
$filterent['max-src-nodes'] = $_POST['max-src-nodes']; |
|
328 |
$filterent['max-src-states'] = $_POST['max-src-states']; |
|
329 |
|
|
323 | 330 |
write_config(); |
324 | 331 |
touch($d_filterconfdirty_path); |
325 | 332 |
|
... | ... | |
583 | 590 |
<td><input name="src" type="text" class="formfldalias" id="src" size="20" value="<?php if (!is_specialnet($pconfig['src'])) echo htmlspecialchars($pconfig['src']);?>"> |
584 | 591 |
/ |
585 | 592 |
<select name="srcmask" class="formfld" id="srcmask"> |
586 |
<?php for ($i = 31; $i > 0; $i--): ?>
|
|
593 |
<?php for ($i = 32; $i > 0; $i--): ?>
|
|
587 | 594 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['srcmask']) echo "selected"; ?>><?=$i;?></option> |
588 | 595 |
<?php endfor; ?> |
589 | 596 |
</select> |
... | ... | |
669 | 676 |
<td><input name="dst" type="text" class="formfldalias" id="dst" size="20" value="<?php if (!is_specialnet($pconfig['dst'])) echo htmlspecialchars($pconfig['dst']);?>"> |
670 | 677 |
/ |
671 | 678 |
<select name="dstmask" class="formfld" id="dstmask";> |
672 |
<?php for ($i = 31; $i > 0; $i--): ?>
|
|
679 |
<?php for ($i = 32; $i > 0; $i--): ?>
|
|
673 | 680 |
<option value="<?=$i;?>" <?php if ($i == $pconfig['dstmask']) echo "selected"; ?>><?=$i;?></option> |
674 | 681 |
<?php endfor; ?> |
675 | 682 |
</select> |
... | ... | |
764 | 771 |
</td> |
765 | 772 |
</tr> |
766 | 773 |
|
774 |
<tr> |
|
775 |
<td width="22%" valign="top" class="vncell">Advanced Options</td> |
|
776 |
<td width="78%" class="vtable"> |
|
777 |
<input name="max-src-nodes" id="max-src-nodes" value="<?php echo $pconfig['max-src-nodes'] ?>"><br> Simultaneous client connection limit<p> |
|
778 |
<input name="max-src-states" id="max-src-states" value="<?php echo $pconfig['max-src-states'] ?>"><br> Maximum state entries per host<br> |
|
779 |
</td> |
|
780 |
</tr> |
|
781 |
|
|
782 |
|
|
767 | 783 |
<tr> |
768 | 784 |
<td width="22%" valign="top"> </td> |
769 | 785 |
<td width="78%"> |
Also available in: Unified diff
Add Simultaneous client connection limit (max-src-nodes) and Maximum state entries per host (max-src-states) webConfigurator