summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-11-30 16:47:32 +0000
committerErmal <eri@pfsense.org>2010-11-30 16:47:32 +0000
commitb0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d (patch)
tree6c12111c5903ba7459144eab17766d3bccd43675 /usr/local
parent0ac206f9db73c40e74c05c01f64067a4cc7ecd93 (diff)
downloadpfsense-b0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d.zip
pfsense-b0cf10bff2c0be8beb6ba548ab8d0eeaa1ca3c4d.tar.gz
Ticket #911. Provide an option under system->advanced->misc to disable killing states when a gateway goes down. Possibly on 2.1+ this might be made an option specific for each gateway!
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/system_advanced_misc.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index 547ee46..b93301d 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -57,6 +57,7 @@ $pconfig['maxmss'] = $config['system']['maxmss'];
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
$pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']);
$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
+$pconfig['kill_states'] = isset($config['system']['kill_states']);
if ($_POST) {
@@ -107,6 +108,11 @@ if ($_POST) {
else
unset($config['system']['schedule_states']);
+ if($_POST['kill_states'] == "yes")
+ $config['system']['kill_states'] = true;
+ else
+ unset($config['system']['kill_states']);
+
write_config();
$retval = 0;
@@ -279,6 +285,21 @@ function maxmss_checked(obj) {
"This option allows to override this setting by not clearing states for existing connections."); ?>
</td>
</tr>
+ <tr>
+ <td colspan="2" class="list" height="12">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="2" valign="top" class="listtopic"><?=gettext("Gateway Monitoring"); ?></td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("States"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="kill_states" type="checkbox" id="kill_states" value="yes" <?php if ($pconfig['kill_states']) echo "checked"; ?> />
+ <br />
+ <?=gettext("By default the monitoring process will flush states for a gateway that goes down. ".
+ "This option allows to override this setting by not clearing states for existing connections."); ?>
+ </td>
+ </tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
OpenPOWER on IntegriCloud