summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_firewall.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-07-04 18:59:45 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-07-05 08:47:21 -0300
commit08b861a804e0eeaf9d70d9e968071beb28e6a135 (patch)
tree4f5cf383097c8725f07b3c8db31a872fed1acc27 /usr/local/www/system_advanced_firewall.php
parentf4a8e38c6ed250e9a18c4e472481541198231cdb (diff)
downloadpfsense-08b861a804e0eeaf9d70d9e968071beb28e6a135.zip
pfsense-08b861a804e0eeaf9d70d9e968071beb28e6a135.tar.gz
Add an option to check certificate for https URL aliases
Diffstat (limited to 'usr/local/www/system_advanced_firewall.php')
-rw-r--r--usr/local/www/system_advanced_firewall.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php
index f4ea44a..a30ca82 100644
--- a/usr/local/www/system_advanced_firewall.php
+++ b/usr/local/www/system_advanced_firewall.php
@@ -59,6 +59,7 @@ $pconfig['adaptiveend'] = $config['system']['adaptiveend'];
$pconfig['maximumstates'] = $config['system']['maximumstates'];
$pconfig['aliasesresolveinterval'] = $config['system']['aliasesresolveinterval'];
$old_aliasesresolveinterval = $config['system']['aliasesresolveinterval'];
+$pconfig['checkaliasesurlcert'] = $config['system']['checkaliasesurlcert'];
$pconfig['maximumtables'] = $config['system']['maximumtables'];
$pconfig['maximumtableentries'] = $config['system']['maximumtableentries'];
$pconfig['disablereplyto'] = isset($config['system']['disablereplyto']);
@@ -143,6 +144,11 @@ if ($_POST) {
else
unset($config['system']['adaptivestart']);
+ if (!empty($config['system']['checkaliasesurlcert']))
+ $config['system']['checkaliasesurlcert'] = $_POST['checkaliasesurlcert'];
+ else
+ unset($config['system']['checkaliasesurlcert']);
+
$config['system']['optimization'] = $_POST['optimization'];
$config['system']['maximumstates'] = $_POST['maximumstates'];
$config['system']['aliasesresolveinterval'] = $_POST['aliasesresolveinterval'];
@@ -463,6 +469,16 @@ function update_description(itemnum) {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Check certificate of aliases URLs");?></td>
+ <td width="78%" class="vtable">
+ <input name="checkaliasesurlcert" type="checkbox" id="checkaliasesurlcert" value="yes" <?php if ($pconfig['checkaliasesurlcert']) echo "checked=\"checked\""; ?> />
+ <strong><?=gettext("Verify HTTPS certificates when downloadling aliases URLs");?></strong>
+ <br />
+ <?=gettext("Make sure the certificate is valid for all HTTPS addresses on Aliases, if it's not valid or is revoked, do not download it.");?>
+ <br />
+ </td>
+ </tr>
+ <tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
OpenPOWER on IntegriCloud