mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
system: apply whitespace changes
Huge commit, but the previous commits have proven to be harmless, so let's do it!
This commit is contained in:
parent
120f379ca7
commit
25940e50d2
@ -95,7 +95,7 @@ foreach($interfaces as $interface) {
|
||||
if ($_POST) {
|
||||
|
||||
$changecount++;
|
||||
|
||||
|
||||
unset($input_errors);
|
||||
$pconfig = $_POST;
|
||||
|
||||
@ -180,7 +180,7 @@ if ($_POST) {
|
||||
|
||||
/* pfSense themes */
|
||||
if (! $g['disablethemeselection']) {
|
||||
update_if_changed("System Theme", $config['theme'], $_POST['theme']);
|
||||
update_if_changed("System Theme", $config['theme'], $_POST['theme']);
|
||||
}
|
||||
|
||||
/* XXX - billm: these still need updating after figuring out how to check if they actually changed */
|
||||
@ -269,7 +269,7 @@ if ($_POST) {
|
||||
|
||||
// Reload the filter - plugins might need to be run.
|
||||
$retval |= filter_configure();
|
||||
|
||||
|
||||
$savemsg = get_std_save_message($retval);
|
||||
}
|
||||
|
||||
@ -283,260 +283,260 @@ include("head.inc");
|
||||
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<form action="system.php" method="post">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("System"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname"); ?></td>
|
||||
<td width="78%" class="vtable"> <input name="hostname" type="text" class="formfld unknown" id="hostname" size="40" value="<?=htmlspecialchars($pconfig['hostname']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Name of the firewall host, without domain part"); ?>
|
||||
<br />
|
||||
<?=gettext("e.g."); ?> <em>firewall</em>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Domain"); ?></td>
|
||||
<td width="78%" class="vtable"> <input name="domain" type="text" class="formfld unknown" id="domain" size="40" value="<?=htmlspecialchars($pconfig['domain']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Do not use 'local' as a domain name. It will cause local hosts running mDNS (avahi, bonjour, etc.) to be unable to resolve local hosts not running mDNS."); ?>
|
||||
<br />
|
||||
<?=gettext("e.g."); ?> <em><?=gettext("mycorp.com, home, office, private, etc."); ?></em>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("DNS servers"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" summary="dns servers and gateways" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?=gettext("DNS Server"); ?></th>
|
||||
<?php if ($multiwan): ?>
|
||||
<th><?=gettext("Use gateway"); ?></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($dnscounter=1; $dnscounter<5; $dnscounter++):
|
||||
$fldname="dns{$dnscounter}gw";
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input name="dns<?php echo $dnscounter;?>" type="text" class="formfld unknown" id="dns<?php echo $dnscounter;?>" size="28" value="<?php echo $pconfig['dns'.$dnscounter];?>" />
|
||||
</td>
|
||||
<td>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<form action="system.php" method="post">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("System"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname"); ?></td>
|
||||
<td width="78%" class="vtable"> <input name="hostname" type="text" class="formfld unknown" id="hostname" size="40" value="<?=htmlspecialchars($pconfig['hostname']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Name of the firewall host, without domain part"); ?>
|
||||
<br />
|
||||
<?=gettext("e.g."); ?> <em>firewall</em>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Domain"); ?></td>
|
||||
<td width="78%" class="vtable"> <input name="domain" type="text" class="formfld unknown" id="domain" size="40" value="<?=htmlspecialchars($pconfig['domain']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Do not use 'local' as a domain name. It will cause local hosts running mDNS (avahi, bonjour, etc.) to be unable to resolve local hosts not running mDNS."); ?>
|
||||
<br />
|
||||
<?=gettext("e.g."); ?> <em><?=gettext("mycorp.com, home, office, private, etc."); ?></em>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("DNS servers"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" summary="dns servers and gateways" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?=gettext("DNS Server"); ?></th>
|
||||
<?php if ($multiwan): ?>
|
||||
<th><?=gettext("Use gateway"); ?></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($dnscounter=1; $dnscounter<5; $dnscounter++):
|
||||
$fldname="dns{$dnscounter}gw";
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<input name="dns<?php echo $dnscounter;?>" type="text" class="formfld unknown" id="dns<?php echo $dnscounter;?>" size="28" value="<?php echo $pconfig['dns'.$dnscounter];?>" />
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($multiwan): ?>
|
||||
<select name='<?=$fldname;?>'>
|
||||
<?php
|
||||
$gwname = "none";
|
||||
$dnsgw = "dns{$dnscounter}gw";
|
||||
if($pconfig[$dnsgw] == $gwname) {
|
||||
$selected = "selected=\"selected\"";
|
||||
} else {
|
||||
$selected = "";
|
||||
}
|
||||
echo "<option value='$gwname' $selected>$gwname</option>\n";
|
||||
foreach($arr_gateways as $gwname => $gwitem) {
|
||||
//echo $pconfig[$dnsgw];
|
||||
if((is_ipaddrv4(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv6($gwitem['gateway'])))) {
|
||||
continue;
|
||||
}
|
||||
if((is_ipaddrv6(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv4($gwitem['gateway'])))) {
|
||||
continue;
|
||||
}
|
||||
if($pconfig[$dnsgw] == $gwname) {
|
||||
$selected = "selected=\"selected\"";
|
||||
} else {
|
||||
$selected = "";
|
||||
}
|
||||
echo "<option value='$gwname' $selected>$gwname - {$gwitem['friendlyiface']} - {$gwitem['gateway']}</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<select name='<?=$fldname;?>'>
|
||||
<?php
|
||||
$gwname = "none";
|
||||
$dnsgw = "dns{$dnscounter}gw";
|
||||
if($pconfig[$dnsgw] == $gwname) {
|
||||
$selected = "selected=\"selected\"";
|
||||
} else {
|
||||
$selected = "";
|
||||
}
|
||||
echo "<option value='$gwname' $selected>$gwname</option>\n";
|
||||
foreach($arr_gateways as $gwname => $gwitem) {
|
||||
//echo $pconfig[$dnsgw];
|
||||
if((is_ipaddrv4(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv6($gwitem['gateway'])))) {
|
||||
continue;
|
||||
}
|
||||
if((is_ipaddrv6(lookup_gateway_ip_by_name($pconfig[$dnsgw])) && (is_ipaddrv4($gwitem['gateway'])))) {
|
||||
continue;
|
||||
}
|
||||
if($pconfig[$dnsgw] == $gwname) {
|
||||
$selected = "selected=\"selected\"";
|
||||
} else {
|
||||
$selected = "";
|
||||
}
|
||||
echo "<option value='$gwname' $selected>$gwname - {$gwitem['friendlyiface']} - {$gwitem['gateway']}</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endfor; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span class="vexpl">
|
||||
<?=gettext("Enter IP addresses to be used by the system for DNS resolution. " .
|
||||
"These are also used for the DHCP service, DNS forwarder and for PPTP VPN clients."); ?>
|
||||
<br />
|
||||
<?php if($multiwan): ?>
|
||||
<br />
|
||||
<?=gettext("In addition, optionally select the gateway for each DNS server. " .
|
||||
"When using multiple WAN connections there should be at least one unique DNS server per gateway."); ?>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<input name="dnsallowoverride" type="checkbox" id="dnsallowoverride" value="yes" <?php if ($pconfig['dnsallowoverride']) echo "checked=\"checked\""; ?> />
|
||||
<strong>
|
||||
<?=gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
|
||||
</strong>
|
||||
<br />
|
||||
<?php printf(gettext("If this option is set, %s will " .
|
||||
"use DNS servers assigned by a DHCP/PPP server on WAN " .
|
||||
"for its own purposes (including the DNS forwarder). " .
|
||||
"However, they will not be assigned to DHCP and PPTP " .
|
||||
"VPN clients."), $g['product_name']); ?>
|
||||
<br />
|
||||
<br />
|
||||
<input name="dnslocalhost" type="checkbox" id="dnslocalhost" value="yes" <?php if ($pconfig['dnslocalhost']) echo "checked=\"checked\""; ?> />
|
||||
<strong>
|
||||
<?=gettext("Do not use the DNS Forwarder as a DNS server for the firewall"); ?>
|
||||
</strong>
|
||||
<br />
|
||||
<?=gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. ".
|
||||
"Checking this box omits localhost from the list of DNS servers."); ?>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Time zone"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="timezone" id="timezone">
|
||||
<?php foreach ($timezonelist as $value): ?>
|
||||
<?php if(strstr($value, "GMT")) continue; ?>
|
||||
<option value="<?=htmlspecialchars($value);?>" <?php if ($value == $pconfig['timezone']) echo "selected=\"selected\""; ?>>
|
||||
<?=htmlspecialchars($value);?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Select the location closest to you"); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endfor; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<span class="vexpl">
|
||||
<?=gettext("Enter IP addresses to be used by the system for DNS resolution. " .
|
||||
"These are also used for the DHCP service, DNS forwarder and for PPTP VPN clients."); ?>
|
||||
<br />
|
||||
<?php if($multiwan): ?>
|
||||
<br />
|
||||
<?=gettext("In addition, optionally select the gateway for each DNS server. " .
|
||||
"When using multiple WAN connections there should be at least one unique DNS server per gateway."); ?>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<input name="dnsallowoverride" type="checkbox" id="dnsallowoverride" value="yes" <?php if ($pconfig['dnsallowoverride']) echo "checked=\"checked\""; ?> />
|
||||
<strong>
|
||||
<?=gettext("Allow DNS server list to be overridden by DHCP/PPP on WAN"); ?>
|
||||
</strong>
|
||||
<br />
|
||||
<?php printf(gettext("If this option is set, %s will " .
|
||||
"use DNS servers assigned by a DHCP/PPP server on WAN " .
|
||||
"for its own purposes (including the DNS forwarder). " .
|
||||
"However, they will not be assigned to DHCP and PPTP " .
|
||||
"VPN clients."), $g['product_name']); ?>
|
||||
<br />
|
||||
<br />
|
||||
<input name="dnslocalhost" type="checkbox" id="dnslocalhost" value="yes" <?php if ($pconfig['dnslocalhost']) echo "checked=\"checked\""; ?> />
|
||||
<strong>
|
||||
<?=gettext("Do not use the DNS Forwarder as a DNS server for the firewall"); ?>
|
||||
</strong>
|
||||
<br />
|
||||
<?=gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. ".
|
||||
"Checking this box omits localhost from the list of DNS servers."); ?>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Time zone"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="timezone" id="timezone">
|
||||
<?php foreach ($timezonelist as $value): ?>
|
||||
<?php if(strstr($value, "GMT")) continue; ?>
|
||||
<option value="<?=htmlspecialchars($value);?>" <?php if ($value == $pconfig['timezone']) echo "selected=\"selected\""; ?>>
|
||||
<?=htmlspecialchars($value);?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Select the location closest to you"); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Time update interval</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="timeupdateinterval" type="text" class="formfld unknown" id="timeupdateinterval" size="4" value="<?=htmlspecialchars($pconfig['timeupdateinterval']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
Minutes between network time sync. 300 recommended,
|
||||
or 0 to disable
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Time update interval</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="timeupdateinterval" type="text" class="formfld unknown" id="timeupdateinterval" size="4" value="<?=htmlspecialchars($pconfig['timeupdateinterval']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
Minutes between network time sync. 300 recommended,
|
||||
or 0 to disable
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("NTP time server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="timeservers" type="text" class="formfld unknown" id="timeservers" size="40" value="<?=htmlspecialchars($pconfig['timeservers']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Use a space to separate multiple hosts (only one " .
|
||||
"required). Remember to set up at least one DNS server " .
|
||||
"if you enter a host name here!"); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?php echo gettext("Language");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="language">
|
||||
<?php
|
||||
foreach(get_locale_list() as $lcode => $ldesc) {
|
||||
$selected = ' selected="selected"';
|
||||
if($lcode != $pconfig['language'])
|
||||
$selected = '';
|
||||
echo "<option value=\"{$lcode}\"{$selected}>{$ldesc}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<strong>
|
||||
<?=gettext("Choose a language for the webConfigurator"); ?>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("NTP time server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="timeservers" type="text" class="formfld unknown" id="timeservers" size="40" value="<?=htmlspecialchars($pconfig['timeservers']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Use a space to separate multiple hosts (only one " .
|
||||
"required). Remember to set up at least one DNS server " .
|
||||
"if you enter a host name here!"); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?php echo gettext("Language");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="language">
|
||||
<?php
|
||||
foreach(get_locale_list() as $lcode => $ldesc) {
|
||||
$selected = ' selected="selected"';
|
||||
if($lcode != $pconfig['language'])
|
||||
$selected = '';
|
||||
echo "<option value=\"{$lcode}\"{$selected}>{$ldesc}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<strong>
|
||||
<?=gettext("Choose a language for the webConfigurator"); ?>
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if (! $g['disablethemeselection']): ?>
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<?php if (! $g['disablethemeselection']): ?>
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Theme"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="theme">
|
||||
<?php
|
||||
$files = return_dir_as_array("/usr/local/www/themes/");
|
||||
foreach($files as $f):
|
||||
if ((substr($f, 0, 1) == "_") && !isset($config['system']['developer']))
|
||||
continue;
|
||||
if ($f == "CVS")
|
||||
continue;
|
||||
$curtheme = "pfsense";
|
||||
if ($config['theme'])
|
||||
$curtheme = $config['theme'];
|
||||
$selected = "";
|
||||
if($f == $curtheme)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option <?=$selected;?>><?=$f;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<strong>
|
||||
<?=gettext("This will change the look and feel of"); ?>
|
||||
<?=$g['product_name'];?>.
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Theme"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="theme">
|
||||
<?php
|
||||
$files = return_dir_as_array("/usr/local/www/themes/");
|
||||
foreach($files as $f):
|
||||
if ((substr($f, 0, 1) == "_") && !isset($config['system']['developer']))
|
||||
continue;
|
||||
if ($f == "CVS")
|
||||
continue;
|
||||
$curtheme = "pfsense";
|
||||
if ($config['theme'])
|
||||
$curtheme = $config['theme'];
|
||||
$selected = "";
|
||||
if($f == $curtheme)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option <?=$selected;?>><?=$f;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<strong>
|
||||
<?=gettext("This will change the look and feel of"); ?>
|
||||
<?=$g['product_name'];?>.
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@ -285,16 +285,16 @@ include("head.inc");
|
||||
?>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<?php include("fbegin.inc"); ?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function prot_change() {
|
||||
|
||||
if (document.iform.https_proto.checked)
|
||||
document.getElementById("ssl_opts").style.display="";
|
||||
else
|
||||
document.getElementById("ssl_opts").style.display="none";
|
||||
|
||||
if (document.iform.https_proto.checked)
|
||||
document.getElementById("ssl_opts").style.display="";
|
||||
else
|
||||
document.getElementById("ssl_opts").style.display="none";
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
@ -302,339 +302,339 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_admin.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("webConfigurator"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Protocol"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php
|
||||
if ($pconfig['webguiproto'] == "http")
|
||||
$http_chk = "checked=\"checked\"";
|
||||
if ($pconfig['webguiproto'] == "https")
|
||||
$https_chk = "checked=\"checked\"";
|
||||
if (!$certs_available)
|
||||
$https_disabled = "disabled=\"disabled\"";
|
||||
?>
|
||||
<input name="webguiproto" id="http_proto" type="radio" value="http" <?=$http_chk;?> onclick="prot_change()" />
|
||||
<?=gettext("HTTP"); ?>
|
||||
|
||||
<input name="webguiproto" id="https_proto" type="radio" value="https" <?=$https_chk;?> <?=$https_disabled;?> onclick="prot_change()" />
|
||||
<?=gettext("HTTPS"); ?>
|
||||
<?php if (!$certs_available): ?>
|
||||
<br />
|
||||
<?=gettext("No Certificates have been defined. You must"); ?>
|
||||
<a href="system_certmanager.php"><?=gettext("Create or Import"); ?></a>
|
||||
<?=gettext("a Certificate before SSL can be enabled."); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="ssl_opts">
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("SSL Certificate"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="ssl-certref" id="ssl-certref" class="formselect">
|
||||
<?php
|
||||
foreach($a_cert as $cert):
|
||||
$selected = "";
|
||||
if ($pconfig['ssl-certref'] == $cert['refid'])
|
||||
$selected = "selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option>
|
||||
<?php
|
||||
endforeach;
|
||||
if (!count($a_cert))
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("TCP port"); ?></td>
|
||||
<td class="vtable">
|
||||
<input name="webguiport" type="text" class="formfld unknown" id="webguiport" size="5" value="<?=htmlspecialchars($config['system']['webgui']['port']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Enter a custom port number for the webConfigurator " .
|
||||
"above if you want to override the default (80 for HTTP, 443 " .
|
||||
"for HTTPS). Changes will take effect immediately after save."); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("Max Processes"); ?></td>
|
||||
<td class="vtable">
|
||||
<input name="max_procs" type="text" class="formfld unknown" id="max_procs" size="5" value="<?=htmlspecialchars($pconfig['max_procs']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Enter the number of webConfigurator processes you " .
|
||||
"want to run. This defaults to 2. Increasing this will allow more " .
|
||||
"users/browsers to access the GUI concurrently."); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI redirect"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablehttpredirect" type="checkbox" id="disablehttpredirect" value="yes" <?php if ($pconfig['disablehttpredirect']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable webConfigurator redirect rule"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is unchecked, access to the webConfigurator " .
|
||||
"is always permitted even on port 80, regardless of the listening port configured. " .
|
||||
"Check this box to disable this automatically added redirect rule. ");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI Login Autocomplete"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="loginautocomplete" type="checkbox" id="loginautocomplete" value="yes" <?php if ($pconfig['loginautocomplete']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable webConfigurator login autocomplete"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is checked, login credentials for the webConfigurator " .
|
||||
"may be saved by the browser. While convenient, some security standards require this to be disabled. " .
|
||||
"Check this box to enable autocomplete on the login form so that browsers will prompt to save credentials (NOTE: Some browsers do not respect this option). ");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI login messages"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="quietlogin" type="checkbox" id="quietlogin" value="yes" <?php if ($pconfig['quietlogin']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable logging of webConfigurator successful logins"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is checked, successful logins to the webConfigurator " .
|
||||
"will not be logged.");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Anti-lockout"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php
|
||||
if($config['interfaces']['lan'])
|
||||
$lockout_interface = "LAN";
|
||||
else
|
||||
$lockout_interface = "WAN";
|
||||
?>
|
||||
<input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong>
|
||||
<br />
|
||||
<?php printf(gettext("When this is unchecked, access to the webConfigurator " .
|
||||
"on the %s interface is always permitted, regardless of the user-defined firewall " .
|
||||
"rule set. Check this box to disable this automatically added rule, so access " .
|
||||
"to the webConfigurator is controlled by the user-defined firewall rules " .
|
||||
"(ensure you have a firewall rule in place that allows you in, or you will " .
|
||||
"lock yourself out!)"), $lockout_interface); ?>
|
||||
<em> <?=gettext("Hint: the "Set interface(s) IP address" option in the console menu resets this setting as well."); ?> </em>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("DNS Rebind Check"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="nodnsrebindcheck" type="checkbox" id="nodnsrebindcheck" value="yes" <?php if ($pconfig['nodnsrebindcheck']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable DNS Rebinding Checks"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is unchecked, your system " .
|
||||
"is protected against <a href=\"http://en.wikipedia.org/wiki/DNS_rebinding\">DNS Rebinding attacks</a>. " .
|
||||
"This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " .
|
||||
"webConfigurator access or name resolution in your environment. "); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Alternate Hostnames"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="althostnames" type="text" class="formfld unknown" id="althostnames" size="75" value="<?=htmlspecialchars($pconfig['althostnames']);?>"/>
|
||||
<br />
|
||||
<strong><?=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("Here you can specify alternate hostnames by which the router may be queried, to " .
|
||||
"bypass the DNS Rebinding Attack checks. Separate hostnames with spaces."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Browser HTTP_REFERER enforcement"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="nohttpreferercheck" type="checkbox" id="nohttpreferercheck" value="yes" <?php if ($pconfig['nohttpreferercheck']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable HTTP_REFERER enforcement check"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is unchecked, access to the webConfigurator " .
|
||||
"is protected against HTTP_REFERER redirection attempts. " .
|
||||
"Check this box to disable this protection if you find that it interferes with " .
|
||||
"webConfigurator access in certain corner cases such as using external scripts to interact with this system. More information on HTTP_REFERER is available from <a target='_blank' href='http://en.wikipedia.org/wiki/HTTP_referrer'>Wikipedia</a>."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("BEAST Attack Protection"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="beast_protection" type="checkbox" id="beast_protection" value="yes" <?php if ($pconfig['beast_protection']) echo "checked=\"checked\""; ?> <?= $disable_beast_option ?>/>
|
||||
<strong><?=gettext("Mitigate the BEAST SSL Attack"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is checked, the webConfigurator can mitigate BEAST SSL attacks. ") ?>
|
||||
<br />
|
||||
<?php if ($disable_beast_option) {
|
||||
echo "<br />" . sprintf(gettext("This option has been automatically disabled because a conflicting cryptographic accelerator card has been detected (%s)."), $hwcrypto) . "<br /><br />";
|
||||
} ?>
|
||||
<?php echo gettext("This option is off by default because Hifn accelerators do NOT work with this option, and the GUI will not function. " .
|
||||
"It is possible that other accelerators have a similar problem that is not yet known/documented. " .
|
||||
"More information on BEAST is available from <a target='_blank' href='https://en.wikipedia.org/wiki/Transport_Layer_Security#BEAST_attack'>Wikipedia</a>."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Secure Shell"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Secure Shell Server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enablesshd" type="checkbox" id="enablesshd" value="yes" <?php if (isset($pconfig['enablesshd'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable Secure Shell"); ?></strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Root Login"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sshdpermitrootlogin" type="checkbox" id="sshdpermitrootlogin" value="yes" <?php if ($pconfig['sshdpermitrootlogin']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable root user login"); ?></strong>
|
||||
<br />
|
||||
<?=gettext("Root login is generally discouraged. It is advised "); ?>
|
||||
<?=gettext("to log in via another user and switch to root afterwards."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Authentication Method"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sshdkeyonly" type="checkbox" id="sshdkeyonly" value="yes" <?php if ($pconfig['sshdkeyonly']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable password login for Secure Shell (RSA/DSA key only)"); ?></strong>
|
||||
<br />
|
||||
<?=gettext("When enabled, authorized keys need to be configured for each"); ?>
|
||||
<a href="system_usermanager.php"><?=gettext("user"); ?></a>
|
||||
<?=gettext("that has been granted secure shell access."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("SSH port"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sshport" type="text" id="sshport" value="<?php echo $pconfig['sshport']; ?>" />
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default of 22."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communications"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php if (!$g['enableserial_force'] && ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt"))): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enables the first serial port with 115200/8/N/1 by default, or another speed selectable below."); ?></strong>
|
||||
<span class="vexpl"><?=gettext("Note: This will redirect the console output and messages to the serial port. You can still access the console menu from the internal video card/keyboard. A <b>null modem</b> serial cable or adapter is required to use the serial console."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Serial Speed")?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="serialspeed" id="serialspeed" class="formselect">
|
||||
<option value="115200" <?php if ($pconfig['serialspeed'] == "115200") echo "selected=\"selected\"";?>>115200</option>
|
||||
<option value="57600" <?php if ($pconfig['serialspeed'] == "57600") echo "selected=\"selected\"";?>>57600</option>
|
||||
<option value="38400" <?php if ($pconfig['serialspeed'] == "38400") echo "selected=\"selected\"";?>>38400</option>
|
||||
<option value="19200" <?php if ($pconfig['serialspeed'] == "19200") echo "selected=\"selected\"";?>>19200</option>
|
||||
<option value="14400" <?php if ($pconfig['serialspeed'] == "14400") echo "selected=\"selected\"";?>>14400</option>
|
||||
<option value="9600" <?php if ($pconfig['serialspeed'] == "9600") echo "selected=\"selected\"";?>>9600</option>
|
||||
</select> bps
|
||||
<br /><?=gettext("Allows selection of different speeds for the serial console port."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!$g['primaryconsole_force'] && ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt"))): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Primary Console")?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="primaryconsole" id="primaryconsole" class="formselect">
|
||||
<option value="serial" <?php if ($pconfig['primaryconsole'] == "serial") echo "selected=\"selected\"";?>>Serial Console</option>
|
||||
<option value="video" <?php if ($pconfig['primaryconsole'] == "video") echo "selected=\"selected\"";?>>VGA Console</option>
|
||||
</select>
|
||||
<br /><?=gettext("Select the preferred console if multiple consoles are present. The preferred console will show pfSense boot script output. All consoles display OS boot messages, console messages, and the console menu."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped __nomb">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Console Options"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Console menu"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Password protect the console menu"); ?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Changes to this option will take effect after a reboot."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_admin.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("webConfigurator"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Protocol"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php
|
||||
if ($pconfig['webguiproto'] == "http")
|
||||
$http_chk = "checked=\"checked\"";
|
||||
if ($pconfig['webguiproto'] == "https")
|
||||
$https_chk = "checked=\"checked\"";
|
||||
if (!$certs_available)
|
||||
$https_disabled = "disabled=\"disabled\"";
|
||||
?>
|
||||
<input name="webguiproto" id="http_proto" type="radio" value="http" <?=$http_chk;?> onclick="prot_change()" />
|
||||
<?=gettext("HTTP"); ?>
|
||||
|
||||
<input name="webguiproto" id="https_proto" type="radio" value="https" <?=$https_chk;?> <?=$https_disabled;?> onclick="prot_change()" />
|
||||
<?=gettext("HTTPS"); ?>
|
||||
<?php if (!$certs_available): ?>
|
||||
<br />
|
||||
<?=gettext("No Certificates have been defined. You must"); ?>
|
||||
<a href="system_certmanager.php"><?=gettext("Create or Import"); ?></a>
|
||||
<?=gettext("a Certificate before SSL can be enabled."); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="ssl_opts">
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("SSL Certificate"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="ssl-certref" id="ssl-certref" class="formselect">
|
||||
<?php
|
||||
foreach($a_cert as $cert):
|
||||
$selected = "";
|
||||
if ($pconfig['ssl-certref'] == $cert['refid'])
|
||||
$selected = "selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option>
|
||||
<?php
|
||||
endforeach;
|
||||
if (!count($a_cert))
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("TCP port"); ?></td>
|
||||
<td class="vtable">
|
||||
<input name="webguiport" type="text" class="formfld unknown" id="webguiport" size="5" value="<?=htmlspecialchars($config['system']['webgui']['port']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Enter a custom port number for the webConfigurator " .
|
||||
"above if you want to override the default (80 for HTTP, 443 " .
|
||||
"for HTTPS). Changes will take effect immediately after save."); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("Max Processes"); ?></td>
|
||||
<td class="vtable">
|
||||
<input name="max_procs" type="text" class="formfld unknown" id="max_procs" size="5" value="<?=htmlspecialchars($pconfig['max_procs']);?>" />
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Enter the number of webConfigurator processes you " .
|
||||
"want to run. This defaults to 2. Increasing this will allow more " .
|
||||
"users/browsers to access the GUI concurrently."); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI redirect"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablehttpredirect" type="checkbox" id="disablehttpredirect" value="yes" <?php if ($pconfig['disablehttpredirect']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable webConfigurator redirect rule"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is unchecked, access to the webConfigurator " .
|
||||
"is always permitted even on port 80, regardless of the listening port configured. " .
|
||||
"Check this box to disable this automatically added redirect rule. ");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI Login Autocomplete"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="loginautocomplete" type="checkbox" id="loginautocomplete" value="yes" <?php if ($pconfig['loginautocomplete']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable webConfigurator login autocomplete"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is checked, login credentials for the webConfigurator " .
|
||||
"may be saved by the browser. While convenient, some security standards require this to be disabled. " .
|
||||
"Check this box to enable autocomplete on the login form so that browsers will prompt to save credentials (NOTE: Some browsers do not respect this option). ");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("WebGUI login messages"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="quietlogin" type="checkbox" id="quietlogin" value="yes" <?php if ($pconfig['quietlogin']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable logging of webConfigurator successful logins"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is checked, successful logins to the webConfigurator " .
|
||||
"will not be logged.");
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Anti-lockout"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php
|
||||
if($config['interfaces']['lan'])
|
||||
$lockout_interface = "LAN";
|
||||
else
|
||||
$lockout_interface = "WAN";
|
||||
?>
|
||||
<input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong>
|
||||
<br />
|
||||
<?php printf(gettext("When this is unchecked, access to the webConfigurator " .
|
||||
"on the %s interface is always permitted, regardless of the user-defined firewall " .
|
||||
"rule set. Check this box to disable this automatically added rule, so access " .
|
||||
"to the webConfigurator is controlled by the user-defined firewall rules " .
|
||||
"(ensure you have a firewall rule in place that allows you in, or you will " .
|
||||
"lock yourself out!)"), $lockout_interface); ?>
|
||||
<em> <?=gettext("Hint: the "Set interface(s) IP address" option in the console menu resets this setting as well."); ?> </em>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("DNS Rebind Check"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="nodnsrebindcheck" type="checkbox" id="nodnsrebindcheck" value="yes" <?php if ($pconfig['nodnsrebindcheck']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable DNS Rebinding Checks"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is unchecked, your system " .
|
||||
"is protected against <a href=\"http://en.wikipedia.org/wiki/DNS_rebinding\">DNS Rebinding attacks</a>. " .
|
||||
"This blocks private IP responses from your configured DNS servers. Check this box to disable this protection if it interferes with " .
|
||||
"webConfigurator access or name resolution in your environment. "); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Alternate Hostnames"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="althostnames" type="text" class="formfld unknown" id="althostnames" size="75" value="<?=htmlspecialchars($pconfig['althostnames']);?>"/>
|
||||
<br />
|
||||
<strong><?=gettext("Alternate Hostnames for DNS Rebinding and HTTP_REFERER Checks"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("Here you can specify alternate hostnames by which the router may be queried, to " .
|
||||
"bypass the DNS Rebinding Attack checks. Separate hostnames with spaces."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Browser HTTP_REFERER enforcement"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="nohttpreferercheck" type="checkbox" id="nohttpreferercheck" value="yes" <?php if ($pconfig['nohttpreferercheck']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable HTTP_REFERER enforcement check"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is unchecked, access to the webConfigurator " .
|
||||
"is protected against HTTP_REFERER redirection attempts. " .
|
||||
"Check this box to disable this protection if you find that it interferes with " .
|
||||
"webConfigurator access in certain corner cases such as using external scripts to interact with this system. More information on HTTP_REFERER is available from <a target='_blank' href='http://en.wikipedia.org/wiki/HTTP_referrer'>Wikipedia</a>."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("BEAST Attack Protection"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="beast_protection" type="checkbox" id="beast_protection" value="yes" <?php if ($pconfig['beast_protection']) echo "checked=\"checked\""; ?> <?= $disable_beast_option ?>/>
|
||||
<strong><?=gettext("Mitigate the BEAST SSL Attack"); ?></strong>
|
||||
<br />
|
||||
<?php echo gettext("When this is checked, the webConfigurator can mitigate BEAST SSL attacks. ") ?>
|
||||
<br />
|
||||
<?php if ($disable_beast_option) {
|
||||
echo "<br />" . sprintf(gettext("This option has been automatically disabled because a conflicting cryptographic accelerator card has been detected (%s)."), $hwcrypto) . "<br /><br />";
|
||||
} ?>
|
||||
<?php echo gettext("This option is off by default because Hifn accelerators do NOT work with this option, and the GUI will not function. " .
|
||||
"It is possible that other accelerators have a similar problem that is not yet known/documented. " .
|
||||
"More information on BEAST is available from <a target='_blank' href='https://en.wikipedia.org/wiki/Transport_Layer_Security#BEAST_attack'>Wikipedia</a>."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Secure Shell"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Secure Shell Server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enablesshd" type="checkbox" id="enablesshd" value="yes" <?php if (isset($pconfig['enablesshd'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable Secure Shell"); ?></strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Root Login"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sshdpermitrootlogin" type="checkbox" id="sshdpermitrootlogin" value="yes" <?php if ($pconfig['sshdpermitrootlogin']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable root user login"); ?></strong>
|
||||
<br />
|
||||
<?=gettext("Root login is generally discouraged. It is advised "); ?>
|
||||
<?=gettext("to log in via another user and switch to root afterwards."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Authentication Method"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sshdkeyonly" type="checkbox" id="sshdkeyonly" value="yes" <?php if ($pconfig['sshdkeyonly']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable password login for Secure Shell (RSA/DSA key only)"); ?></strong>
|
||||
<br />
|
||||
<?=gettext("When enabled, authorized keys need to be configured for each"); ?>
|
||||
<a href="system_usermanager.php"><?=gettext("user"); ?></a>
|
||||
<?=gettext("that has been granted secure shell access."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("SSH port"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sshport" type="text" id="sshport" value="<?php echo $pconfig['sshport']; ?>" />
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default of 22."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communications"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php if (!$g['enableserial_force'] && ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt"))): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enables the first serial port with 115200/8/N/1 by default, or another speed selectable below."); ?></strong>
|
||||
<span class="vexpl"><?=gettext("Note: This will redirect the console output and messages to the serial port. You can still access the console menu from the internal video card/keyboard. A <b>null modem</b> serial cable or adapter is required to use the serial console."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Serial Speed")?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="serialspeed" id="serialspeed" class="formselect">
|
||||
<option value="115200" <?php if ($pconfig['serialspeed'] == "115200") echo "selected=\"selected\"";?>>115200</option>
|
||||
<option value="57600" <?php if ($pconfig['serialspeed'] == "57600") echo "selected=\"selected\"";?>>57600</option>
|
||||
<option value="38400" <?php if ($pconfig['serialspeed'] == "38400") echo "selected=\"selected\"";?>>38400</option>
|
||||
<option value="19200" <?php if ($pconfig['serialspeed'] == "19200") echo "selected=\"selected\"";?>>19200</option>
|
||||
<option value="14400" <?php if ($pconfig['serialspeed'] == "14400") echo "selected=\"selected\"";?>>14400</option>
|
||||
<option value="9600" <?php if ($pconfig['serialspeed'] == "9600") echo "selected=\"selected\"";?>>9600</option>
|
||||
</select> bps
|
||||
<br /><?=gettext("Allows selection of different speeds for the serial console port."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (!$g['primaryconsole_force'] && ($g['platform'] == "pfSense" || $g['platform'] == "cdrom" || file_exists("/etc/nano_use_vga.txt"))): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Primary Console")?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="primaryconsole" id="primaryconsole" class="formselect">
|
||||
<option value="serial" <?php if ($pconfig['primaryconsole'] == "serial") echo "selected=\"selected\"";?>>Serial Console</option>
|
||||
<option value="video" <?php if ($pconfig['primaryconsole'] == "video") echo "selected=\"selected\"";?>>VGA Console</option>
|
||||
</select>
|
||||
<br /><?=gettext("Select the preferred console if multiple consoles are present. The preferred console will show pfSense boot script output. All consoles display OS boot messages, console messages, and the console menu."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped __nomb">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Console Options"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Console menu"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Password protect the console menu"); ?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Changes to this option will take effect after a reboot."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@ -236,9 +236,9 @@ include("head.inc");
|
||||
?>
|
||||
|
||||
<body>
|
||||
|
||||
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var descs=new Array(5);
|
||||
@ -246,336 +246,336 @@ include("head.inc");
|
||||
descs[1]="<?=gettext("used for high latency links, such as satellite links. Expires idle connections later than default");?>";
|
||||
descs[2]="<?=gettext("expires idle connections quicker. More efficient use of CPU and memory but can drop legitimate idle connections");?>";
|
||||
descs[3]="<?=gettext("tries to avoid dropping any legitimate idle connections at the expense of increased memory usage and CPU utilization.");?>";
|
||||
|
||||
|
||||
function update_description(itemnum) {
|
||||
document.iform.info.value=descs[itemnum];
|
||||
|
||||
document.iform.info.value=descs[itemnum];
|
||||
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_firewall.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped ">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Firewall Advanced");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IP Do-Not-Fragment compatibility");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="scrubnodf" type="checkbox" id="scrubnodf" value="yes" <?php if (isset($config['system']['scrubnodf'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Clear invalid DF bits instead of dropping the packets");?></strong><br />
|
||||
<?=gettext("This allows for communications with hosts that generate fragmented " .
|
||||
"packets with the don't fragment (DF) bit set. Linux NFS is known to " .
|
||||
"do this. This will cause the filter to not drop such packets but " .
|
||||
"instead clear the don't fragment bit.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IP Random id generation");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="scrubrnid" type="checkbox" id="scrubrnid" value="yes" <?php if (isset($config['system']['scrubrnid'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Insert a stronger id into IP header of packets passing through the filter.");?></strong><br />
|
||||
<?=gettext("Replaces the IP identification field of packets with random values to " .
|
||||
"compensate for operating systems that use predictable values. " .
|
||||
"This option only applies to packets that are not fragmented after the " .
|
||||
"optional packet reassembly.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Optimization Options");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select onchange="update_description(this.selectedIndex);" name="optimization" id="optimization">
|
||||
<option value="normal"<?php if($config['system']['optimization']=="normal") echo " selected=\"selected\""; ?>><?=gettext("normal");?></option>
|
||||
<option value="high-latency"<?php if($config['system']['optimization']=="high-latency") echo " selected=\"selected\""; ?>><?=gettext("high-latency");?></option>
|
||||
<option value="aggressive"<?php if($config['system']['optimization']=="aggressive") echo " selected=\"selected\""; ?>><?=gettext("aggressive");?></option>
|
||||
<option value="conservative"<?php if($config['system']['optimization']=="conservative") echo " selected=\"selected\""; ?>><?=gettext("conservative");?></option>
|
||||
</select>
|
||||
<br />
|
||||
<textarea readonly="readonly" cols="60" rows="2" id="info" name="info" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000; font-size: 8pt;"></textarea>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
update_description(document.iform.optimization.selectedIndex);
|
||||
//]]>
|
||||
</script>
|
||||
<br />
|
||||
<?=gettext("Select the type of state table optimization to use");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable Firewall");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablefilter" type="checkbox" id="disablefilter" value="yes" <?php if (isset($config['system']['disablefilter'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable all packet filtering.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?php printf(gettext("Note: This converts %s into a routing only platform!"), $g['product_name']);?><br />
|
||||
<?=gettext("Note: This will also turn off NAT!");?>
|
||||
<br /><?=gettext("If you only want to disable NAT, and not firewall rules, visit the");?> <a href="firewall_nat_out.php"><?=gettext("Outbound NAT");?></a> <?=gettext("page");?>.
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable Firewall Scrub");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablescrub" type="checkbox" id="disablescrub" value="yes" <?php if (isset($config['system']['disablescrub'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disables the PF scrubbing option which can sometimes interfere with NFS and PPTP traffic.");?></strong>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Adaptive Timeouts");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<strong><?=gettext("Timeouts for states can be scaled adaptively as the number of state table entries grows.");?></strong>
|
||||
<br />
|
||||
<input name="adaptivestart" type="text" id="adaptivestart" value="<?php echo $pconfig['adaptivestart']; ?>" />
|
||||
<br /><?=gettext("When the number of state entries exceeds this value, adaptive scaling begins. All timeout values are scaled linearly with factor (adaptive.end - number of states) / (adaptive.end - adaptive.start).");?>
|
||||
|
||||
<br />
|
||||
<input name="adaptiveend" type="text" id="adaptiveend" value="<?php echo $pconfig['adaptiveend']; ?>" />
|
||||
<br /><?=gettext("When reaching this number of state entries, all timeout values become zero, effectively purging all state entries immediately. This value is used to define the scale factor, it should not actually be reached (set a lower state limit, see below).");?>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default(0).");?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Maximum States");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="maximumstates" type="text" id="maximumstates" value="<?php echo $pconfig['maximumstates']; ?>" />
|
||||
<br />
|
||||
<strong><?=gettext("Maximum number of connections to hold in the firewall state table.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default. On your system the default size is:");?> <?= pfsense_default_state_size() ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Maximum Table Entries");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="maximumtableentries" type="text" id="maximumtableentries" value="<?php echo $pconfig['maximumtableentries']; ?>" />
|
||||
<br />
|
||||
<strong><?=gettext("Maximum number of table entries for systems such as aliases, sshlockout, snort, etc, combined.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Note: Leave this blank for the default.");?>
|
||||
<?php if (empty($pconfig['maximumtableentries'])): ?>
|
||||
<?= gettext("On your system the default size is:");?> <?= pfsense_default_table_entries_size(); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Static route filtering");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="bypassstaticroutes" type="checkbox" id="bypassstaticroutes" value="yes" <?php if ($pconfig['bypassstaticroutes']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Bypass firewall rules for traffic on the same interface");?></strong>
|
||||
<br />
|
||||
<?=gettext("This option only applies if you have defined one or more static routes. If it is enabled, traffic that enters and " .
|
||||
"leaves through the same interface will not be checked by the firewall. This may be desirable in some situations where " .
|
||||
"multiple subnets are connected to the same interface.");?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Disable Auto-added VPN rules</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablevpnrules" type="checkbox" id="disablevpnrules" value="yes" <?php if (isset($config['system']['disablevpnrules'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable all auto-added VPN rules.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: This disables automatically added rules for IPsec, PPTP.");?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Disable reply-to</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablereplyto" type="checkbox" id="disablereplyto" value="yes" <?php if ($pconfig['disablereplyto']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable reply-to on WAN rules");?></strong>
|
||||
<br />
|
||||
<?=gettext("With Multi-WAN you generally want to ensure traffic leaves the same interface it arrives on, hence reply-to is added automatically by default. " .
|
||||
"When using bridging, you must disable this behavior if the WAN gateway IP is different from the gateway IP of the hosts behind the bridged interface.");?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Disable Negate rules</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablenegate" type="checkbox" id="disablenegate" value="yes" <?php if ($pconfig['disablenegate']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable Negate rule on policy routing rules");?></strong>
|
||||
<br />
|
||||
<?=gettext("With Multi-WAN you generally want to ensure traffic reaches directly connected networks and VPN networks when using policy routing. You can disable this for special purposes but it requires manually creating rules for these networks");?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Aliases Hostnames Resolve Interval");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="aliasesresolveinterval" type="text" id="aliasesresolveinterval" value="<?php echo $pconfig['aliasesresolveinterval']; ?>" />
|
||||
<br />
|
||||
<strong><?=gettext("Interval, in seconds, that will be used to resolve hostnames configured on aliases.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default (300s).");?></span>
|
||||
</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 downloading alias 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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Bogon Networks");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Update Frequency");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="bogonsinterval" class="formselect">
|
||||
<option value="monthly" <?php if (empty($pconfig['bogonsinterval']) || $pconfig['bogonsinterval'] == 'monthly') echo "selected=\"selected\""; ?>><?=gettext("Monthly"); ?></option>
|
||||
<option value="weekly" <?php if ($pconfig['bogonsinterval'] == 'weekly') echo "selected=\"selected\""; ?>><?=gettext("Weekly"); ?></option>
|
||||
<option value="daily" <?php if ($pconfig['bogonsinterval'] == 'daily') echo "selected=\"selected\""; ?>><?=gettext("Daily"); ?></option>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("The frequency of updating the lists of IP addresses that are reserved (but not RFC 1918) or not yet assigned by IANA.");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
<?php if(count($config['interfaces']) > 1): ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Network Address Translation");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("NAT Reflection mode for port forwards");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="natreflection" class="formselect">
|
||||
<option value="disable" <?php if (isset($config['system']['disablenatreflection'])) echo "selected=\"selected\""; ?>><?=gettext("Disable"); ?></option>
|
||||
<option value="proxy" <?php if (!isset($config['system']['disablenatreflection']) && !isset($config['system']['enablenatreflectionpurenat'])) echo "selected=\"selected\""; ?>><?=gettext("Enable (NAT + Proxy)"); ?></option>
|
||||
<option value="purenat" <?php if (!isset($config['system']['disablenatreflection']) && isset($config['system']['enablenatreflectionpurenat'])) echo "selected=\"selected\""; ?>><?=gettext("Enable (Pure NAT)"); ?></option>
|
||||
</select>
|
||||
<br />
|
||||
<strong><?=gettext("When enabled, this automatically creates additional NAT redirect rules for access to port forwards on your external IP addresses from within your internal networks.");?></strong>
|
||||
<br /><br />
|
||||
<?=gettext("The NAT + proxy mode uses a helper program to send packets to the target of the port forward. It is useful in setups where the interface and/or gateway IP used for communication with the target cannot be accurately determined at the time the rules are loaded. Reflection rules are not created for ranges larger than 500 ports and will not be used for more than 1000 ports total between all port forwards. Only TCP and UDP protocols are supported.");?>
|
||||
<br /><br />
|
||||
<?=gettext("The pure NAT mode uses a set of NAT rules to direct packets to the target of the port forward. It has better scalability, but it must be possible to accurately determine the interface and gateway IP used for communication with the target at the time the rules are loaded. There are no inherent limits to the number of ports other than the limits of the protocols. All protocols available for port forwards are supported.");?>
|
||||
<br /><br />
|
||||
<?=gettext("Individual rules may be configured to override this system setting on a per-rule basis.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Reflection Timeout");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="reflectiontimeout" id="reflectiontimeout" value="<?php echo $config['system']['reflectiontimeout']; ?>" /><br />
|
||||
<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.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Enable NAT Reflection for 1:1 NAT");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enablebinatreflection" type="checkbox" id="enablebinatreflection" value="yes" <?php if (isset($config['system']['enablebinatreflection'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enables the automatic creation of additional NAT redirect rules for access to 1:1 mappings of your external IP addresses from within your internal networks.");?></strong>
|
||||
<br /><br />
|
||||
<?=gettext("Note: Reflection on 1:1 mappings is only for the inbound component of the 1:1 mappings. This functions the same as the pure NAT mode for port forwards. For more details, refer to the pure NAT mode description above.");?>
|
||||
<br /><br />
|
||||
<?=gettext("Individual rules may be configured to override this system setting on a per-rule basis.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Enable automatic outbound NAT for Reflection");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enablenatreflectionhelper" type="checkbox" id="enablenatreflectionhelper" value="yes" <?php if (isset($config['system']['enablenatreflectionhelper'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Automatically create outbound NAT rules which assist inbound NAT rules that direct traffic back out to the same subnet it originated from.");?></strong>
|
||||
<br />
|
||||
<?=gettext("Required for full functionality of the pure NAT mode of NAT Reflection for port forwards or NAT Reflection for 1:1 NAT.");?>
|
||||
<br /><br />
|
||||
<?=gettext("Note: This only works for assigned interfaces. Other interfaces require manually creating the outbound NAT rules that direct the reply packets back through the router.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("TFTP Proxy");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="tftpinterface[]" multiple="multiple" class="formselect" size="3">
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_firewall.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped ">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Firewall Advanced");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IP Do-Not-Fragment compatibility");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="scrubnodf" type="checkbox" id="scrubnodf" value="yes" <?php if (isset($config['system']['scrubnodf'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Clear invalid DF bits instead of dropping the packets");?></strong><br />
|
||||
<?=gettext("This allows for communications with hosts that generate fragmented " .
|
||||
"packets with the don't fragment (DF) bit set. Linux NFS is known to " .
|
||||
"do this. This will cause the filter to not drop such packets but " .
|
||||
"instead clear the don't fragment bit.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IP Random id generation");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="scrubrnid" type="checkbox" id="scrubrnid" value="yes" <?php if (isset($config['system']['scrubrnid'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Insert a stronger id into IP header of packets passing through the filter.");?></strong><br />
|
||||
<?=gettext("Replaces the IP identification field of packets with random values to " .
|
||||
"compensate for operating systems that use predictable values. " .
|
||||
"This option only applies to packets that are not fragmented after the " .
|
||||
"optional packet reassembly.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Optimization Options");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select onchange="update_description(this.selectedIndex);" name="optimization" id="optimization">
|
||||
<option value="normal"<?php if($config['system']['optimization']=="normal") echo " selected=\"selected\""; ?>><?=gettext("normal");?></option>
|
||||
<option value="high-latency"<?php if($config['system']['optimization']=="high-latency") echo " selected=\"selected\""; ?>><?=gettext("high-latency");?></option>
|
||||
<option value="aggressive"<?php if($config['system']['optimization']=="aggressive") echo " selected=\"selected\""; ?>><?=gettext("aggressive");?></option>
|
||||
<option value="conservative"<?php if($config['system']['optimization']=="conservative") echo " selected=\"selected\""; ?>><?=gettext("conservative");?></option>
|
||||
</select>
|
||||
<br />
|
||||
<textarea readonly="readonly" cols="60" rows="2" id="info" name="info" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000; font-size: 8pt;"></textarea>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
update_description(document.iform.optimization.selectedIndex);
|
||||
//]]>
|
||||
</script>
|
||||
<br />
|
||||
<?=gettext("Select the type of state table optimization to use");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable Firewall");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablefilter" type="checkbox" id="disablefilter" value="yes" <?php if (isset($config['system']['disablefilter'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable all packet filtering.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?php printf(gettext("Note: This converts %s into a routing only platform!"), $g['product_name']);?><br />
|
||||
<?=gettext("Note: This will also turn off NAT!");?>
|
||||
<br /><?=gettext("If you only want to disable NAT, and not firewall rules, visit the");?> <a href="firewall_nat_out.php"><?=gettext("Outbound NAT");?></a> <?=gettext("page");?>.
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable Firewall Scrub");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablescrub" type="checkbox" id="disablescrub" value="yes" <?php if (isset($config['system']['disablescrub'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disables the PF scrubbing option which can sometimes interfere with NFS and PPTP traffic.");?></strong>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Adaptive Timeouts");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<strong><?=gettext("Timeouts for states can be scaled adaptively as the number of state table entries grows.");?></strong>
|
||||
<br />
|
||||
<input name="adaptivestart" type="text" id="adaptivestart" value="<?php echo $pconfig['adaptivestart']; ?>" />
|
||||
<br /><?=gettext("When the number of state entries exceeds this value, adaptive scaling begins. All timeout values are scaled linearly with factor (adaptive.end - number of states) / (adaptive.end - adaptive.start).");?>
|
||||
|
||||
<br />
|
||||
<input name="adaptiveend" type="text" id="adaptiveend" value="<?php echo $pconfig['adaptiveend']; ?>" />
|
||||
<br /><?=gettext("When reaching this number of state entries, all timeout values become zero, effectively purging all state entries immediately. This value is used to define the scale factor, it should not actually be reached (set a lower state limit, see below).");?>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default(0).");?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Maximum States");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="maximumstates" type="text" id="maximumstates" value="<?php echo $pconfig['maximumstates']; ?>" />
|
||||
<br />
|
||||
<strong><?=gettext("Maximum number of connections to hold in the firewall state table.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default. On your system the default size is:");?> <?= pfsense_default_state_size() ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Firewall Maximum Table Entries");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="maximumtableentries" type="text" id="maximumtableentries" value="<?php echo $pconfig['maximumtableentries']; ?>" />
|
||||
<br />
|
||||
<strong><?=gettext("Maximum number of table entries for systems such as aliases, sshlockout, snort, etc, combined.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl">
|
||||
<?=gettext("Note: Leave this blank for the default.");?>
|
||||
<?php if (empty($pconfig['maximumtableentries'])): ?>
|
||||
<?= gettext("On your system the default size is:");?> <?= pfsense_default_table_entries_size(); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Static route filtering");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="bypassstaticroutes" type="checkbox" id="bypassstaticroutes" value="yes" <?php if ($pconfig['bypassstaticroutes']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Bypass firewall rules for traffic on the same interface");?></strong>
|
||||
<br />
|
||||
<?=gettext("This option only applies if you have defined one or more static routes. If it is enabled, traffic that enters and " .
|
||||
"leaves through the same interface will not be checked by the firewall. This may be desirable in some situations where " .
|
||||
"multiple subnets are connected to the same interface.");?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Disable Auto-added VPN rules</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablevpnrules" type="checkbox" id="disablevpnrules" value="yes" <?php if (isset($config['system']['disablevpnrules'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable all auto-added VPN rules.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: This disables automatically added rules for IPsec, PPTP.");?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Disable reply-to</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablereplyto" type="checkbox" id="disablereplyto" value="yes" <?php if ($pconfig['disablereplyto']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable reply-to on WAN rules");?></strong>
|
||||
<br />
|
||||
<?=gettext("With Multi-WAN you generally want to ensure traffic leaves the same interface it arrives on, hence reply-to is added automatically by default. " .
|
||||
"When using bridging, you must disable this behavior if the WAN gateway IP is different from the gateway IP of the hosts behind the bridged interface.");?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Disable Negate rules</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablenegate" type="checkbox" id="disablenegate" value="yes" <?php if ($pconfig['disablenegate']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable Negate rule on policy routing rules");?></strong>
|
||||
<br />
|
||||
<?=gettext("With Multi-WAN you generally want to ensure traffic reaches directly connected networks and VPN networks when using policy routing. You can disable this for special purposes but it requires manually creating rules for these networks");?>
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Aliases Hostnames Resolve Interval");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="aliasesresolveinterval" type="text" id="aliasesresolveinterval" value="<?php echo $pconfig['aliasesresolveinterval']; ?>" />
|
||||
<br />
|
||||
<strong><?=gettext("Interval, in seconds, that will be used to resolve hostnames configured on aliases.");?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("Note: Leave this blank for the default (300s).");?></span>
|
||||
</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 downloading alias 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>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped ">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Bogon Networks");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Update Frequency");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="bogonsinterval" class="formselect">
|
||||
<option value="monthly" <?php if (empty($pconfig['bogonsinterval']) || $pconfig['bogonsinterval'] == 'monthly') echo "selected=\"selected\""; ?>><?=gettext("Monthly"); ?></option>
|
||||
<option value="weekly" <?php if ($pconfig['bogonsinterval'] == 'weekly') echo "selected=\"selected\""; ?>><?=gettext("Weekly"); ?></option>
|
||||
<option value="daily" <?php if ($pconfig['bogonsinterval'] == 'daily') echo "selected=\"selected\""; ?>><?=gettext("Daily"); ?></option>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("The frequency of updating the lists of IP addresses that are reserved (but not RFC 1918) or not yet assigned by IANA.");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
<?php if(count($config['interfaces']) > 1): ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Network Address Translation");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("NAT Reflection mode for port forwards");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="natreflection" class="formselect">
|
||||
<option value="disable" <?php if (isset($config['system']['disablenatreflection'])) echo "selected=\"selected\""; ?>><?=gettext("Disable"); ?></option>
|
||||
<option value="proxy" <?php if (!isset($config['system']['disablenatreflection']) && !isset($config['system']['enablenatreflectionpurenat'])) echo "selected=\"selected\""; ?>><?=gettext("Enable (NAT + Proxy)"); ?></option>
|
||||
<option value="purenat" <?php if (!isset($config['system']['disablenatreflection']) && isset($config['system']['enablenatreflectionpurenat'])) echo "selected=\"selected\""; ?>><?=gettext("Enable (Pure NAT)"); ?></option>
|
||||
</select>
|
||||
<br />
|
||||
<strong><?=gettext("When enabled, this automatically creates additional NAT redirect rules for access to port forwards on your external IP addresses from within your internal networks.");?></strong>
|
||||
<br /><br />
|
||||
<?=gettext("The NAT + proxy mode uses a helper program to send packets to the target of the port forward. It is useful in setups where the interface and/or gateway IP used for communication with the target cannot be accurately determined at the time the rules are loaded. Reflection rules are not created for ranges larger than 500 ports and will not be used for more than 1000 ports total between all port forwards. Only TCP and UDP protocols are supported.");?>
|
||||
<br /><br />
|
||||
<?=gettext("The pure NAT mode uses a set of NAT rules to direct packets to the target of the port forward. It has better scalability, but it must be possible to accurately determine the interface and gateway IP used for communication with the target at the time the rules are loaded. There are no inherent limits to the number of ports other than the limits of the protocols. All protocols available for port forwards are supported.");?>
|
||||
<br /><br />
|
||||
<?=gettext("Individual rules may be configured to override this system setting on a per-rule basis.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Reflection Timeout");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="reflectiontimeout" id="reflectiontimeout" value="<?php echo $config['system']['reflectiontimeout']; ?>" /><br />
|
||||
<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.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Enable NAT Reflection for 1:1 NAT");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enablebinatreflection" type="checkbox" id="enablebinatreflection" value="yes" <?php if (isset($config['system']['enablebinatreflection'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enables the automatic creation of additional NAT redirect rules for access to 1:1 mappings of your external IP addresses from within your internal networks.");?></strong>
|
||||
<br /><br />
|
||||
<?=gettext("Note: Reflection on 1:1 mappings is only for the inbound component of the 1:1 mappings. This functions the same as the pure NAT mode for port forwards. For more details, refer to the pure NAT mode description above.");?>
|
||||
<br /><br />
|
||||
<?=gettext("Individual rules may be configured to override this system setting on a per-rule basis.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Enable automatic outbound NAT for Reflection");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="enablenatreflectionhelper" type="checkbox" id="enablenatreflectionhelper" value="yes" <?php if (isset($config['system']['enablenatreflectionhelper'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Automatically create outbound NAT rules which assist inbound NAT rules that direct traffic back out to the same subnet it originated from.");?></strong>
|
||||
<br />
|
||||
<?=gettext("Required for full functionality of the pure NAT mode of NAT Reflection for port forwards or NAT Reflection for 1:1 NAT.");?>
|
||||
<br /><br />
|
||||
<?=gettext("Note: This only works for assigned interfaces. Other interfaces require manually creating the outbound NAT rules that direct the reply packets back through the router.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("TFTP Proxy");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="tftpinterface[]" multiple="multiple" class="formselect" size="3">
|
||||
<?php
|
||||
$ifdescs = get_configured_interface_with_descr();
|
||||
$rowIndex = 0;
|
||||
foreach ($ifdescs as $ifent => $ifdesc):
|
||||
$rowIndex++;
|
||||
?>
|
||||
<option value="<?=$ifent;?>" <?php if (in_array($ifent, $pconfig['tftpinterface'])) echo "selected=\"selected\""; ?>><?=gettext($ifdesc);?></option>
|
||||
$ifdescs = get_configured_interface_with_descr();
|
||||
$rowIndex = 0;
|
||||
foreach ($ifdescs as $ifent => $ifdesc):
|
||||
$rowIndex++;
|
||||
?>
|
||||
<option value="<?=$ifent;?>" <?php if (in_array($ifent, $pconfig['tftpinterface'])) echo "selected=\"selected\""; ?>><?=gettext($ifdesc);?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
<strong><?=gettext("Choose the interfaces where you want TFTP proxy helper to be enabled.");?></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped __nomb">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
<strong><?=gettext("Choose the interfaces where you want TFTP proxy helper to be enabled.");?></strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped __nomb">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@ -244,28 +244,28 @@ include("head.inc");
|
||||
|
||||
<body>
|
||||
<?php
|
||||
include("fbegin.inc");
|
||||
include("fbegin.inc");
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function sticky_checked(obj) {
|
||||
if (obj.checked)
|
||||
jQuery('#srctrack').attr('disabled',false);
|
||||
else
|
||||
jQuery('#srctrack').attr('disabled','true');
|
||||
if (obj.checked)
|
||||
jQuery('#srctrack').attr('disabled',false);
|
||||
else
|
||||
jQuery('#srctrack').attr('disabled','true');
|
||||
}
|
||||
function tmpvar_checked(obj) {
|
||||
if (obj.checked) {
|
||||
jQuery('#use_mfs_tmp_size').attr('disabled',false);
|
||||
jQuery('#use_mfs_var_size').attr('disabled',false);
|
||||
jQuery('#rrdbackup').attr('disabled',false);
|
||||
jQuery('#dhcpbackup').attr('disabled',false);
|
||||
} else {
|
||||
jQuery('#use_mfs_tmp_size').attr('disabled','true');
|
||||
jQuery('#use_mfs_var_size').attr('disabled','true');
|
||||
jQuery('#rrdbackup').attr('disabled','true');
|
||||
jQuery('#dhcpbackup').attr('disabled','true');
|
||||
}
|
||||
if (obj.checked) {
|
||||
jQuery('#use_mfs_tmp_size').attr('disabled',false);
|
||||
jQuery('#use_mfs_var_size').attr('disabled',false);
|
||||
jQuery('#rrdbackup').attr('disabled',false);
|
||||
jQuery('#dhcpbackup').attr('disabled',false);
|
||||
} else {
|
||||
jQuery('#use_mfs_tmp_size').attr('disabled','true');
|
||||
jQuery('#use_mfs_var_size').attr('disabled','true');
|
||||
jQuery('#rrdbackup').attr('disabled','true');
|
||||
jQuery('#dhcpbackup').attr('disabled','true');
|
||||
}
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
@ -273,161 +273,161 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_misc.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_misc.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Proxy support"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Proxy support"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy URL"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="proxyurl" id="proxyurl" value="<?php if ($pconfig['proxyurl'] <> "") echo $pconfig['proxyurl']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy url for allowing %s to use this proxy to connect outside."),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Port"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="proxyport" id="proxyport" value="<?php if ($pconfig['proxyport'] <> "") echo $pconfig['proxyport']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy port to use when %s connects to the proxy URL configured above. Default is 8080 for http protocol or 443 for ssl."),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Username"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="proxyuser" id="proxyuser" value="<?php if ($pconfig['proxyuser'] <> "") echo $pconfig['proxyuser']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy username for allowing %s to use this proxy to connect outside"),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Pass"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type="password" name="proxypass" id="proxypass" value="<?php if ($pconfig['proxypass'] <> "") echo $pconfig['proxypass']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy password for allowing %s to use this proxy to connect outside"),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy URL"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="proxyurl" id="proxyurl" value="<?php if ($pconfig['proxyurl'] <> "") echo $pconfig['proxyurl']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy url for allowing %s to use this proxy to connect outside."),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Port"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="proxyport" id="proxyport" value="<?php if ($pconfig['proxyport'] <> "") echo $pconfig['proxyport']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy port to use when %s connects to the proxy URL configured above. Default is 8080 for http protocol or 443 for ssl."),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Username"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="proxyuser" id="proxyuser" value="<?php if ($pconfig['proxyuser'] <> "") echo $pconfig['proxyuser']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy username for allowing %s to use this proxy to connect outside"),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Pass"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type="password" name="proxypass" id="proxypass" value="<?php if ($pconfig['proxypass'] <> "") echo $pconfig['proxypass']; ?>" class="formfld unknown" />
|
||||
<br />
|
||||
<?php printf(gettext("Proxy password for allowing %s to use this proxy to connect outside"),$g['product']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic"><?=gettext("Load Balancing"); ?></th>
|
||||
<th colspan="2" class="listtopic"><?=gettext("Load Balancing"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> onclick="sticky_checked(this)" />
|
||||
<strong><?=gettext("Use sticky connections"); ?></strong><br />
|
||||
<?=gettext("Successive connections will be redirected to the servers " .
|
||||
"in a round-robin manner with connections from the same " .
|
||||
"source being sent to the same web server. This 'sticky " .
|
||||
"connection' will exist as long as there are states that " .
|
||||
"refer to this connection. Once the states expire, so will " .
|
||||
"the sticky connection. Further connections from that host " .
|
||||
"will be redirected to the next web server in the round " .
|
||||
"robin. Changing this option will restart the Load Balancing service."); ?>
|
||||
<br />
|
||||
<input name="srctrack" id="srctrack" value="<?php if ($pconfig['srctrack'] <> "") echo $pconfig['srctrack']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['lb_use_sticky'] == false) echo "disabled=\"disabled\""; ?> />
|
||||
<br />
|
||||
<?=gettext("Set the source tracking timeout for sticky connections. " .
|
||||
"By default this is 0, so source tracking is removed as soon as the state expires. " .
|
||||
"Setting this timeout higher will cause the source/destination relationship to persist for longer periods of time."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="gw_switch_default" type="checkbox" id="gw_switch_default" value="yes" <?php if ($pconfig['gw_switch_default']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Allow default gateway switching"); ?></strong><br />
|
||||
<?=gettext("If the link where the default gateway resides fails " .
|
||||
"switch the default gateway to another available one."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> onclick="sticky_checked(this)" />
|
||||
<strong><?=gettext("Use sticky connections"); ?></strong><br />
|
||||
<?=gettext("Successive connections will be redirected to the servers " .
|
||||
"in a round-robin manner with connections from the same " .
|
||||
"source being sent to the same web server. This 'sticky " .
|
||||
"connection' will exist as long as there are states that " .
|
||||
"refer to this connection. Once the states expire, so will " .
|
||||
"the sticky connection. Further connections from that host " .
|
||||
"will be redirected to the next web server in the round " .
|
||||
"robin. Changing this option will restart the Load Balancing service."); ?>
|
||||
<br />
|
||||
<input name="srctrack" id="srctrack" value="<?php if ($pconfig['srctrack'] <> "") echo $pconfig['srctrack']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['lb_use_sticky'] == false) echo "disabled=\"disabled\""; ?> />
|
||||
<br />
|
||||
<?=gettext("Set the source tracking timeout for sticky connections. " .
|
||||
"By default this is 0, so source tracking is removed as soon as the state expires. " .
|
||||
"Setting this timeout higher will cause the source/destination relationship to persist for longer periods of time."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="gw_switch_default" type="checkbox" id="gw_switch_default" value="yes" <?php if ($pconfig['gw_switch_default']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Allow default gateway switching"); ?></strong><br />
|
||||
<?=gettext("If the link where the default gateway resides fails " .
|
||||
"switch the default gateway to another available one."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Power savings"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Power savings"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("PowerD"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Use PowerD"); ?></strong><br />
|
||||
<br />
|
||||
<?=gettext("On AC Power Mode"); ?> :
|
||||
<select name="powerd_ac_mode" id="powerd_ac_mode">
|
||||
<option value="hadp"<?php if($pconfig['powerd_ac_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option>
|
||||
<option value="adp"<?php if($pconfig['powerd_ac_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option>
|
||||
<option value="min"<?php if($pconfig['powerd_ac_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option>
|
||||
<option value="max"<?php if($pconfig['powerd_ac_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option>
|
||||
</select>
|
||||
|
||||
<?=gettext("On Battery Power Mode"); ?> :
|
||||
<select name="powerd_battery_mode" id="powerd_battery_mode">
|
||||
<option value="hadp"<?php if($pconfig['powerd_battery_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option>
|
||||
<option value="adp"<?php if($pconfig['powerd_battery_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option>
|
||||
<option value="min"<?php if($pconfig['powerd_battery_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option>
|
||||
<option value="max"<?php if($pconfig['powerd_battery_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option>
|
||||
</select>
|
||||
<br /><br />
|
||||
<?=gettext("The powerd utility monitors the system state and sets various power control " .
|
||||
"options accordingly. It offers four modes (maximum, minimum, adaptive " .
|
||||
"and hiadaptive) that can be individually selected while on AC power or batteries. " .
|
||||
"The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
|
||||
"min, adp, hadp. Maximum mode chooses the highest performance values. Minimum " .
|
||||
"mode selects the lowest performance values to get the most power savings. " .
|
||||
"Adaptive mode attempts to strike a balance by degrading performance when " .
|
||||
"the system appears idle and increasing it when the system is busy. It " .
|
||||
"offers a good balance between a small performance loss for greatly " .
|
||||
"increased power savings. Hiadaptive mode is alike adaptive mode, but " .
|
||||
"tuned for systems where performance and interactivity are more important " .
|
||||
"than power consumption. It raises frequency faster, drops slower and " .
|
||||
"keeps twice lower CPU load."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("PowerD"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Use PowerD"); ?></strong><br />
|
||||
<br />
|
||||
<?=gettext("On AC Power Mode"); ?> :
|
||||
<select name="powerd_ac_mode" id="powerd_ac_mode">
|
||||
<option value="hadp"<?php if($pconfig['powerd_ac_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option>
|
||||
<option value="adp"<?php if($pconfig['powerd_ac_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option>
|
||||
<option value="min"<?php if($pconfig['powerd_ac_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option>
|
||||
<option value="max"<?php if($pconfig['powerd_ac_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option>
|
||||
</select>
|
||||
|
||||
<?=gettext("On Battery Power Mode"); ?> :
|
||||
<select name="powerd_battery_mode" id="powerd_battery_mode">
|
||||
<option value="hadp"<?php if($pconfig['powerd_battery_mode']=="hadp") echo " selected=\"selected\""; ?>><?=gettext("Hiadaptive");?></option>
|
||||
<option value="adp"<?php if($pconfig['powerd_battery_mode']=="adp") echo " selected=\"selected\""; ?>><?=gettext("Adaptive");?></option>
|
||||
<option value="min"<?php if($pconfig['powerd_battery_mode']=="min") echo " selected=\"selected\""; ?>><?=gettext("Minimum");?></option>
|
||||
<option value="max"<?php if($pconfig['powerd_battery_mode']=="max") echo " selected=\"selected\""; ?>><?=gettext("Maximum");?></option>
|
||||
</select>
|
||||
<br /><br />
|
||||
<?=gettext("The powerd utility monitors the system state and sets various power control " .
|
||||
"options accordingly. It offers four modes (maximum, minimum, adaptive " .
|
||||
"and hiadaptive) that can be individually selected while on AC power or batteries. " .
|
||||
"The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
|
||||
"min, adp, hadp. Maximum mode chooses the highest performance values. Minimum " .
|
||||
"mode selects the lowest performance values to get the most power savings. " .
|
||||
"Adaptive mode attempts to strike a balance by degrading performance when " .
|
||||
"the system appears idle and increasing it when the system is busy. It " .
|
||||
"offers a good balance between a small performance loss for greatly " .
|
||||
"increased power savings. Hiadaptive mode is alike adaptive mode, but " .
|
||||
"tuned for systems where performance and interactivity are more important " .
|
||||
"than power consumption. It raises frequency faster, drops slower and " .
|
||||
"keeps twice lower CPU load."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Cryptographic Hardware Acceleration"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Cryptographic Hardware Acceleration"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@ -454,248 +454,248 @@ include("head.inc");
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Thermal Sensors"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Thermal Sensors"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Thermal Sensors"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="thermal_hardware" id="thermal_hardware">
|
||||
<option value=""><?php echo gettext("None/ACPI"); ?></option>
|
||||
<?php foreach ($thermal_hardware_modules as $themalmod_name => $themalmod_descr): ?>
|
||||
<option value="<?php echo $themalmod_name; ?>" <?php if ($pconfig['thermal_hardware'] == $themalmod_name) echo " selected=\"selected\""; ?>><?php echo "{$themalmod_descr} ({$themalmod_name})"; ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("If you have a supported CPU, selecting a themal sensor will load the appropriate " .
|
||||
"driver to read its temperature. Setting this to 'None' will attempt to read the " .
|
||||
"temperature from an ACPI-compliant motherboard sensor instead, if one is present."); ?>
|
||||
<br /><br />
|
||||
<?=gettext("If you do not have a supported thermal sensor chip in your system, this option will have no " .
|
||||
"effect. To unload the selected module, set this option to 'none' and then reboot."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Thermal Sensors"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="thermal_hardware" id="thermal_hardware">
|
||||
<option value=""><?php echo gettext("None/ACPI"); ?></option>
|
||||
<?php foreach ($thermal_hardware_modules as $themalmod_name => $themalmod_descr): ?>
|
||||
<option value="<?php echo $themalmod_name; ?>" <?php if ($pconfig['thermal_hardware'] == $themalmod_name) echo " selected=\"selected\""; ?>><?php echo "{$themalmod_descr} ({$themalmod_name})"; ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("If you have a supported CPU, selecting a themal sensor will load the appropriate " .
|
||||
"driver to read its temperature. Setting this to 'None' will attempt to read the " .
|
||||
"temperature from an ACPI-compliant motherboard sensor instead, if one is present."); ?>
|
||||
<br /><br />
|
||||
<?=gettext("If you do not have a supported thermal sensor chip in your system, this option will have no " .
|
||||
"effect. To unload the selected module, set this option to 'none' and then reboot."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("IP Security"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("IP Security"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<?=gettext("These settings have moved to <a href=\"vpn_ipsec_settings.php\">VPN > IPsec on the Advanced Settings tab</a>."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<?=gettext("These settings have moved to <a href=\"vpn_ipsec_settings.php\">VPN > IPsec on the Advanced Settings tab</a>."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Schedules"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Schedules"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Schedule States"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("By default schedules clear the states of existing connections when the expiration time has come. ".
|
||||
"This option overrides that behavior by not clearing states for existing connections."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Schedule States"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("By default schedules clear the states of existing connections when the expiration time has come. ".
|
||||
"This option overrides that behavior by not clearing states for existing connections."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Gateway Monitoring"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Gateway Monitoring"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("State Killing on Gateway Failure"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="kill_states" type="checkbox" id="kill_states" value="yes" <?php if ($pconfig['kill_states']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Skip rules when gateway is down"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="skip_rules_gw_down" type="checkbox" id="skip_rules_gw_down" value="yes" <?php if ($pconfig['skip_rules_gw_down']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("By default, when a rule has a specific gateway set, and this gateway is down, ".
|
||||
"rule is created and traffic is sent to default gateway.This option overrides that behavior ".
|
||||
"and the rule is not created when gateway is down"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Enable debugging messages of gateway monitoring daemon"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="apinger_debug" type="checkbox" id="apinger_debug" value="yes" <?php if ($pconfig['apinger_debug']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("By default, gateway monitoring does not log its error messages, ".
|
||||
"by toggling this setting the daemon would enable logging its messages to syslog."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("RAM Disk Settings (Reboot to Apply Changes)"); ?></td>
|
||||
</tr>
|
||||
<?php if ($g['platform'] == "pfSense"): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Use RAM Disks"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="use_mfs_tmpvar" type="checkbox" id="use_mfs_tmpvar" value="yes" <?php if ($pconfig['use_mfs_tmpvar']) echo "checked=\"checked\""; ?> onclick="tmpvar_checked(this)" />
|
||||
<strong><?=gettext("Use memory file system for /tmp and /var"); ?></strong><br />
|
||||
<?=gettext("Set this if you wish to use /tmp and /var as RAM disks (memory file system disks) on a full install " .
|
||||
"rather than use the hard disk. Setting this will cause the data in /tmp and /var to be lost at reboot, including log data. RRD and DHCP Leases will be retained."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("/tmp RAM Disk Size"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="use_mfs_tmp_size" id="use_mfs_tmp_size" value="<?php if ($pconfig['use_mfs_tmp_size'] <> "") echo $pconfig['use_mfs_tmp_size']; ?>" class="formfld unknown" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> /> MB
|
||||
<br />
|
||||
<?=gettext("Set the size, in MB, for the /tmp RAM disk. " .
|
||||
"Leave blank for 40MB. Do not set lower than 40."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("/var RAM Disk Size"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="use_mfs_var_size" id="use_mfs_var_size" value="<?php if ($pconfig['use_mfs_var_size'] <> "") echo $pconfig['use_mfs_var_size']; ?>" class="formfld unknown" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> /> MB
|
||||
<br />
|
||||
<?=gettext("Set the size, in MB, for the /var RAM disk. " .
|
||||
"Leave blank for 60MB. Do not set lower than 60."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Periodic RRD Backup");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?=gettext("Frequency:");?>
|
||||
<select name="rrdbackup" id="rrdbackup" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> >
|
||||
<option value='0' <?php if (!isset($config['system']['rrdbackup']) || ($config['system']['rrdbackup'] == 0)) echo "selected='selected'"; ?>><?=gettext("Disable"); ?></option>
|
||||
<?php for ($x=1; $x<=24; $x++) { ?>
|
||||
<option value='<?= $x ?>' <?php if ($config['system']['rrdbackup'] == $x) echo "selected='selected'"; ?>><?= $x ?> <?=gettext("hour"); ?><?php if ($x>1) echo "s"; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("This will periodically backup the RRD data so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?>
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Periodic DHCP Leases Backup");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?=gettext("Frequency:");?>
|
||||
<select name="dhcpbackup" id="dhcpbackup" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> >
|
||||
<option value='0' <?php if (!isset($config['system']['dhcpbackup']) || ($config['system']['dhcpbackup'] == 0)) echo "selected='selected'"; ?>><?=gettext("Disable"); ?></option>
|
||||
<?php for ($x=1; $x<=24; $x++) { ?>
|
||||
<option value='<?= $x ?>' <?php if ($config['system']['dhcpbackup'] == $x) echo "selected='selected'"; ?>><?= $x ?> <?=gettext("hour"); ?><?php if ($x>1) echo "s"; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("This will periodically backup the DHCP leases data so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?>
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("State Killing on Gateway Failure"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="kill_states" type="checkbox" id="kill_states" value="yes" <?php if ($pconfig['kill_states']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Skip rules when gateway is down"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="skip_rules_gw_down" type="checkbox" id="skip_rules_gw_down" value="yes" <?php if ($pconfig['skip_rules_gw_down']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("By default, when a rule has a specific gateway set, and this gateway is down, ".
|
||||
"rule is created and traffic is sent to default gateway.This option overrides that behavior ".
|
||||
"and the rule is not created when gateway is down"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Enable debugging messages of gateway monitoring daemon"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="apinger_debug" type="checkbox" id="apinger_debug" value="yes" <?php if ($pconfig['apinger_debug']) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("By default, gateway monitoring does not log its error messages, ".
|
||||
"by toggling this setting the daemon would enable logging its messages to syslog."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("RAM Disk Settings (Reboot to Apply Changes)"); ?></td>
|
||||
</tr>
|
||||
<?php if ($g['platform'] == "pfSense"): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Use RAM Disks"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="use_mfs_tmpvar" type="checkbox" id="use_mfs_tmpvar" value="yes" <?php if ($pconfig['use_mfs_tmpvar']) echo "checked=\"checked\""; ?> onclick="tmpvar_checked(this)" />
|
||||
<strong><?=gettext("Use memory file system for /tmp and /var"); ?></strong><br />
|
||||
<?=gettext("Set this if you wish to use /tmp and /var as RAM disks (memory file system disks) on a full install " .
|
||||
"rather than use the hard disk. Setting this will cause the data in /tmp and /var to be lost at reboot, including log data. RRD and DHCP Leases will be retained."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("/tmp RAM Disk Size"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="use_mfs_tmp_size" id="use_mfs_tmp_size" value="<?php if ($pconfig['use_mfs_tmp_size'] <> "") echo $pconfig['use_mfs_tmp_size']; ?>" class="formfld unknown" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> /> MB
|
||||
<br />
|
||||
<?=gettext("Set the size, in MB, for the /tmp RAM disk. " .
|
||||
"Leave blank for 40MB. Do not set lower than 40."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("/var RAM Disk Size"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="use_mfs_var_size" id="use_mfs_var_size" value="<?php if ($pconfig['use_mfs_var_size'] <> "") echo $pconfig['use_mfs_var_size']; ?>" class="formfld unknown" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> /> MB
|
||||
<br />
|
||||
<?=gettext("Set the size, in MB, for the /var RAM disk. " .
|
||||
"Leave blank for 60MB. Do not set lower than 60."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Periodic RRD Backup");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?=gettext("Frequency:");?>
|
||||
<select name="rrdbackup" id="rrdbackup" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> >
|
||||
<option value='0' <?php if (!isset($config['system']['rrdbackup']) || ($config['system']['rrdbackup'] == 0)) echo "selected='selected'"; ?>><?=gettext("Disable"); ?></option>
|
||||
<?php for ($x=1; $x<=24; $x++) { ?>
|
||||
<option value='<?= $x ?>' <?php if ($config['system']['rrdbackup'] == $x) echo "selected='selected'"; ?>><?= $x ?> <?=gettext("hour"); ?><?php if ($x>1) echo "s"; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("This will periodically backup the RRD data so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?>
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Periodic DHCP Leases Backup");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?=gettext("Frequency:");?>
|
||||
<select name="dhcpbackup" id="dhcpbackup" <?php if (($g['platform'] == "pfSense") && ($pconfig['use_mfs_tmpvar'] == false)) echo "disabled=\"disabled\""; ?> >
|
||||
<option value='0' <?php if (!isset($config['system']['dhcpbackup']) || ($config['system']['dhcpbackup'] == 0)) echo "selected='selected'"; ?>><?=gettext("Disable"); ?></option>
|
||||
<?php for ($x=1; $x<=24; $x++) { ?>
|
||||
<option value='<?= $x ?>' <?php if ($config['system']['dhcpbackup'] == $x) echo "selected='selected'"; ?>><?= $x ?> <?=gettext("hour"); ?><?php if ($x>1) echo "s"; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("This will periodically backup the DHCP leases data so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?>
|
||||
<br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php if($g['platform'] == "pfSenseDISABLED"): ?>
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Hardware Settings"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Hardware Settings"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hard disk standby time "); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="harddiskstandby" class="formselect">
|
||||
<?php
|
||||
## Values from ATA-2 http://www.t13.org/project/d0948r3-ATA-2.pdf (Page 66)
|
||||
$sbvals = explode(" ", "0.5,6 1,12 2,24 3,36 4,48 5,60 7.5,90 10,120 15,180 20,240 30,241 60,242");
|
||||
?>
|
||||
<option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected="selected"');?>><?=gettext("Always on"); ?></option>
|
||||
<?php
|
||||
foreach ($sbvals as $sbval):
|
||||
list($min,$val) = explode(",", $sbval);
|
||||
?>
|
||||
<option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected="selected"');?>><?=$min;?> <?=gettext("minutes"); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("Puts the hard disk into standby mode when the selected amount of time after the last ".
|
||||
"access has elapsed."); ?> <em><?=gettext("Do not set this for CF cards."); ?></em>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hard disk standby time "); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name="harddiskstandby" class="formselect">
|
||||
<?php
|
||||
## Values from ATA-2 http://www.t13.org/project/d0948r3-ATA-2.pdf (Page 66)
|
||||
$sbvals = explode(" ", "0.5,6 1,12 2,24 3,36 4,48 5,60 7.5,90 10,120 15,180 20,240 30,241 60,242");
|
||||
?>
|
||||
<option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected="selected"');?>><?=gettext("Always on"); ?></option>
|
||||
<?php
|
||||
foreach ($sbvals as $sbval):
|
||||
list($min,$val) = explode(",", $sbval);
|
||||
?>
|
||||
<option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected="selected"');?>><?=$min;?> <?=gettext("minutes"); ?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br />
|
||||
<?=gettext("Puts the hard disk into standby mode when the selected amount of time after the last ".
|
||||
"access has elapsed."); ?> <em><?=gettext("Do not set this for CF cards."); ?></em>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Package settings"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Package settings"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Package signature"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="pkg_nochecksig" type="checkbox" id="pkg_nochecksig" value="yes" <?php if ($pconfig['pkg_nochecksig']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Do NOT check package signature"); ?></strong><br />
|
||||
<?=gettext("Enable this option to allow pfSense to install any package without checking its signature."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Package signature"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="pkg_nochecksig" type="checkbox" id="pkg_nochecksig" value="yes" <?php if ($pconfig['pkg_nochecksig']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Do NOT check package signature"); ?></strong><br />
|
||||
<?=gettext("Enable this option to allow pfSense to install any package without checking its signature."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@ -161,17 +161,17 @@ include("head.inc");
|
||||
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
|
||||
function enable_change(enable_over) {
|
||||
if (document.iform.ipv6nat_enable.checked || enable_over)
|
||||
document.iform.ipv6nat_ipaddr.disabled = 0;
|
||||
else
|
||||
document.iform.ipv6nat_ipaddr.disabled = 1;
|
||||
if (document.iform.ipv6nat_enable.checked || enable_over)
|
||||
document.iform.ipv6nat_ipaddr.disabled = 0;
|
||||
else
|
||||
document.iform.ipv6nat_ipaddr.disabled = 1;
|
||||
}
|
||||
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
@ -179,160 +179,160 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_network.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("IPv6 Options"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Allow IPv6"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="ipv6allow" type="checkbox" id="ipv6allow" value="yes" <?php if ($pconfig['ipv6allow']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
|
||||
<strong><?=gettext("Allow IPv6"); ?></strong><br />
|
||||
<?=gettext("All IPv6 traffic will be blocked by the firewall unless this box is checked."); ?><br />
|
||||
<?=gettext("NOTE: This does not disable any IPv6 features on the firewall, it only blocks traffic."); ?><br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 over IPv4 Tunneling"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="ipv6nat_enable" type="checkbox" id="ipv6nat_enable" value="yes" <?php if ($pconfig['ipv6nat_enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
|
||||
<strong><?=gettext("Enable IPv4 NAT encapsulation of IPv6 packets"); ?></strong><br />
|
||||
<?=gettext("This provides an RFC 2893 compatibility mechanism ".
|
||||
"that can be used to tunneling IPv6 packets over IPv4 ".
|
||||
"routing infrastructures. If enabled, don't forget to ".
|
||||
"add a firewall rule to permit IPv6 packets."); ?><br />
|
||||
<br />
|
||||
<?=gettext("IP address"); ?> :
|
||||
<input name="ipv6nat_ipaddr" type="text" class="formfld unknown" id="ipv6nat_ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipv6nat_ipaddr']);?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Prefer IPv4 over IPv6"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="prefer_ipv4" type="checkbox" id="prefer_ipv4" value="yes" <?php if ($pconfig['prefer_ipv4']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Prefer to use IPv4 even if IPv6 is available"); ?></strong><br />
|
||||
<?=gettext("By default, if a hostname resolves IPv6 and IPv4 addresses ".
|
||||
"IPv6 will be used, if you check this option, IPv4 will be " .
|
||||
"used instead of IPv6."); ?><br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_network.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("IPv6 Options"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Allow IPv6"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="ipv6allow" type="checkbox" id="ipv6allow" value="yes" <?php if ($pconfig['ipv6allow']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
|
||||
<strong><?=gettext("Allow IPv6"); ?></strong><br />
|
||||
<?=gettext("All IPv6 traffic will be blocked by the firewall unless this box is checked."); ?><br />
|
||||
<?=gettext("NOTE: This does not disable any IPv6 features on the firewall, it only blocks traffic."); ?><br />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IPv6 over IPv4 Tunneling"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="ipv6nat_enable" type="checkbox" id="ipv6nat_enable" value="yes" <?php if ($pconfig['ipv6nat_enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
|
||||
<strong><?=gettext("Enable IPv4 NAT encapsulation of IPv6 packets"); ?></strong><br />
|
||||
<?=gettext("This provides an RFC 2893 compatibility mechanism ".
|
||||
"that can be used to tunneling IPv6 packets over IPv4 ".
|
||||
"routing infrastructures. If enabled, don't forget to ".
|
||||
"add a firewall rule to permit IPv6 packets."); ?><br />
|
||||
<br />
|
||||
<?=gettext("IP address"); ?> :
|
||||
<input name="ipv6nat_ipaddr" type="text" class="formfld unknown" id="ipv6nat_ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipv6nat_ipaddr']);?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Prefer IPv4 over IPv6"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="prefer_ipv4" type="checkbox" id="prefer_ipv4" value="yes" <?php if ($pconfig['prefer_ipv4']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Prefer to use IPv4 even if IPv6 is available"); ?></strong><br />
|
||||
<?=gettext("By default, if a hostname resolves IPv6 and IPv4 addresses ".
|
||||
"IPv6 will be used, if you check this option, IPv4 will be " .
|
||||
"used instead of IPv6."); ?><br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Network Interfaces"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Device polling"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="polling_enable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['polling_enable']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable device polling"); ?></strong><br />
|
||||
<?php printf(gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This prevents your webConfigurator, SSH, etc. from being inaccessible due to interrupt floods when under extreme load. Generally this is not recommended. Not all NICs support polling; see the %s homepage for a list of supported cards."), $g['product_name']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hardware Checksum Offloading"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablechecksumoffloading" type="checkbox" id="disablechecksumoffloading" value="yes" <?php if (isset($config['system']['disablechecksumoffloading'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable hardware checksum offload"); ?></strong><br />
|
||||
<?=gettext("Checking this option will disable hardware checksum offloading. Checksum offloading is broken in some hardware, particularly some Realtek cards. Rarely, drivers may have problems with checksum offloading and some specific NICs."); ?>
|
||||
<br />
|
||||
<span class="red"><strong><?=gettext("Note:");?> </strong></span>
|
||||
<?=gettext("This will take effect after you reboot the machine or re-configure each interface.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hardware TCP Segmentation Offloading"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablesegmentationoffloading" type="checkbox" id="disablesegmentationoffloading" value="yes" <?php if (isset($config['system']['disablesegmentationoffloading'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable hardware TCP segmentation offload"); ?></strong><br />
|
||||
<?=gettext("Checking this option will disable hardware TCP segmentation offloading (TSO, TSO4, TSO6). This offloading is broken in some hardware drivers, and may impact performance with some specific NICs."); ?>
|
||||
<br />
|
||||
<span class="red"><strong><?=gettext("Note:");?> </strong></span>
|
||||
<?=gettext("This will take effect after you reboot the machine or re-configure each interface.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hardware Large Receive Offloading"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablelargereceiveoffloading" type="checkbox" id="disablelargereceiveoffloading" value="yes" <?php if (isset($config['system']['disablelargereceiveoffloading'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable hardware large receive offload"); ?></strong><br />
|
||||
<?=gettext("Checking this option will disable hardware large receive offloading (LRO). This offloading is broken in some hardware drivers, and may impact performance with some specific NICs."); ?>
|
||||
<br />
|
||||
<span class="red"><strong><?=gettext("Note:");?> </strong></span>
|
||||
<?=gettext("This will take effect after you reboot the machine or re-configure each interface.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("ARP Handling"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sharednet" type="checkbox" id="sharednet" value="yes" <?php if (isset($pconfig['sharednet'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Suppress ARP messages"); ?></strong><br />
|
||||
<?=gettext("This option will suppress ARP log messages when multiple interfaces reside on the same broadcast domain"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Network Interfaces"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Device polling"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="polling_enable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['polling_enable']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Enable device polling"); ?></strong><br />
|
||||
<?php printf(gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This prevents your webConfigurator, SSH, etc. from being inaccessible due to interrupt floods when under extreme load. Generally this is not recommended. Not all NICs support polling; see the %s homepage for a list of supported cards."), $g['product_name']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hardware Checksum Offloading"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablechecksumoffloading" type="checkbox" id="disablechecksumoffloading" value="yes" <?php if (isset($config['system']['disablechecksumoffloading'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable hardware checksum offload"); ?></strong><br />
|
||||
<?=gettext("Checking this option will disable hardware checksum offloading. Checksum offloading is broken in some hardware, particularly some Realtek cards. Rarely, drivers may have problems with checksum offloading and some specific NICs."); ?>
|
||||
<br />
|
||||
<span class="red"><strong><?=gettext("Note:");?> </strong></span>
|
||||
<?=gettext("This will take effect after you reboot the machine or re-configure each interface.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hardware TCP Segmentation Offloading"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablesegmentationoffloading" type="checkbox" id="disablesegmentationoffloading" value="yes" <?php if (isset($config['system']['disablesegmentationoffloading'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable hardware TCP segmentation offload"); ?></strong><br />
|
||||
<?=gettext("Checking this option will disable hardware TCP segmentation offloading (TSO, TSO4, TSO6). This offloading is broken in some hardware drivers, and may impact performance with some specific NICs."); ?>
|
||||
<br />
|
||||
<span class="red"><strong><?=gettext("Note:");?> </strong></span>
|
||||
<?=gettext("This will take effect after you reboot the machine or re-configure each interface.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Hardware Large Receive Offloading"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablelargereceiveoffloading" type="checkbox" id="disablelargereceiveoffloading" value="yes" <?php if (isset($config['system']['disablelargereceiveoffloading'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable hardware large receive offload"); ?></strong><br />
|
||||
<?=gettext("Checking this option will disable hardware large receive offloading (LRO). This offloading is broken in some hardware drivers, and may impact performance with some specific NICs."); ?>
|
||||
<br />
|
||||
<span class="red"><strong><?=gettext("Note:");?> </strong></span>
|
||||
<?=gettext("This will take effect after you reboot the machine or re-configure each interface.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("ARP Handling"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="sharednet" type="checkbox" id="sharednet" value="yes" <?php if (isset($pconfig['sharednet'])) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Suppress ARP messages"); ?></strong><br />
|
||||
<?=gettext("This option will suppress ARP log messages when multiple interfaces reside on the same broadcast domain"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
/*
|
||||
$version = get_freebsd_version();
|
||||
if($version == "8"):
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic">Flowtable support</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Enable Flowtable</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="flowtable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['flowtable']) echo "checked=\"checked\""; ?> />
|
||||
<strong>Enable flowtable support</strong><br />
|
||||
Enables infrastructure for caching flows as a means of accelerating L3 and L2 lookups
|
||||
as well as providing stateful load balancing when used with RADIX_MPATH.<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic">Flowtable support</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell">Enable Flowtable</td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="flowtable" type="checkbox" id="polling_enable" value="yes" <?php if ($pconfig['flowtable']) echo "checked=\"checked\""; ?> />
|
||||
<strong>Enable flowtable support</strong><br />
|
||||
Enables infrastructure for caching flows as a means of accelerating L3 and L2 lookups
|
||||
as well as providing stateful load balancing when used with RADIX_MPATH.<br />
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
*/
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%"><input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save");?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
@ -340,11 +340,11 @@ include("head.inc");
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
enable_change(false);
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -42,17 +42,17 @@ require_once("notices.inc");
|
||||
|
||||
// Growl
|
||||
$pconfig['disable_growl'] = isset($config['notifications']['growl']['disable']);
|
||||
if($config['notifications']['growl']['password'])
|
||||
if($config['notifications']['growl']['password'])
|
||||
$pconfig['password'] = $config['notifications']['growl']['password'];
|
||||
if($config['notifications']['growl']['ipaddress'])
|
||||
if($config['notifications']['growl']['ipaddress'])
|
||||
$pconfig['ipaddress'] = $config['notifications']['growl']['ipaddress'];
|
||||
|
||||
if($config['notifications']['growl']['notification_name'])
|
||||
if($config['notifications']['growl']['notification_name'])
|
||||
$pconfig['notification_name'] = $config['notifications']['growl']['notification_name'];
|
||||
else
|
||||
$pconfig['notification_name'] = "{$g['product_name']} growl alert";
|
||||
|
||||
if($config['notifications']['growl']['name'])
|
||||
|
||||
if($config['notifications']['growl']['name'])
|
||||
$pconfig['name'] = $config['notifications']['growl']['name'];
|
||||
else
|
||||
$pconfig['name'] = 'PHP-Growl';
|
||||
@ -93,7 +93,7 @@ if ($_POST) {
|
||||
|
||||
if ($_POST['apply']) {
|
||||
$retval = 0;
|
||||
system_setup_sysctl();
|
||||
system_setup_sysctl();
|
||||
$savemsg = get_std_save_message($retval);
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ if ($_POST) {
|
||||
}
|
||||
if ($_POST['test_growl'] == gettext("Test Growl")) {
|
||||
// Send test message via growl
|
||||
if($config['notifications']['growl']['ipaddress'] &&
|
||||
if($config['notifications']['growl']['ipaddress'] &&
|
||||
$config['notifications']['growl']['password'] = $_POST['password']) {
|
||||
unlink_if_exists($g['vardb_path'] . "/growlnotices_lastmsg.txt");
|
||||
register_via_growl();
|
||||
@ -167,204 +167,204 @@ include("head.inc");
|
||||
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<form action="system_advanced_notifications.php" method="post">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
</form>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_advanced_notifications.php" method="post" name="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<!-- GROWL -->
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Growl"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable Growl Notifications"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type='checkbox' name='disable_growl' value="yes" <?php if ($pconfig['disable_growl']) {?>checked="checked"<?php } ?> /><br />
|
||||
<?=gettext("Check this option to disable growl notifications but preserve the settings below."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Registration Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='name' value='<?php echo $pconfig['name']; ?>' /><br />
|
||||
<?=gettext("Enter the name to register with the Growl server (default: PHP-Growl)."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<!-- GROWL -->
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Growl"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable Growl Notifications"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type='checkbox' name='disable_growl' value="yes" <?php if ($pconfig['disable_growl']) {?>checked="checked"<?php } ?> /><br />
|
||||
<?=gettext("Check this option to disable growl notifications but preserve the settings below."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Registration Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='name' value='<?php echo $pconfig['name']; ?>' /><br />
|
||||
<?=gettext("Enter the name to register with the Growl server (default: PHP-Growl)."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='notification_name' value='<?php echo $pconfig['notification_name']; ?>' /><br />
|
||||
<?=sprintf(gettext("Enter a name for the Growl notifications (default: %s growl alert)."), $g['product_name']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IP Address"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='ipaddress' value='<?php echo $pconfig['ipaddress']; ?>' /><br />
|
||||
<?=gettext("This is the IP address that you would like to send growl notifications to."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Password"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='password' type='password' value='<?php echo $pconfig['password']; ?>' /><br />
|
||||
<?=gettext("Enter the password of the remote growl notification device."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type='submit' id='test_growl' name='test_growl' value='<?=gettext("Test Growl"); ?>' class="btn btn-default" />
|
||||
<br /><?= gettext("NOTE: A test notification will be sent even if the service is marked as disabled.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<!-- SMTP -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("SMTP E-Mail"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable SMTP Notifications"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type='checkbox' name='disable_smtp' value="yes" <?php if ($pconfig['disable_smtp']) {?>checked="checked"<?php } ?> /><br />
|
||||
<?=gettext("Check this option to disable SMTP notifications but preserve the settings below. Some other mechanisms, such as packages, may need these settings in place to function."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("E-Mail server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpipaddress' value='<?php echo $pconfig['smtpipaddress']; ?>' /><br />
|
||||
<?=gettext("This is the FQDN or IP address of the SMTP E-Mail server to which notifications will be sent."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("SMTP Port of E-Mail server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpport' value='<?php echo $pconfig['smtpport']; ?>' /><br />
|
||||
<?=gettext("This is the port of the SMTP E-Mail server, typically 25, 587 (submission) or 465 (smtps)"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Secure SMTP Connection"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type='checkbox' id='smtpssl' name='smtpssl' <?php if (isset($pconfig['smtpssl'])) echo "checked=\"checked\""; ?> />Enable SMTP over SSL/TLS<br />
|
||||
<input type='checkbox' id='smtptls' name='smtptls' <?php if (isset($pconfig['smtptls'])) echo "checked=\"checked\""; ?> />Enable STARTTLS<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("From e-mail address"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpfromaddress' type='text' value='<?php echo $pconfig['smtpfromaddress']; ?>' /><br />
|
||||
<?=gettext("This is the e-mail address that will appear in the from field."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail address"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpnotifyemailaddress' type='text' value='<?php echo $pconfig['smtpnotifyemailaddress']; ?>' /><br />
|
||||
<?=gettext("Enter the e-mail address that you would like email notifications sent to."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail auth username (optional)"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpusername' type='text' value='<?php echo $pconfig['smtpusername']; ?>' /><br />
|
||||
<?=gettext("Enter the e-mail address username for SMTP authentication."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail auth password"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtppassword' type='password' value='<?php echo $pconfig['smtppassword']; ?>' /><br />
|
||||
<?=gettext("Enter the e-mail address password for SMTP authentication."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type='submit' id='test_smtp' name='test_smtp' value='<?=gettext("Test SMTP"); ?>' class="btn btn-default" />
|
||||
<br /><?= gettext("NOTE: A test message will be sent even if the service is marked as disabled.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='notification_name' value='<?php echo $pconfig['notification_name']; ?>' /><br />
|
||||
<?=sprintf(gettext("Enter a name for the Growl notifications (default: %s growl alert)."), $g['product_name']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("IP Address"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='ipaddress' value='<?php echo $pconfig['ipaddress']; ?>' /><br />
|
||||
<?=gettext("This is the IP address that you would like to send growl notifications to."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Password"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='password' type='password' value='<?php echo $pconfig['password']; ?>' /><br />
|
||||
<?=gettext("Enter the password of the remote growl notification device."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type='submit' id='test_growl' name='test_growl' value='<?=gettext("Test Growl"); ?>' class="btn btn-default" />
|
||||
<br /><?= gettext("NOTE: A test notification will be sent even if the service is marked as disabled.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<!-- SMTP -->
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("SMTP E-Mail"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Disable SMTP Notifications"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type='checkbox' name='disable_smtp' value="yes" <?php if ($pconfig['disable_smtp']) {?>checked="checked"<?php } ?> /><br />
|
||||
<?=gettext("Check this option to disable SMTP notifications but preserve the settings below. Some other mechanisms, such as packages, may need these settings in place to function."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("E-Mail server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpipaddress' value='<?php echo $pconfig['smtpipaddress']; ?>' /><br />
|
||||
<?=gettext("This is the FQDN or IP address of the SMTP E-Mail server to which notifications will be sent."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("SMTP Port of E-Mail server"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpport' value='<?php echo $pconfig['smtpport']; ?>' /><br />
|
||||
<?=gettext("This is the port of the SMTP E-Mail server, typically 25, 587 (submission) or 465 (smtps)"); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Secure SMTP Connection"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type='checkbox' id='smtpssl' name='smtpssl' <?php if (isset($pconfig['smtpssl'])) echo "checked=\"checked\""; ?> />Enable SMTP over SSL/TLS<br />
|
||||
<input type='checkbox' id='smtptls' name='smtptls' <?php if (isset($pconfig['smtptls'])) echo "checked=\"checked\""; ?> />Enable STARTTLS<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("From e-mail address"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpfromaddress' type='text' value='<?php echo $pconfig['smtpfromaddress']; ?>' /><br />
|
||||
<?=gettext("This is the e-mail address that will appear in the from field."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail address"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpnotifyemailaddress' type='text' value='<?php echo $pconfig['smtpnotifyemailaddress']; ?>' /><br />
|
||||
<?=gettext("Enter the e-mail address that you would like email notifications sent to."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail auth username (optional)"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtpusername' type='text' value='<?php echo $pconfig['smtpusername']; ?>' /><br />
|
||||
<?=gettext("Enter the e-mail address username for SMTP authentication."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Notification E-Mail auth password"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name='smtppassword' type='password' value='<?php echo $pconfig['smtppassword']; ?>' /><br />
|
||||
<?=gettext("Enter the e-mail address password for SMTP authentication."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type='submit' id='test_smtp' name='test_smtp' value='<?=gettext("Test SMTP"); ?>' class="btn btn-default" />
|
||||
<br /><?= gettext("NOTE: A test message will be sent even if the service is marked as disabled.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<!-- System Sounds -->
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("System Sounds"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Startup/Shutdown Sound"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablebeep" type="checkbox" id="disablebeep" value="yes" <?php if ($pconfig['disablebeep']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable the startup/shutdown beep"); ?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("When this is checked, startup and shutdown sounds will no longer play."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type='submit' id='Submit' name='Submit' class="btn btn-primary" value='<?=gettext("Save"); ?>' />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<!-- System Sounds -->
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("System Sounds"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Startup/Shutdown Sound"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablebeep" type="checkbox" id="disablebeep" value="yes" <?php if ($pconfig['disablebeep']) echo "checked=\"checked\""; ?> />
|
||||
<strong><?=gettext("Disable the startup/shutdown beep"); ?></strong>
|
||||
<br />
|
||||
<span class="vexpl"><?=gettext("When this is checked, startup and shutdown sounds will no longer play."); ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<input type='submit' id='Submit' name='Submit' class="btn btn-primary" value='<?=gettext("Save"); ?>' />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
jQuery(document).ready(function() {
|
||||
@ -384,4 +384,3 @@ include("head.inc");
|
||||
</script>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ if ($_POST) {
|
||||
|
||||
if ($_POST['apply']) {
|
||||
$retval = 0;
|
||||
system_setup_sysctl();
|
||||
system_setup_sysctl();
|
||||
$savemsg = get_std_save_message($retval);
|
||||
clear_subsystem_dirty('sysctl');
|
||||
}
|
||||
@ -132,140 +132,140 @@ include("head.inc");
|
||||
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<form action="system_advanced_sysctl.php" method="post">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if (is_subsystem_dirty('sysctl') && ($act != "edit" ))
|
||||
print_info_box_np(gettext("The firewall tunables have changed. You must apply the configuration to take affect."));
|
||||
?>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if (is_subsystem_dirty('sysctl') && ($act != "edit" ))
|
||||
print_info_box_np(gettext("The firewall tunables have changed. You must apply the configuration to take affect."));
|
||||
?>
|
||||
</form>
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
<? include('system_advanced_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<?php if ($act != "edit" ): ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%"><?=gettext("Tunable Name"); ?></th>
|
||||
<th width="60%"><?=gettext("Description"); ?></th>
|
||||
<th width="20%" colspan="2"><?=gettext("Value"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php $i = 0; foreach ($config['sysctl']['item'] as $tunable): ?>
|
||||
|
||||
<tr>
|
||||
<td class="listlr" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';">
|
||||
<?php echo $tunable['tunable']; ?>
|
||||
</td>
|
||||
<td class="listr" align="left" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';">
|
||||
<?php echo $tunable['descr']; ?>
|
||||
</td>
|
||||
<td class="listr" align="left" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';">
|
||||
<?php echo $tunable['value']; ?>
|
||||
<?php
|
||||
if($tunable['value'] == "default")
|
||||
echo "(" . get_default_sysctl_value($tunable['tunable']) . ")";
|
||||
?>
|
||||
</td>
|
||||
<td class="list nowrap">
|
||||
<table border="0" cellspacing="0" cellpadding="1" summary="edit delete">
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<a href="system_advanced_sysctl.php?act=edit&id=<?=$i;?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-pencil"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<a href="system_advanced_sysctl.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this entry?"); ?>')" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<a href="system_advanced_sysctl.php?act=edit" class="btn btn-primary pull-right">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="20%"><?=gettext("Tunable Name"); ?></th>
|
||||
<th width="60%"><?=gettext("Description"); ?></th>
|
||||
<th width="20%" colspan="2"><?=gettext("Value"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php $i = 0; foreach ($config['sysctl']['item'] as $tunable): ?>
|
||||
|
||||
<tr>
|
||||
<td class="listlr" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';">
|
||||
<?php echo $tunable['tunable']; ?>
|
||||
</td>
|
||||
<td class="listr" align="left" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';">
|
||||
<?php echo $tunable['descr']; ?>
|
||||
</td>
|
||||
<td class="listr" align="left" ondblclick="document.location='system_advanced_sysctl.php?act=edit&id=<?=$i;?>';">
|
||||
<?php echo $tunable['value']; ?>
|
||||
<?php
|
||||
if($tunable['value'] == "default")
|
||||
echo "(" . get_default_sysctl_value($tunable['tunable']) . ")";
|
||||
?>
|
||||
</td>
|
||||
<td class="list nowrap">
|
||||
<table border="0" cellspacing="0" cellpadding="1" summary="edit delete">
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
<a href="system_advanced_sysctl.php?act=edit&id=<?=$i;?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-pencil"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<a href="system_advanced_sysctl.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this entry?"); ?>')" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<a href="system_advanced_sysctl.php?act=edit" class="btn btn-primary pull-right">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<form action="system_advanced_sysctl.php" method="post" name="iform" id="iform">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="edit system tunable" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Edit system tunable"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Tunable"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input size="65" name="tunable" value="<?php echo $pconfig['tunable']; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Description"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="descr"><?php echo $pconfig['descr']; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Value"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input size="65" name="value" value="<?php echo $pconfig['value']; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
|
||||
<input type="button" class="btn btn-default" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
||||
|
||||
<?php if (isset($id) && $a_tunable[$id]): ?>
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
|
||||
<form action="system_advanced_sysctl.php" method="post" name="iform" id="iform">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="edit system tunable" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Edit system tunable"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Tunable"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input size="65" name="tunable" value="<?php echo $pconfig['tunable']; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Description"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="descr"><?php echo $pconfig['descr']; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Value"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input size="65" name="value" value="<?php echo $pconfig['value']; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
|
||||
<input type="button" class="btn btn-default" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
||||
|
||||
<?php if (isset($id) && $a_tunable[$id]): ?>
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
<?php
|
||||
$active_tab = isset($active_tab) ? $active_tab : $_SERVER['PHP_SELF'];
|
||||
$tab_array = array();
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("Admin Access"), $active_tab == "/system_advanced_admin.php", "system_advanced_admin.php");
|
||||
$tab_array[] = array(gettext("Firewall / NAT"), $active_tab == "/system_advanced_firewall.php", "system_advanced_firewall.php");
|
||||
$tab_array[] = array(gettext("Networking"), $active_tab == "/system_advanced_network.php", "system_advanced_network.php");
|
||||
@ -13,4 +13,4 @@
|
||||
$tab_array[] = array(gettext("System Tunables"), $active_tab == "/system_advanced_sysctl.php", "system_advanced_sysctl.php");
|
||||
$tab_array[] = array(gettext("Notifications"), $active_tab == "/system_advanced_notifications.php", "system_advanced_notifications.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
?>
|
||||
|
||||
@ -330,7 +330,7 @@ function server_typechange(typ) {
|
||||
typ = document.getElementById("type").options[idx].value;
|
||||
}
|
||||
|
||||
switch (typ) {
|
||||
switch (typ) {
|
||||
case "ldap":
|
||||
document.getElementById("ldap").style.display="";
|
||||
document.getElementById("radius").style.display="none";
|
||||
@ -443,19 +443,19 @@ function select_clicked() {
|
||||
<?php include("fbegin.inc");?>
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php
|
||||
if ($input_errors)
|
||||
print_input_errors($input_errors);
|
||||
if ($savemsg)
|
||||
print_info_box($savemsg);
|
||||
?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php
|
||||
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("Users"), false, "system_usermanager.php");
|
||||
$tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php");
|
||||
@ -463,13 +463,13 @@ function select_clicked() {
|
||||
$tab_array[] = array(gettext("Servers"), true, "system_authservers.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
|
||||
<?php if ($act == "new" || $act == "edit" || $input_errors): ?>
|
||||
<form id="iform" name="iform" action="system_authservers.php" method="post">
|
||||
<form id="iform" name="iform" action="system_authservers.php" method="post">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<table class="table table-striped table-sort">
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
@ -502,17 +502,17 @@ function select_clicked() {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="table table-striped table-sort" id="ldap" style="display:none" summary="">
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic"><?=gettext("LDAP Server Settings");?></th>
|
||||
<th colspan="2" class="listtopic"><?=gettext("LDAP Server Settings");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Hostname or IP address");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
@ -603,7 +603,7 @@ function select_clicked() {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -614,18 +614,18 @@ function select_clicked() {
|
||||
<td valign="top"><?=gettext("Containers:");?> </td>
|
||||
<td>
|
||||
<ul class="list-inline">
|
||||
<li><input name="ldapauthcontainers" type="text" class="formfld unknown" id="ldapauthcontainers" size="40" value="<?=htmlspecialchars($pconfig['ldap_authcn']);?>"/></li>
|
||||
<li><input type="button" onclick="select_clicked();" class="btn btn-default" value="<?=gettext("Select");?>" /></li>
|
||||
<li><input name="ldapauthcontainers" type="text" class="formfld unknown" id="ldapauthcontainers" size="40" value="<?=htmlspecialchars($pconfig['ldap_authcn']);?>"/></li>
|
||||
<li><input type="button" onclick="select_clicked();" class="btn btn-default" value="<?=gettext("Select");?>" /></li>
|
||||
</ul>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<td colspan="2">
|
||||
<br /><?=gettext("Note: Semi-Colon separated. This will be prepended to the search base dn above or you can specify full container path containing a dc= component.");?>
|
||||
<br /><?=gettext("Example:");?> CN=Users;DC=example,DC=com
|
||||
<br /><?=gettext("Example:");?> OU=Staff;OU=Freelancers
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@ -639,7 +639,7 @@ function select_clicked() {
|
||||
<input name="ldap_extended_enabled" type="checkbox" id="ldap_extended_enabled" value="no" <?php if ($pconfig['ldap_extended_enabled']) echo "checked=\"checked\""; ?> />
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<input name="ldap_extended_query" type="text" class="formfld unknown" id="ldap_extended_query" size="40" value="<?=htmlspecialchars($pconfig['ldap_extended_query']);?>"/>
|
||||
<br /><?=gettext("Example:");?> &(objectClass=inetOrgPerson)(mail=*@example.com)
|
||||
</td>
|
||||
@ -745,11 +745,11 @@ function select_clicked() {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="table table-striped table-sort" id="radius" style="display:none" summary="">
|
||||
<tr>
|
||||
<td colspan="2" class="list" height="12"></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("Radius Server Settings");?></td>
|
||||
</tr>
|
||||
@ -818,8 +818,8 @@ function select_clicked() {
|
||||
|
||||
<?php else: ?>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="25%" class="listhdrr"><?=gettext("Server Name");?></th>
|
||||
@ -829,7 +829,7 @@ function select_clicked() {
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<p>
|
||||
@ -874,7 +874,7 @@ function select_clicked() {
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
server_typechange('<?=htmlspecialchars($pconfig['type']);?>');
|
||||
@ -892,4 +892,4 @@ radius_srvcschange();
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -310,7 +310,7 @@ $main_buttons = array(
|
||||
?>
|
||||
|
||||
<body onload="<?= $jsevents["body"]["onload"] ?>">
|
||||
|
||||
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
@ -341,122 +341,122 @@ function method_change() {
|
||||
</script>
|
||||
|
||||
<!-- row -->
|
||||
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
|
||||
<? include('system_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<?php
|
||||
|
||||
// Load valid country codes
|
||||
$dn_cc = array();
|
||||
if (file_exists("/usr/local/etc/ca_countries")){
|
||||
$dn_cc_file=file("/usr/local/etc/ca_countries");
|
||||
foreach($dn_cc_file as $line)
|
||||
if (preg_match('/^(\S*)\s(.*)$/', $line, $matches))
|
||||
array_push($dn_cc, $matches[1]);
|
||||
}
|
||||
?>
|
||||
<?php if ($act == "new" || $act == "edit" || $act == gettext("Save") || $input_errors): ?>
|
||||
|
||||
<form action="system_camanager.php" method="post" name="iform" id="iform" class="table table-striped">
|
||||
|
||||
<?php if ($act == "edit"): ?>
|
||||
<input type="hidden" name="edit" value="edit" id="edit" />
|
||||
|
||||
// Load valid country codes
|
||||
$dn_cc = array();
|
||||
if (file_exists("/usr/local/etc/ca_countries")){
|
||||
$dn_cc_file=file("/usr/local/etc/ca_countries");
|
||||
foreach($dn_cc_file as $line)
|
||||
if (preg_match('/^(\S*)\s(.*)$/', $line, $matches))
|
||||
array_push($dn_cc, $matches[1]);
|
||||
}
|
||||
?>
|
||||
<?php if ($act == "new" || $act == "edit" || $act == gettext("Save") || $input_errors): ?>
|
||||
|
||||
<form action="system_camanager.php" method="post" name="iform" id="iform" class="table table-striped">
|
||||
|
||||
<?php if ($act == "edit"): ?>
|
||||
<input type="hidden" name="edit" value="edit" id="edit" />
|
||||
<input type="hidden" name="id" value="<?php echo htmlspecialchars($id); ?>" id="id" />
|
||||
<input type="hidden" name="refid" value="<?php echo $pconfig['refid']; ?>" id="refid" />
|
||||
<?php endif; ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (!isset($id) || $act == "edit"): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Method");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='method' id='method' class="formselect" onchange='method_change()'>
|
||||
<?php
|
||||
foreach($ca_methods as $method => $desc):
|
||||
$selected = "";
|
||||
if ($pconfig['method'] == $method)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$method;?>"<?=$selected;?>><?=$desc;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing" summary="existing" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Authority");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (!isset($id) || $act == "edit"): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Method");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='method' id='method' class="formselect" onchange='method_change()'>
|
||||
<?php
|
||||
foreach($ca_methods as $method => $desc):
|
||||
$selected = "";
|
||||
if ($pconfig['method'] == $method)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$method;?>"<?=$selected;?>><?=$desc;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing" summary="existing" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Authority");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="cert" id="cert" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['cert']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a certificate in X.509 PEM format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate Private Key");?><br /><?=gettext("(optional)");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="key" id="key" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['key']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste the private key for the above certificate here. This is optional in most cases, but required if you need to generate a Certificate Revocation List (CRL).");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (!isset($id) || $act == "edit"): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Serial for next certificate");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="serial" type="text" class="formfld unknown" id="serial" size="20" value="<?=htmlspecialchars($pconfig['serial']);?>"/>
|
||||
<br /><?=gettext("Enter a decimal number to be used as the serial number for the next certificate to be created using this CA.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="cert" id="cert" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['cert']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a certificate in X.509 PEM format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate Private Key");?><br /><?=gettext("(optional)");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="key" id="key" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['key']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste the private key for the above certificate here. This is optional in most cases, but required if you need to generate a Certificate Revocation List (CRL).");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (!isset($id) || $act == "edit"): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Serial for next certificate");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="serial" type="text" class="formfld unknown" id="serial" size="20" value="<?=htmlspecialchars($pconfig['serial']);?>"/>
|
||||
<br /><?=gettext("Enter a decimal number to be used as the serial number for the next certificate to be created using this CA.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal" summary="internal" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Authority");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr id='intermediate'>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Signing Certificate Authority");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal" summary="internal" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Authority");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr id='intermediate'>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Signing Certificate Authority");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' id='caref' class="formselect" onchange='internalca_change()'>
|
||||
<?php
|
||||
foreach( $a_ca as $ca):
|
||||
@ -469,228 +469,228 @@ function method_change() {
|
||||
<option value="<?=$ca['refid'];?>"<?=$selected;?>><?=$ca['descr'];?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Key length");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='keylen' id='keylen' class="formselect">
|
||||
<?php
|
||||
foreach( $ca_keylens as $len):
|
||||
$selected = "";
|
||||
if ($pconfig['keylen'] == $len)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$len;?>"<?=$selected;?>><?=$len;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?=gettext("bits");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Digest Algorithm");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='digest_alg' id='digest_alg' class="formselect">
|
||||
<?php
|
||||
foreach( $openssl_digest_algs as $digest_alg):
|
||||
$selected = "";
|
||||
if ($pconfig['digest_alg'] == $digest_alg)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$digest_alg;?>"<?=$selected;?>><?=strtoupper($digest_alg);?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br /><?= gettext("NOTE: It is recommended to use an algorithm stronger than SHA1 when possible.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/>
|
||||
<?=gettext("days");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Distinguished name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<table border="0" cellspacing="0" cellpadding="2" summary="name">
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Country Code");?> : </td>
|
||||
<td align="left">
|
||||
<select name='dn_country' class="formselect">
|
||||
<?php
|
||||
foreach( $dn_cc as $cc){
|
||||
$selected = "";
|
||||
if ($pconfig['dn_country'] == $cc)
|
||||
$selected = " selected=\"selected\"";
|
||||
print "<option value=\"$cc\"$selected>$cc</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("State or Province");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_state" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_state']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("Texas");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("City");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_city" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_city']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("Austin");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Organization");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_organization" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_organization']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("My Company Inc.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Email Address");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_email" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_email']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("admin@mycompany.com");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Common Name");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_commonname" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_commonname']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("internal-ca");?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="save" class="table">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="save" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
|
||||
<?php if (isset($id) && $a_ca[$id]): ?>
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="18%" class="listhdrr"><?=gettext("Name");?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Internal");?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Issuer");?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Certificates");?></th>
|
||||
<th width="40%" class="listhdrr"><?=gettext("Distinguished Name");?></th>
|
||||
<th width="12%" class="list"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach($a_ca as $ca):
|
||||
$name = htmlspecialchars($ca['descr']);
|
||||
$subj = cert_get_subject($ca['crt']);
|
||||
$issuer = cert_get_issuer($ca['crt']);
|
||||
list($startdate, $enddate) = cert_get_dates($ca['crt']);
|
||||
if($subj == $issuer)
|
||||
$issuer_name = "<em>" . gettext("self-signed") . "</em>";
|
||||
else
|
||||
$issuer_name = "<em>" . gettext("external") . "</em>";
|
||||
$subj = htmlspecialchars($subj);
|
||||
$issuer = htmlspecialchars($issuer);
|
||||
$certcount = 0;
|
||||
|
||||
$issuer_ca = lookup_ca($ca['caref']);
|
||||
if ($issuer_ca)
|
||||
$issuer_name = $issuer_ca['descr'];
|
||||
|
||||
// TODO : Need gray certificate icon
|
||||
|
||||
if($ca['prv']) {
|
||||
$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
$internal = "YES";
|
||||
|
||||
} else {
|
||||
$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
$internal = "NO";
|
||||
}
|
||||
foreach ($a_cert as $cert)
|
||||
if ($cert['caref'] == $ca['refid'])
|
||||
$certcount++;
|
||||
foreach ($a_ca as $cert)
|
||||
if ($cert['caref'] == $ca['refid'])
|
||||
$certcount++;
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?=$name;?>
|
||||
</td>
|
||||
<td class="listr"><?=$internal;?> </td>
|
||||
<td class="listr"><?=$issuer_name;?> </td>
|
||||
<td class="listr"><?=$certcount;?> </td>
|
||||
<td class="listr"><?=$subj;?><br />
|
||||
<table width="100%" style="font-size: 9px" summary="valid">
|
||||
<tr>
|
||||
<td width="10%"> </td>
|
||||
<td width="20%"><?=gettext("Valid From")?>:</td>
|
||||
<td width="70%"><?= $startdate ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><?=gettext("Valid Until")?>:</td>
|
||||
<td><?= $enddate ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
<a href="system_camanager.php?act=edit&id=<?=$i;?>" title="<?=gettext("edit CA");?>" alt="<?=gettext("edit CA");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
|
||||
<a href="system_camanager.php?act=exp&id=<?=$i;?>" title="<?=gettext("export CA cert");?>" alt="<?=gettext("export CA cert");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-download"></span></a>
|
||||
<?php if ($ca['prv']): ?>
|
||||
<a href="system_camanager.php?act=expkey&id=<?=$i;?>" title="<?=gettext("export CA private key");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-download"></span></a>
|
||||
<?php endif; ?>
|
||||
<a href="system_camanager.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Authority and its CRLs, and unreference any associated certificates?");?>')" title="<?=gettext("delete ca");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Key length");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='keylen' id='keylen' class="formselect">
|
||||
<?php
|
||||
foreach( $ca_keylens as $len):
|
||||
$selected = "";
|
||||
if ($pconfig['keylen'] == $len)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$len;?>"<?=$selected;?>><?=$len;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<?=gettext("bits");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Digest Algorithm");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='digest_alg' id='digest_alg' class="formselect">
|
||||
<?php
|
||||
foreach( $openssl_digest_algs as $digest_alg):
|
||||
$selected = "";
|
||||
if ($pconfig['digest_alg'] == $digest_alg)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$digest_alg;?>"<?=$selected;?>><?=strtoupper($digest_alg);?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br /><?= gettext("NOTE: It is recommended to use an algorithm stronger than SHA1 when possible.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/>
|
||||
<?=gettext("days");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Distinguished name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<table border="0" cellspacing="0" cellpadding="2" summary="name">
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Country Code");?> : </td>
|
||||
<td align="left">
|
||||
<select name='dn_country' class="formselect">
|
||||
<?php
|
||||
foreach( $dn_cc as $cc){
|
||||
$selected = "";
|
||||
if ($pconfig['dn_country'] == $cc)
|
||||
$selected = " selected=\"selected\"";
|
||||
print "<option value=\"$cc\"$selected>$cc</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("State or Province");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_state" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_state']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("Texas");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("City");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_city" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_city']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("Austin");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Organization");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_organization" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['dn_organization']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("My Company Inc.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Email Address");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_email" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_email']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("admin@mycompany.com");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Common Name");?> : </td>
|
||||
<td align="left">
|
||||
<input name="dn_commonname" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['dn_commonname']);?>"/>
|
||||
|
||||
<em><?=gettext("ex:");?></em>
|
||||
|
||||
<?=gettext("internal-ca");?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="save" class="table">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="save" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
|
||||
<?php if (isset($id) && $a_ca[$id]): ?>
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="18%" class="listhdrr"><?=gettext("Name");?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Internal");?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Issuer");?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Certificates");?></th>
|
||||
<th width="40%" class="listhdrr"><?=gettext("Distinguished Name");?></th>
|
||||
<th width="12%" class="list"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach($a_ca as $ca):
|
||||
$name = htmlspecialchars($ca['descr']);
|
||||
$subj = cert_get_subject($ca['crt']);
|
||||
$issuer = cert_get_issuer($ca['crt']);
|
||||
list($startdate, $enddate) = cert_get_dates($ca['crt']);
|
||||
if($subj == $issuer)
|
||||
$issuer_name = "<em>" . gettext("self-signed") . "</em>";
|
||||
else
|
||||
$issuer_name = "<em>" . gettext("external") . "</em>";
|
||||
$subj = htmlspecialchars($subj);
|
||||
$issuer = htmlspecialchars($issuer);
|
||||
$certcount = 0;
|
||||
|
||||
$issuer_ca = lookup_ca($ca['caref']);
|
||||
if ($issuer_ca)
|
||||
$issuer_name = $issuer_ca['descr'];
|
||||
|
||||
// TODO : Need gray certificate icon
|
||||
|
||||
if($ca['prv']) {
|
||||
$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
$internal = "YES";
|
||||
|
||||
} else {
|
||||
$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
$internal = "NO";
|
||||
}
|
||||
foreach ($a_cert as $cert)
|
||||
if ($cert['caref'] == $ca['refid'])
|
||||
$certcount++;
|
||||
foreach ($a_ca as $cert)
|
||||
if ($cert['caref'] == $ca['refid'])
|
||||
$certcount++;
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?=$name;?>
|
||||
</td>
|
||||
<td class="listr"><?=$internal;?> </td>
|
||||
<td class="listr"><?=$issuer_name;?> </td>
|
||||
<td class="listr"><?=$certcount;?> </td>
|
||||
<td class="listr"><?=$subj;?><br />
|
||||
<table width="100%" style="font-size: 9px" summary="valid">
|
||||
<tr>
|
||||
<td width="10%"> </td>
|
||||
<td width="20%"><?=gettext("Valid From")?>:</td>
|
||||
<td width="70%"><?= $startdate ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><?=gettext("Valid Until")?>:</td>
|
||||
<td><?= $enddate ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
<a href="system_camanager.php?act=edit&id=<?=$i;?>" title="<?=gettext("edit CA");?>" alt="<?=gettext("edit CA");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a>
|
||||
<a href="system_camanager.php?act=exp&id=<?=$i;?>" title="<?=gettext("export CA cert");?>" alt="<?=gettext("export CA cert");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-download"></span></a>
|
||||
<?php if ($ca['prv']): ?>
|
||||
<a href="system_camanager.php?act=expkey&id=<?=$i;?>" title="<?=gettext("export CA private key");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-download"></span></a>
|
||||
<?php endif; ?>
|
||||
<a href="system_camanager.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Authority and its CRLs, and unreference any associated certificates?");?>')" title="<?=gettext("delete ca");?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach;
|
||||
?>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
@ -81,7 +81,7 @@ $a_cert =& $config['cert'];
|
||||
|
||||
$internal_ca_count = 0;
|
||||
foreach ($a_ca as $ca)
|
||||
if ($ca['prv'])
|
||||
if ($ca['prv'])
|
||||
$internal_ca_count++;
|
||||
|
||||
$act = $_GET['act'];
|
||||
@ -304,7 +304,7 @@ if ($_POST) {
|
||||
array_push($input_errors, gettext("Please select a valid Key Length."));
|
||||
if (($pconfig['method'] != "external") && !in_array($_POST["digest_alg"], $openssl_digest_algs))
|
||||
array_push($input_errors, gettext("Please select a valid Digest Algorithm."));
|
||||
|
||||
|
||||
if (($pconfig['method'] == "external") && isset($_POST["csr_keylen"]) && !in_array($_POST["csr_keylen"], $cert_keylens))
|
||||
array_push($input_errors, gettext("Please select a valid Key Length."));
|
||||
if (($pconfig['method'] == "external") && !in_array($_POST["csr_digest_alg"], $openssl_digest_algs))
|
||||
@ -428,7 +428,7 @@ if ($_POST) {
|
||||
// }
|
||||
$mod_csr = csr_get_modulus($pconfig['csr'], false);
|
||||
$mod_cert = cert_get_modulus($pconfig['cert'], false);
|
||||
|
||||
|
||||
if (strcmp($mod_csr,$mod_cert)) {
|
||||
// simply: if the moduli don't match, then the private key and public key won't match
|
||||
$input_errors[] = sprintf(gettext("The certificate modulus does not match the signing request modulus."),$subj_cert);
|
||||
@ -575,16 +575,16 @@ function internalca_change() {
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<?php include('system_manager_tabs.php'); ?>
|
||||
|
||||
|
||||
<?php include('system_manager_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<?php if ($act == "new" || (($_POST['save'] == gettext("Save")) && $input_errors)): ?>
|
||||
@ -621,39 +621,39 @@ function internalca_change() {
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="import" summary="import" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Import Certificate");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Import Certificate");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="cert" id="cert" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['cert']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a certificate in X.509 PEM format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Private key data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="key" id="key" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['key']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a private key in X.509 PEM format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="cert" id="cert" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['cert']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a certificate in X.509 PEM format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Private key data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="key" id="key" cols="65" rows="7" class="formfld_cert"><?=htmlspecialchars($pconfig['key']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a private key in X.509 PEM format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal" summary="internal" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate");?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
<?php if (!$internal_ca_count): ?>
|
||||
|
||||
@ -835,157 +835,157 @@ function internalca_change() {
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="external" summary="external" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("External Signing Request");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("External Signing Request");?></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Key length");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='csr_keylen' class="formselect">
|
||||
<?php
|
||||
if (!isset($pconfig['csr_keylen']) && isset($pconfig['csr_keylen']))
|
||||
$pconfig['csr_keylen'] = $pconfig['csr_keylen'];
|
||||
foreach( $cert_keylens as $len):
|
||||
$selected = "";
|
||||
if ($pconfig['csr_keylen'] == $len)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$len;?>"<?=$selected;?>><?=$len;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
bits
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Digest Algorithm");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='csr_digest_alg' id='csr_digest_alg' class="formselect">
|
||||
<?php
|
||||
foreach( $openssl_digest_algs as $csr_digest_alg):
|
||||
$selected = "";
|
||||
if ($pconfig['csr_digest_alg'] == $csr_digest_alg)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$csr_digest_alg;?>"<?=$selected;?>><?=strtoupper($csr_digest_alg);?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br /><?= gettext("NOTE: It is recommended to use an algorithm stronger than SHA1 when possible.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Distinguished name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<table border="0" cellspacing="0" cellpadding="2" summary="name">
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Country Code");?> : </td>
|
||||
<td align="left">
|
||||
<select name='csr_dn_country' class="formselect">
|
||||
<?php
|
||||
foreach( $dn_cc as $cc){
|
||||
$selected = "";
|
||||
if ($pconfig['csr_dn_country'] == $cc)
|
||||
$selected = " selected=\"selected\"";
|
||||
print "<option value=\"$cc\"$selected>$cc</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("State or Province");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_state" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['csr_dn_state']);?>" />
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("Texas");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("City");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_city" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['csr_dn_city']);?>" />
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("Austin");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Organization");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_organization" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['csr_dn_organization']);?>" />
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("My Company Inc.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Email Address");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_email" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['csr_dn_email']);?>"/>
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("webadmin@mycompany.com");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Common Name");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_commonname" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['csr_dn_commonname']);?>"/>
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("www.example.com");?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Key length");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='csr_keylen' class="formselect">
|
||||
<?php
|
||||
if (!isset($pconfig['csr_keylen']) && isset($pconfig['csr_keylen']))
|
||||
$pconfig['csr_keylen'] = $pconfig['csr_keylen'];
|
||||
foreach( $cert_keylens as $len):
|
||||
$selected = "";
|
||||
if ($pconfig['csr_keylen'] == $len)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$len;?>"<?=$selected;?>><?=$len;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
bits
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Digest Algorithm");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='csr_digest_alg' id='csr_digest_alg' class="formselect">
|
||||
<?php
|
||||
foreach( $openssl_digest_algs as $csr_digest_alg):
|
||||
$selected = "";
|
||||
if ($pconfig['csr_digest_alg'] == $csr_digest_alg)
|
||||
$selected = " selected=\"selected\"";
|
||||
?>
|
||||
<option value="<?=$csr_digest_alg;?>"<?=$selected;?>><?=strtoupper($csr_digest_alg);?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<br /><?= gettext("NOTE: It is recommended to use an algorithm stronger than SHA1 when possible.") ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Distinguished name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<table border="0" cellspacing="0" cellpadding="2" summary="name">
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Country Code");?> : </td>
|
||||
<td align="left">
|
||||
<select name='csr_dn_country' class="formselect">
|
||||
<?php
|
||||
foreach( $dn_cc as $cc){
|
||||
$selected = "";
|
||||
if ($pconfig['csr_dn_country'] == $cc)
|
||||
$selected = " selected=\"selected\"";
|
||||
print "<option value=\"$cc\"$selected>$cc</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("State or Province");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_state" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['csr_dn_state']);?>" />
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("Texas");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("City");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_city" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['csr_dn_city']);?>" />
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("Austin");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Organization");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_organization" type="text" class="formfld unknown" size="40" value="<?=htmlspecialchars($pconfig['csr_dn_organization']);?>" />
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("My Company Inc.");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Email Address");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_email" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['csr_dn_email']);?>"/>
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("webadmin@mycompany.com");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right"><?=gettext("Common Name");?> : </td>
|
||||
<td align="left">
|
||||
<input name="csr_dn_commonname" type="text" class="formfld unknown" size="25" value="<?=htmlspecialchars($pconfig['csr_dn_commonname']);?>"/>
|
||||
|
||||
<em>ex:</em>
|
||||
|
||||
<?=gettext("www.example.com");?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing" summary="existing" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Choose an Existing Certificate");?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Choose an Existing Certificate");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Existing Certificates");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php if (isset($userid) && $a_user): ?>
|
||||
<input name="userid" type="hidden" value="<?=htmlspecialchars($userid);?>" />
|
||||
<?php endif;?>
|
||||
<select name='certref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['cert'] as $cert):
|
||||
$selected = "";
|
||||
$caname = "";
|
||||
$inuse = "";
|
||||
$revoked = "";
|
||||
if (isset($userid) && in_array($cert['refid'], $config['system']['user'][$userid]['cert']))
|
||||
continue;
|
||||
$ca = lookup_ca($cert['caref']);
|
||||
if ($ca)
|
||||
$caname = " (CA: {$ca['descr']})";
|
||||
if ($pconfig['certref'] == $cert['refid'])
|
||||
$selected = " selected=\"selected\"";
|
||||
if (cert_in_use($cert['refid']))
|
||||
$inuse = " *In Use";
|
||||
if (is_cert_revoked($cert))
|
||||
$revoked = " *Revoked";
|
||||
?>
|
||||
<option value="<?=$cert['refid'];?>"<?=$selected;?>><?=$cert['descr'] . $caname . $inuse . $revoked;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Existing Certificates");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php if (isset($userid) && $a_user): ?>
|
||||
<input name="userid" type="hidden" value="<?=htmlspecialchars($userid);?>" />
|
||||
<?php endif;?>
|
||||
<select name='certref' class="formselect">
|
||||
<?php
|
||||
foreach ($config['cert'] as $cert):
|
||||
$selected = "";
|
||||
$caname = "";
|
||||
$inuse = "";
|
||||
$revoked = "";
|
||||
if (isset($userid) && in_array($cert['refid'], $config['system']['user'][$userid]['cert']))
|
||||
continue;
|
||||
$ca = lookup_ca($cert['caref']);
|
||||
if ($ca)
|
||||
$caname = " (CA: {$ca['descr']})";
|
||||
if ($pconfig['certref'] == $cert['refid'])
|
||||
$selected = " selected=\"selected\"";
|
||||
if (cert_in_use($cert['refid']))
|
||||
$inuse = " *In Use";
|
||||
if (is_cert_revoked($cert))
|
||||
$revoked = " *Revoked";
|
||||
?>
|
||||
<option value="<?=$cert['refid'];?>"<?=$selected;?>><?=$cert['descr'] . $caname . $inuse . $revoked;?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -1060,20 +1060,20 @@ function internalca_change() {
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="details" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="15%" class="listhdrr"><?=gettext("Name");?></td>
|
||||
<td width="15%" class="listhdrr"><?=gettext("Issuer");?></td>
|
||||
<td width="40%" class="listhdrr"><?=gettext("Distinguished Name");?></td>
|
||||
<td width="10%" class="listhdrr"><?=gettext("In Use");?></td>
|
||||
<td width="10%" class="list"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="15%" class="listhdrr"><?=gettext("Name");?></td>
|
||||
<td width="15%" class="listhdrr"><?=gettext("Issuer");?></td>
|
||||
<td width="40%" class="listhdrr"><?=gettext("Distinguished Name");?></td>
|
||||
<td width="10%" class="listhdrr"><?=gettext("In Use");?></td>
|
||||
<td width="10%" class="list"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach($a_cert as $cert):
|
||||
$name = htmlspecialchars($cert['descr']);
|
||||
|
||||
|
||||
if ($cert['crt']) {
|
||||
$subj = cert_get_subject($cert['crt']);
|
||||
$issuer = cert_get_issuer($cert['crt']);
|
||||
@ -1096,7 +1096,7 @@ function internalca_change() {
|
||||
$caname = $ca['descr'];
|
||||
|
||||
// was: $certimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
|
||||
|
||||
$certimg = '<span class="glyphicon glyphicon-certificate __iconspacer"></span>';
|
||||
?>
|
||||
<tr>
|
||||
@ -1158,43 +1158,43 @@ function internalca_change() {
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=exp&id=<?=$i;?>" class="btn btn-default btn-xs" title="<?=gettext("export ca");?>">
|
||||
<span class="glyphicon glyphicon-download"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=key&id=<?=$i;?>" class="btn btn-default btn-xs" title="<?=gettext("export key");?>">
|
||||
<span class="glyphicon glyphicon-download"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=p12&id=<?=$i;?>" class="btn btn-default btn-xs" title="<?=gettext("export ca cert+user cert+user cert key in .p12 format");?>">
|
||||
<span class="glyphicon glyphicon-download"></span>
|
||||
</a>
|
||||
</td>
|
||||
<?php if (!cert_in_use($cert['refid'])): ?>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=del&id=<?=$i;?>" class="btn btn-default btn-xs" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate?");?>')" title="<?=gettext("delete cert");?>">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($cert['csr']): ?>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=csr&id=<?=$i;?>" title="<?=gettext("update csr");?>">
|
||||
<span class="glyphicon glyphicon-edit"></span>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=exp&id=<?=$i;?>" class="btn btn-default btn-xs" title="<?=gettext("export ca");?>">
|
||||
<span class="glyphicon glyphicon-download"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=key&id=<?=$i;?>" class="btn btn-default btn-xs" title="<?=gettext("export key");?>">
|
||||
<span class="glyphicon glyphicon-download"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=p12&id=<?=$i;?>" class="btn btn-default btn-xs" title="<?=gettext("export ca cert+user cert+user cert key in .p12 format");?>">
|
||||
<span class="glyphicon glyphicon-download"></span>
|
||||
</a>
|
||||
</td>
|
||||
<?php if (!cert_in_use($cert['refid'])): ?>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=del&id=<?=$i;?>" class="btn btn-default btn-xs" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate?");?>')" title="<?=gettext("delete cert");?>">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($cert['csr']): ?>
|
||||
<td>
|
||||
<a href="system_certmanager.php?act=csr&id=<?=$i;?>" title="<?=gettext("update csr");?>">
|
||||
<span class="glyphicon glyphicon-edit"></span>
|
||||
</a>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td colspan="3"><?=gettext("Note: You can only delete a certificate if it is not currently in use.");?></td>
|
||||
|
||||
@ -1,20 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
system_crlmanager.php
|
||||
|
||||
|
||||
Copyright (C) 2010 Jim Pingle
|
||||
All rights reserved.
|
||||
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
|
||||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
@ -253,23 +253,23 @@ include("head.inc");
|
||||
<?php include("fbegin.inc"); ?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
|
||||
|
||||
function method_change() {
|
||||
|
||||
method = document.iform.method.value;
|
||||
|
||||
switch (method) {
|
||||
case "internal":
|
||||
document.getElementById("existing").style.display="none";
|
||||
document.getElementById("internal").style.display="";
|
||||
break;
|
||||
case "existing":
|
||||
document.getElementById("existing").style.display="";
|
||||
document.getElementById("internal").style.display="none";
|
||||
break;
|
||||
}
|
||||
|
||||
method = document.iform.method.value;
|
||||
|
||||
switch (method) {
|
||||
case "internal":
|
||||
document.getElementById("existing").style.display="none";
|
||||
document.getElementById("internal").style.display="";
|
||||
break;
|
||||
case "existing":
|
||||
document.getElementById("existing").style.display="";
|
||||
document.getElementById("internal").style.display="none";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
@ -277,351 +277,351 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_manager_tabs.php'); ?>
|
||||
|
||||
|
||||
<? include('system_manager_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<?php if ($act == "new" || $act == gettext("Save") || $input_errors): ?>
|
||||
|
||||
<form action="system_crlmanager.php" method="post" name="iform" id="iform">
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<?php if (!isset($id)): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Method");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='method' id='method' class="formselect" onchange='method_change()'>
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
foreach($crl_methods as $method => $desc):
|
||||
if (($_GET['importonly'] == "yes") && ($method != "existing"))
|
||||
continue;
|
||||
$selected = "";
|
||||
if ($pconfig['method'] == $method)
|
||||
$selected = "selected=\"selected\"";
|
||||
$rowIndex++;
|
||||
?>
|
||||
<option value="<?=$method;?>" <?=$selected;?>><?=$desc;?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate Authority");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' id='caref' class="formselect">
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
foreach($a_ca as $ca):
|
||||
$selected = "";
|
||||
if ($pconfig['caref'] == $ca['refid'])
|
||||
$selected = "selected=\"selected\"";
|
||||
$rowIndex++;
|
||||
?>
|
||||
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing" summary="existing" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Revocation List");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("CRL data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="crltext" id="crltext" cols="65" rows="7" class="formfld_crl"><?=$pconfig['crltext'];?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a Certificate Revocation List in X.509 CRL format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal" summary="internal" class="table table-striped">
|
||||
<form action="system_crlmanager.php" method="post" name="iform" id="iform">
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" class="table table-striped">
|
||||
<?php if (!isset($id)): ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Method");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='method' id='method' class="formselect" onchange='method_change()'>
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
foreach($crl_methods as $method => $desc):
|
||||
if (($_GET['importonly'] == "yes") && ($method != "existing"))
|
||||
continue;
|
||||
$selected = "";
|
||||
if ($pconfig['method'] == $method)
|
||||
$selected = "selected=\"selected\"";
|
||||
$rowIndex++;
|
||||
?>
|
||||
<option value="<?=$method;?>" <?=$selected;?>><?=$desc;?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($pconfig['descr']);?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Certificate Authority");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<select name='caref' id='caref' class="formselect">
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
foreach($a_ca as $ca):
|
||||
$selected = "";
|
||||
if ($pconfig['caref'] == $ca['refid'])
|
||||
$selected = "selected=\"selected\"";
|
||||
$rowIndex++;
|
||||
?>
|
||||
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="existing" summary="existing" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Existing Certificate Revocation List");?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("CRL data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="crltext" id="crltext" cols="65" rows="7" class="formfld_crl"><?=$pconfig['crltext'];?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a Certificate Revocation List in X.509 CRL format here.");?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="internal" summary="internal" class="table table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Revocation List");?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Internal Certificate Revocation List");?></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/>
|
||||
<?=gettext("days");?><br />
|
||||
<?=gettext("Default: 9999");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Serial");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="serial" type="text" class="formfld unknown" id="serial" size="5" value="<?=htmlspecialchars($pconfig['serial']);?>"/>
|
||||
<br />
|
||||
<?=gettext("Default: 0");?>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="save" class="table table-striped">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="save" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
|
||||
<?php if (isset($id) && $thiscrl): ?>
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Lifetime");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="lifetime" type="text" class="formfld unknown" id="lifetime" size="5" value="<?=htmlspecialchars($pconfig['lifetime']);?>"/>
|
||||
<?=gettext("days");?><br />
|
||||
<?=gettext("Default: 9999");?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Serial");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="serial" type="text" class="formfld unknown" id="serial" size="5" value="<?=htmlspecialchars($pconfig['serial']);?>"/>
|
||||
<br />
|
||||
<?=gettext("Default: 0");?>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="save" class="table table-striped">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="save" type="submit" class="btn btn-primary" value="<?=gettext("Save"); ?>" />
|
||||
<?php if (isset($id) && $thiscrl): ?>
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<?php endif;?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php elseif ($act == "editimported"): ?>
|
||||
|
||||
<?php $crl = $thiscrl; ?>
|
||||
<form action="system_crlmanager.php" method="post" name="iform" id="iform" class="table table-striped">
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="editimported" summary="import">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Imported Certificate Revocation List");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($crl['descr']);?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("CRL data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="crltext" id="crltext" cols="65" rows="7" class="formfld_crl"><?=base64_decode($crl['text']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a Certificate Revocation List in X.509 CRL format here.");?></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<input name="act" type="hidden" value="editimported" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php $crl = $thiscrl; ?>
|
||||
<form action="system_crlmanager.php" method="post" name="iform" id="iform" class="table table-striped">
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" id="editimported" summary="import">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Imported Certificate Revocation List");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Descriptive name");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="20" value="<?=htmlspecialchars($crl['descr']);?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("CRL data");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<textarea name="crltext" id="crltext" cols="65" rows="7" class="formfld_crl"><?=base64_decode($crl['text']);?></textarea>
|
||||
<br />
|
||||
<?=gettext("Paste a Certificate Revocation List in X.509 CRL format here.");?></td>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input id="submit" name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" />
|
||||
<input name="id" type="hidden" value="<?=htmlspecialchars($id);?>" />
|
||||
<input name="act" type="hidden" value="editimported" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php elseif ($act == "edit"): ?>
|
||||
|
||||
<?php $crl = $thiscrl; ?>
|
||||
<form action="system_crlmanager.php" method="post" name="iform" id="iform">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="revoke">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="90%" class="listhdrr" colspan="3"><b><?php echo gettext("Currently Revoked Certificates for CRL") . ': ' . $crl['descr']; ?></b></th>
|
||||
<th width="10%" class="list"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="30%" class="listhdrr"><b><?php echo gettext("Certificate Name")?></b></th>
|
||||
<th width="30%" class="listhdrr"><b><?php echo gettext("Revocation Reason")?></b></th>
|
||||
<th width="30%" class="listhdrr"><b><?php echo gettext("Revoked At")?></b></th>
|
||||
<th width="10%" class="list"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php $crl = $thiscrl; ?>
|
||||
<form action="system_crlmanager.php" method="post" name="iform" id="iform">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="revoke">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="90%" class="listhdrr" colspan="3"><b><?php echo gettext("Currently Revoked Certificates for CRL") . ': ' . $crl['descr']; ?></b></th>
|
||||
<th width="10%" class="list"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="30%" class="listhdrr"><b><?php echo gettext("Certificate Name")?></b></th>
|
||||
<th width="30%" class="listhdrr"><b><?php echo gettext("Revocation Reason")?></b></th>
|
||||
<th width="30%" class="listhdrr"><b><?php echo gettext("Revoked At")?></b></th>
|
||||
<th width="10%" class="list"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php /* List Certs on CRL */
|
||||
if (!is_array($crl['cert']) || (count($crl['cert']) == 0)): ?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="3">
|
||||
<?php echo gettext("No Certificates Found for this CRL."); ?>
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
if (!is_array($crl['cert']) || (count($crl['cert']) == 0)): ?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="3">
|
||||
<?php echo gettext("No Certificates Found for this CRL."); ?>
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
<?php else:
|
||||
foreach($crl['cert'] as $i => $cert):
|
||||
$name = htmlspecialchars($cert['descr']);
|
||||
foreach($crl['cert'] as $i => $cert):
|
||||
$name = htmlspecialchars($cert['descr']);
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?php echo $name; ?>
|
||||
</td>
|
||||
<td class="listlr">
|
||||
<?php echo $openssl_crl_status[$cert["reason"]]; ?>
|
||||
</td>
|
||||
<td class="listlr">
|
||||
<?php echo date("D M j G:i:s T Y", $cert["revoke_time"]); ?>
|
||||
</td>
|
||||
<td class="list">
|
||||
<a href="system_crlmanager.php?act=delcert&id=<?php echo $crl['refid']; ?>&certref=<?php echo $cert['refid']; ?>" title="<?=gettext("Delete this certificate from the CRL ");?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate from the CRL?");?>')" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
<?php /* Drop-down with other certs from this CA. */
|
||||
// Map Certs to CAs in one pass
|
||||
$ca_certs = array();
|
||||
foreach($a_cert as $cert)
|
||||
if ($cert['caref'] == $crl['caref'])
|
||||
$ca_certs[] = $cert;
|
||||
if (count($ca_certs) == 0): ?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="3">
|
||||
<?php echo gettext("No Certificates Found for this CA."); ?>
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="listlr">
|
||||
<?php echo $name; ?>
|
||||
</td>
|
||||
<td class="listlr">
|
||||
<?php echo $openssl_crl_status[$cert["reason"]]; ?>
|
||||
</td>
|
||||
<td class="listlr">
|
||||
<?php echo date("D M j G:i:s T Y", $cert["revoke_time"]); ?>
|
||||
</td>
|
||||
<td class="list">
|
||||
<a href="system_crlmanager.php?act=delcert&id=<?php echo $crl['refid']; ?>&certref=<?php echo $cert['refid']; ?>" title="<?=gettext("Delete this certificate from the CRL ");?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate from the CRL?");?>')" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
<?php /* Drop-down with other certs from this CA. */
|
||||
// Map Certs to CAs in one pass
|
||||
$ca_certs = array();
|
||||
foreach($a_cert as $cert)
|
||||
if ($cert['caref'] == $crl['caref'])
|
||||
$ca_certs[] = $cert;
|
||||
if (count($ca_certs) == 0): ?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="3">
|
||||
<?php echo gettext("No Certificates Found for this CA."); ?>
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="3" align="center">
|
||||
<b><?php echo gettext("Choose a Certificate to Revoke"); ?></b>: <select name='certref' id='certref' class="formselect">
|
||||
<tr>
|
||||
<td class="listlr" colspan="3" align="center">
|
||||
<b><?php echo gettext("Choose a Certificate to Revoke"); ?></b>: <select name='certref' id='certref' class="formselect">
|
||||
<?php $rowIndex = 0;
|
||||
foreach($ca_certs as $cert):
|
||||
$rowIndex++; ?>
|
||||
<option value="<?=$cert['refid'];?>"><?=htmlspecialchars($cert['descr'])?></option>
|
||||
foreach($ca_certs as $cert):
|
||||
$rowIndex++; ?>
|
||||
<option value="<?=$cert['refid'];?>"><?=htmlspecialchars($cert['descr'])?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>"; ?>
|
||||
</select>
|
||||
<b><?php echo gettext("Reason");?></b>:
|
||||
<select name='crlreason' id='crlreason' class="formselect">
|
||||
<?php $rowIndex = 0;
|
||||
foreach($openssl_crl_status as $code => $reason):
|
||||
$rowIndex++; ?>
|
||||
<option value="<?= $code ?>"><?= htmlspecialchars($reason) ?></option>
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>"; ?>
|
||||
</select>
|
||||
<b><?php echo gettext("Reason");?></b>:
|
||||
<select name='crlreason' id='crlreason' class="formselect">
|
||||
<?php $rowIndex = 0;
|
||||
foreach($openssl_crl_status as $code => $reason):
|
||||
$rowIndex++; ?>
|
||||
<option value="<?= $code ?>"><?= htmlspecialchars($reason) ?></option>
|
||||
<?php endforeach;
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>"; ?>
|
||||
</select>
|
||||
<input name="act" type="hidden" value="addcert" />
|
||||
<input name="crlref" type="hidden" value="<?=$crl['refid'];?>" />
|
||||
<input name="id" type="hidden" value="<?=$crl['refid'];?>" />
|
||||
<input id="submit" name="add" type="submit" class="formbtn" value="<?=gettext("Add"); ?>" />
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
if ($rowIndex == 0)
|
||||
echo "<option></option>"; ?>
|
||||
</select>
|
||||
<input name="act" type="hidden" value="addcert" />
|
||||
<input name="crlref" type="hidden" value="<?=$crl['refid'];?>" />
|
||||
<input name="id" type="hidden" value="<?=$crl['refid'];?>" />
|
||||
<input id="submit" name="add" type="submit" class="formbtn" value="<?=gettext("Add"); ?>" />
|
||||
</td>
|
||||
<td class="list"> </td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="ocpms" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="35%" class="listhdrr"><?=gettext("Name");?></td>
|
||||
<td width="10%" class="listhdrr"><?=gettext("Internal");?></td>
|
||||
<td width="35%" class="listhdrr"><?=gettext("Certificates");?></td>
|
||||
<td width="10%" class="listhdrr"><?=gettext("In Use");?></td>
|
||||
<td width="10%" class="list"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<p>
|
||||
<?=gettext("Additional Certificate Revocation Lists can be added here.");?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot> <tbody>
|
||||
<?php
|
||||
$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
// Map CRLs to CAs in one pass
|
||||
$ca_crl_map = array();
|
||||
foreach($a_crl as $crl)
|
||||
$ca_crl_map[$crl['caref']][] = $crl['refid'];
|
||||
|
||||
$i = 0;
|
||||
foreach($a_ca as $ca):
|
||||
$name = htmlspecialchars($ca['descr']);
|
||||
|
||||
if($ca['prv']) {
|
||||
$cainternal = "YES";
|
||||
} else
|
||||
$cainternal = "NO";
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="4">
|
||||
<?=$name;?>
|
||||
</td>
|
||||
<td class="list">
|
||||
<?php if ($cainternal == "YES"): ?>
|
||||
<a href="system_crlmanager.php?act=new&caref=<?php echo $ca['refid']; ?>" title="<?php printf(gettext("Add or Import CRL for %s"),$ca['descr']);?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a>
|
||||
<?php else: ?>
|
||||
<a href="system_crlmanager.php?act=new&caref=<?php echo $ca['refid']; ?>&importonly=yes" title="<?php printf(gettext("Import CRL for %s"),$ca['descr']);?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if (is_array($ca_crl_map[$ca['refid']])):
|
||||
foreach($ca_crl_map[$ca['refid']] as $crl):
|
||||
$tmpcrl = lookup_crl($crl);
|
||||
$internal = is_crl_internal($tmpcrl);
|
||||
$inuse = crl_in_use($tmpcrl['refid']);
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr"><?php echo $tmpcrl['descr']; ?></td>
|
||||
<td class="listr"><?php echo ($internal) ? "YES" : "NO"; ?></td>
|
||||
<td class="listr"><?php echo ($internal) ? count($tmpcrl['cert']) : "Unknown (imported)"; ?></td>
|
||||
<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
<a href="system_crlmanager.php?act=exp&id=<?=$tmpcrl['refid'];?>" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-export" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php if ($internal): ?>
|
||||
<a href="system_crlmanager.php?act=edit&id=<?=$tmpcrl['refid'];?>" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-edit" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="system_crlmanager.php?act=editimported&id=<?=$tmpcrl['refid'];?>" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-edit" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="ocpms" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="35%" class="listhdrr"><?=gettext("Name");?></td>
|
||||
<td width="10%" class="listhdrr"><?=gettext("Internal");?></td>
|
||||
<td width="35%" class="listhdrr"><?=gettext("Certificates");?></td>
|
||||
<td width="10%" class="listhdrr"><?=gettext("In Use");?></td>
|
||||
<td width="10%" class="list"></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<p>
|
||||
<?=gettext("Additional Certificate Revocation Lists can be added here.");?>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot> <tbody>
|
||||
<?php
|
||||
$caimg = "/themes/{$g['theme']}/images/icons/icon_frmfld_cert.png";
|
||||
// Map CRLs to CAs in one pass
|
||||
$ca_crl_map = array();
|
||||
foreach($a_crl as $crl)
|
||||
$ca_crl_map[$crl['caref']][] = $crl['refid'];
|
||||
|
||||
$i = 0;
|
||||
foreach($a_ca as $ca):
|
||||
$name = htmlspecialchars($ca['descr']);
|
||||
|
||||
if($ca['prv']) {
|
||||
$cainternal = "YES";
|
||||
} else
|
||||
$cainternal = "NO";
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr" colspan="4">
|
||||
<?=$name;?>
|
||||
</td>
|
||||
<td class="list">
|
||||
<?php if ($cainternal == "YES"): ?>
|
||||
<a href="system_crlmanager.php?act=new&caref=<?php echo $ca['refid']; ?>" title="<?php printf(gettext("Add or Import CRL for %s"),$ca['descr']);?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a>
|
||||
<?php else: ?>
|
||||
<a href="system_crlmanager.php?act=new&caref=<?php echo $ca['refid']; ?>&importonly=yes" title="<?php printf(gettext("Import CRL for %s"),$ca['descr']);?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
if (is_array($ca_crl_map[$ca['refid']])):
|
||||
foreach($ca_crl_map[$ca['refid']] as $crl):
|
||||
$tmpcrl = lookup_crl($crl);
|
||||
$internal = is_crl_internal($tmpcrl);
|
||||
$inuse = crl_in_use($tmpcrl['refid']);
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr"><?php echo $tmpcrl['descr']; ?></td>
|
||||
<td class="listr"><?php echo ($internal) ? "YES" : "NO"; ?></td>
|
||||
<td class="listr"><?php echo ($internal) ? count($tmpcrl['cert']) : "Unknown (imported)"; ?></td>
|
||||
<td class="listr"><?php echo ($inuse) ? "YES" : "NO"; ?></td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
<a href="system_crlmanager.php?act=exp&id=<?=$tmpcrl['refid'];?>" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-export" title="<?=gettext("Export CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php if ($internal): ?>
|
||||
<a href="system_crlmanager.php?act=edit&id=<?=$tmpcrl['refid'];?>" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-edit" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="system_crlmanager.php?act=editimported&id=<?=$tmpcrl['refid'];?>" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-edit" title="<?=gettext("Edit CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php if (!$inuse): ?>
|
||||
<a href="system_crlmanager.php?act=del&id=<?=$tmpcrl['refid'];?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Revocation List?") . ' (' . htmlspecialchars($tmpcrl['descr']) . ')';?>')" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-remove" title="<?=gettext("Delete CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; endif; ?>
|
||||
<tr><td colspan="5"> </td></tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<?php if (!$inuse): ?>
|
||||
<a href="system_crlmanager.php?act=del&id=<?=$tmpcrl['refid'];?>" onclick="return confirm('<?=gettext("Do you really want to delete this Certificate Revocation List?") . ' (' . htmlspecialchars($tmpcrl['descr']) . ')';?>')" class="btn btn-default">
|
||||
<span class="glyphicon glyphicon-remove" title="<?=gettext("Delete CRL") . " " . htmlspecialchars($tmpcrl['descr']);?>"></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i++; endforeach; endif; ?>
|
||||
<tr><td colspan="5"> </td></tr>
|
||||
<?php $i++; endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@ -197,124 +197,124 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if ($fwinfo <> "") print_info_box($fwinfo); ?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_firmware.php" method="post" enctype="multipart/form-data">
|
||||
|
||||
|
||||
<?php
|
||||
/* Construct an upload_id for this session */
|
||||
if (!session_id()) $upload_id = uniqid();
|
||||
else $upload_id = session_id();
|
||||
/* Construct an upload_id for this session */
|
||||
if (!session_id()) $upload_id = uniqid();
|
||||
else $upload_id = session_id();
|
||||
?>
|
||||
<input type="hidden" name="UPLOAD_IDENTIFIER" value="<?php echo $upload_id;?>" />
|
||||
|
||||
|
||||
<?php if ($sig_warning && !$input_errors): ?>
|
||||
|
||||
<?php
|
||||
$sig_warning = "<strong>" . $sig_warning . "</strong><br />" . gettext("This means that the image you uploaded " .
|
||||
"is not an official/supported image and may lead to unexpected behavior or security " .
|
||||
"compromises. Only install images that come from sources that you trust, and make sure ".
|
||||
"that the image has not been tampered with.") . "<br /><br />".
|
||||
gettext("Do you want to install this image anyway (on your own risk)?");
|
||||
|
||||
$sig_warning = "<strong>" . $sig_warning . "</strong><br />" . gettext("This means that the image you uploaded " .
|
||||
"is not an official/supported image and may lead to unexpected behavior or security " .
|
||||
"compromises. Only install images that come from sources that you trust, and make sure ".
|
||||
"that the image has not been tampered with.") . "<br /><br />".
|
||||
gettext("Do you want to install this image anyway (on your own risk)?");
|
||||
|
||||
print_info_box($sig_warning);
|
||||
|
||||
|
||||
if(stristr($_FILES['ulfile']['name'],"nanobsd"))
|
||||
echo "<input type='hidden' name='isnano' id='isnano' value='yes' />\n";
|
||||
echo "<input type='hidden' name='isnano' id='isnano' value='yes' />\n";
|
||||
?>
|
||||
|
||||
|
||||
<input name="sig_override" type="submit" class="btn btn-primary" id="sig_override" value=" <?=gettext("Yes");?> " />
|
||||
<input name="sig_no" type="submit" class="btn btn-default" id="sig_no" value=" <?=gettext("No"); ?> " />
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
|
||||
<?php if (!is_subsystem_dirty('firmwarelock')): ?>
|
||||
|
||||
|
||||
<table class="table table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic"><?=gettext("Invoke") ." ". $g['product_name'] ." ". gettext("Manual Upgrade"); ?></th>
|
||||
<th colspan="2" class="listtopic"><?=gettext("Invoke") ." ". $g['product_name'] ." ". gettext("Manual Upgrade"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="22%" valign="baseline" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php if (!is_subsystem_dirty('rebootreq')): ?>
|
||||
<?php if (!is_subsystem_dirty('firmware')): ?>
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Enable firmware upload");?>" />
|
||||
<br />
|
||||
<?php printf(gettext('Click "Enable firmware upload" to begin.'),$g['firmware_update_text']);?>
|
||||
<br />
|
||||
<?php else: ?>
|
||||
<input name="Submit" type="submit" class="btn btn-default" value="<?=gettext("Disable firmware upload");?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="baseline" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php
|
||||
if ($g['platform'] == "nanobsd")
|
||||
$type = "*.img.gz";
|
||||
else
|
||||
$type = "*.tgz";
|
||||
?>
|
||||
<strong><?=gettext("Firmware image file ($type):");?> </strong>
|
||||
<input name="ulfile" type="file" class="formfld" />
|
||||
<br />
|
||||
<?php if ($g['hidebackupbeforeupgrade'] === false): ?>
|
||||
<input type="checkbox" name='backupbeforeupgrade' id='backupbeforeupgrade' /> <?=gettext("Perform full backup prior to upgrade");?>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Upgrade firmware");?>" />
|
||||
<?=gettext('Click "Upgrade firmware" to start the upgrade process.');?>
|
||||
<?php endif; else: ?>
|
||||
<strong><?=gettext("You must reboot the system before you can upgrade the firmware.");?></strong>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="baseline" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php if (!is_subsystem_dirty('rebootreq')): ?>
|
||||
<?php if (!is_subsystem_dirty('firmware')): ?>
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Enable firmware upload");?>" />
|
||||
<br />
|
||||
<?php printf(gettext('Click "Enable firmware upload" to begin.'),$g['firmware_update_text']);?>
|
||||
<br />
|
||||
<?php else: ?>
|
||||
<input name="Submit" type="submit" class="btn btn-default" value="<?=gettext("Disable firmware upload");?>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="baseline" class="vncell"> </td>
|
||||
<td width="78%" class="vtable">
|
||||
<?php
|
||||
if ($g['platform'] == "nanobsd")
|
||||
$type = "*.img.gz";
|
||||
else
|
||||
$type = "*.tgz";
|
||||
?>
|
||||
<strong><?=gettext("Firmware image file ($type):");?> </strong>
|
||||
<input name="ulfile" type="file" class="formfld" />
|
||||
<br />
|
||||
<?php if ($g['hidebackupbeforeupgrade'] === false): ?>
|
||||
<input type="checkbox" name='backupbeforeupgrade' id='backupbeforeupgrade' /> <?=gettext("Perform full backup prior to upgrade");?>
|
||||
<br />
|
||||
<?php endif; ?>
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="<?=gettext("Upgrade firmware");?>" />
|
||||
<?=gettext('Click "Upgrade firmware" to start the upgrade process.');?>
|
||||
<?php endif; else: ?>
|
||||
<strong><?=gettext("You must reboot the system before you can upgrade the firmware.");?></strong>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<?php if (is_subsystem_dirty('firmware')): ?>
|
||||
|
||||
<?php if (is_subsystem_dirty('firmware')): ?>
|
||||
|
||||
<span class="vexpl">
|
||||
<span class="red">
|
||||
<strong>
|
||||
<?=gettext("Warning:");?><br />
|
||||
</strong>
|
||||
</span>
|
||||
<span class="red">
|
||||
<strong>
|
||||
<?=gettext("Warning:");?><br />
|
||||
</strong>
|
||||
</span>
|
||||
<?=gettext("DO NOT abort the firmware upgrade once it " .
|
||||
"has started. The firewall will reboot automatically after " .
|
||||
"storing the new firmware. The configuration will be maintained.");?>
|
||||
"has started. The firewall will reboot automatically after " .
|
||||
"storing the new firmware. The configuration will be maintained.");?>
|
||||
</span>
|
||||
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif;?>
|
||||
|
||||
|
||||
<?php endif;?>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -70,60 +70,60 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_firmware_auto.php" method="post">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="outer">
|
||||
<tr>
|
||||
<td class="tabcont">
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="inner">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="420" border="0" cellpadding="0" cellspacing="0" summary="images">
|
||||
|
||||
<tr>
|
||||
<td style="background:url('./themes/<?=$g['theme'];?>/images/misc/bar_left.gif')" height="15" width="5"> </td>
|
||||
<td>
|
||||
<table id="progholder" style="height:15;colspacing:0" width="410" border="0" cellpadding="0" cellspacing="0" summary="">
|
||||
<tr><td style="background:url('./themes/<?=$g['theme'];?>/images/misc/bar_gray.gif')" valign="top" align="left">
|
||||
<img src="./themes/<?=$g['theme'];?>/images/misc/bar_blue.gif" width="0" height="15" name="progressbar" id="progressbar" alt="" />
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background:url('./themes/<?=$g['theme'];?>/images/misc/bar_right.gif')" height="15" width="5"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
window.onload=function(){
|
||||
document.getElementById("status").wrap='hard';
|
||||
document.getElementById("output").wrap='hard';
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<!-- status box -->
|
||||
<textarea cols="90" rows="1" name="status" id="status"><?=gettext("Beginning firmware upgrade"); ?>.</textarea>
|
||||
<br />
|
||||
<!-- command output box -->
|
||||
<textarea cols="90" rows="25" name="output" id="output"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="outer">
|
||||
<tr>
|
||||
<td class="tabcont">
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="inner">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="420" border="0" cellpadding="0" cellspacing="0" summary="images">
|
||||
|
||||
<tr>
|
||||
<td style="background:url('./themes/<?=$g['theme'];?>/images/misc/bar_left.gif')" height="15" width="5"> </td>
|
||||
<td>
|
||||
<table id="progholder" style="height:15;colspacing:0" width="410" border="0" cellpadding="0" cellspacing="0" summary="">
|
||||
<tr><td style="background:url('./themes/<?=$g['theme'];?>/images/misc/bar_gray.gif')" valign="top" align="left">
|
||||
<img src="./themes/<?=$g['theme'];?>/images/misc/bar_blue.gif" width="0" height="15" name="progressbar" id="progressbar" alt="" />
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
<td style="background:url('./themes/<?=$g['theme'];?>/images/misc/bar_right.gif')" height="15" width="5"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
window.onload=function(){
|
||||
document.getElementById("status").wrap='hard';
|
||||
document.getElementById("output").wrap='hard';
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<!-- status box -->
|
||||
<textarea cols="90" rows="1" name="status" id="status"><?=gettext("Beginning firmware upgrade"); ?>.</textarea>
|
||||
<br />
|
||||
<!-- command output box -->
|
||||
<textarea cols="90" rows="25" name="output" id="output"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
@ -45,7 +45,7 @@ if($_POST['action'] == 'pkg_update') {
|
||||
$shell = new Core\Shell();
|
||||
// execute shell command and collect (only valid) info into named array
|
||||
$shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output);
|
||||
}
|
||||
}
|
||||
|
||||
if($_POST['action'] == 'pkg_upgrade') {
|
||||
/* Setup Shell variables */
|
||||
@ -53,19 +53,19 @@ if($_POST['action'] == 'pkg_upgrade') {
|
||||
$shell = new Core\Shell();
|
||||
// execute shell command and collect (only valid) info into named array
|
||||
$shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output);
|
||||
}
|
||||
}
|
||||
|
||||
if($_POST['action'] == 'update_status' ) {
|
||||
if (file_exists($file_upgrade_progress)) {
|
||||
$content = file_get_contents($file_upgrade_progress);
|
||||
echo $content;
|
||||
echo $content;
|
||||
}
|
||||
exit;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($file_pkg_status)) {
|
||||
|
||||
|
||||
$json = file_get_contents($file_pkg_status);
|
||||
$pkg_status = json_decode($json,true);
|
||||
}
|
||||
@ -85,7 +85,7 @@ if($_REQUEST['getupdatestatus']) {
|
||||
echo "<span class='text-danger'>".gettext("Current status is unknown")."</span><br/><span class='btn btn-primary' onclick='checkupdate()'>".gettext("Click to check now")."</span>";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
//$curcfg = $config['system']['firmware'];
|
||||
$pgtitle=array(gettext("System"), gettext("Firmware"), gettext("Auto Update"));
|
||||
@ -100,107 +100,107 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_firmware_auto.php" method="post">
|
||||
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_firmware_auto.php" method="post">
|
||||
|
||||
<div class="table-responsive table-striped">
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="" class="table table-striped">
|
||||
<tr>
|
||||
<th colspan="2">Current Firmware Status</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" colspan="2">
|
||||
<div id="updatestatus">
|
||||
</div>
|
||||
<div class="progress" style="display:none">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width:0%;">
|
||||
<span class="text-info">0% Complete</span>
|
||||
</div>
|
||||
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="" class="table table-striped">
|
||||
<tr>
|
||||
<th colspan="2">Current Firmware Status</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" colspan="2">
|
||||
<div id="updatestatus">
|
||||
</div>
|
||||
<div class="progress" style="display:none">
|
||||
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width:0%;">
|
||||
<span class="text-info">0% Complete</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<textarea name="output" id="output" class="form-control" rows="10" wrap="hard" readonly style="max-width:100%;display:none"></textarea>
|
||||
<textarea name="output" id="output" class="form-control" rows="10" wrap="hard" readonly style="max-width:100%;display:none"></textarea>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Available Upgrades</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="upgrades">
|
||||
<?php
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
echo '<th>Package Name</th>';
|
||||
echo '<th>Current Version</th>';
|
||||
echo '<th>New Version</th>';
|
||||
echo '</tr>';
|
||||
foreach ($pkg_status["upgrade_packages"] as $upgrade_new) {
|
||||
echo '<tr>';
|
||||
echo '<td>';
|
||||
echo '<span class="text-info"><b>'.$upgrade_new["name"].'</b></span><br/>';
|
||||
echo '</td>';
|
||||
echo '<td>';
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Available Upgrades</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="upgrades">
|
||||
<?php
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
echo '<th>Package Name</th>';
|
||||
echo '<th>Current Version</th>';
|
||||
echo '<th>New Version</th>';
|
||||
echo '</tr>';
|
||||
foreach ($pkg_status["upgrade_packages"] as $upgrade_new) {
|
||||
echo '<tr>';
|
||||
echo '<td>';
|
||||
echo '<span class="text-info"><b>'.$upgrade_new["name"].'</b></span><br/>';
|
||||
echo '</td>';
|
||||
echo '<td>';
|
||||
echo '<span class="text-info"><b>'.$upgrade_new["current_version"].'</b></span><br/>';
|
||||
echo '</td>';
|
||||
echo '</td>';
|
||||
echo '<td>';
|
||||
echo '<span class="text-info"><b>'.$upgrade_new["new_version"].'</b></span><br/>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
echo '</tr>';
|
||||
|
||||
}
|
||||
echo '</table>';
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Required new Installs</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="new">
|
||||
<?php
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
echo '<th>Package Name</th>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
foreach ($pkg_status["new_packages"] as $upgrade_new) {
|
||||
echo '<td>';
|
||||
echo '<span class="text-info"><b>'.$upgrade_new["name"].'</b></span><br/>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
?>
|
||||
</div>
|
||||
}
|
||||
echo '</table>';
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Required new Installs</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div id="new">
|
||||
<?php
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
echo '<th>Package Name</th>';
|
||||
echo '</tr>';
|
||||
echo '<tr>';
|
||||
foreach ($pkg_status["new_packages"] as $upgrade_new) {
|
||||
echo '<td>';
|
||||
echo '<span class="text-info"><b>'.$upgrade_new["name"].'</b></span><br/>';
|
||||
echo '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
echo '</table>';
|
||||
?>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@ -215,7 +215,7 @@ include("head.inc");
|
||||
success:function(html) {
|
||||
getstatus();
|
||||
location.reload(); // Reload Page to show update status
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -235,7 +235,7 @@ include("head.inc");
|
||||
}
|
||||
|
||||
function updatestatus() {
|
||||
|
||||
|
||||
jQuery.ajax({
|
||||
type: "POST",
|
||||
url: '/system_firmware_check.php',
|
||||
|
||||
@ -111,88 +111,88 @@ include("head.inc");
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<?php if (is_subsystem_dirty('restore')): ?><p>
|
||||
|
||||
|
||||
<form action="reboot.php" method="post">
|
||||
<input name="Submit" type="hidden" value="Yes" />
|
||||
<?php print_info_box(gettext("The firewall configuration has been changed.") . "<br />" . gettext("The firewall is now rebooting."));?><br />
|
||||
</form>
|
||||
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<form action="system_firmware_restorefullbackup.php" method="post">
|
||||
|
||||
<table class="table table-striped __nomb" align="center" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="1" class="listtopic"><?=gettext("Filename"); ?></th>
|
||||
<th colspan="1" class="listtopic"><?=gettext("Date"); ?></th>
|
||||
<th colspan="2" class="listtopic"><?=gettext("Size"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<table class="table table-striped __nomb" align="center" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="1" class="listtopic"><?=gettext("Filename"); ?></th>
|
||||
<th colspan="1" class="listtopic"><?=gettext("Date"); ?></th>
|
||||
<th colspan="2" class="listtopic"><?=gettext("Size"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<?php
|
||||
chdir("/root");
|
||||
$available_restore_files = glob("pfSense-full-backup-*");
|
||||
$counter = 0;
|
||||
foreach($available_restore_files as $arf) {
|
||||
$counter++;
|
||||
$size = exec("gzip -l /root/$arf | grep -v compressed | awk '{ print $2 }'");
|
||||
echo "<tr>";
|
||||
echo "<td class='listlr' width='50%' colspan='1'>";
|
||||
echo "<input type='radio' name='restorefile' value='$arf' /> $arf";
|
||||
echo "</td>";
|
||||
echo "<td class='listr' width='30%' colspan='1'>";
|
||||
echo date ("F d Y H:i:s", filemtime($arf));
|
||||
echo "</td>";
|
||||
echo "<td class='listr' width='40%' colspan='1'>";
|
||||
echo format_bytes($size);
|
||||
echo "</td>";
|
||||
echo "<td class='listr nowrap' width='20%' colspan='1'>";
|
||||
echo "<a onclick=\"return confirm('" . gettext("Do you really want to delete this backup?") . "')\" href='system_firmware_restorefullbackup.php?deletefile=" . htmlspecialchars($arf) . "'>";
|
||||
echo gettext("Delete");
|
||||
echo "</a> | ";
|
||||
echo "<a href='system_firmware_restorefullbackup.php?downloadbackup=" . htmlspecialchars($arf) . "'>";
|
||||
echo gettext("Download");
|
||||
echo "</a>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
if($counter == 0) {
|
||||
echo "<tr>";
|
||||
echo "<td class='listlr' width='100%' colspan='4' align='center'>";
|
||||
echo gettext("Could not locate any previous backups.");
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
chdir("/root");
|
||||
$available_restore_files = glob("pfSense-full-backup-*");
|
||||
$counter = 0;
|
||||
foreach($available_restore_files as $arf) {
|
||||
$counter++;
|
||||
$size = exec("gzip -l /root/$arf | grep -v compressed | awk '{ print $2 }'");
|
||||
echo "<tr>";
|
||||
echo "<td class='listlr' width='50%' colspan='1'>";
|
||||
echo "<input type='radio' name='restorefile' value='$arf' /> $arf";
|
||||
echo "</td>";
|
||||
echo "<td class='listr' width='30%' colspan='1'>";
|
||||
echo date ("F d Y H:i:s", filemtime($arf));
|
||||
echo "</td>";
|
||||
echo "<td class='listr' width='40%' colspan='1'>";
|
||||
echo format_bytes($size);
|
||||
echo "</td>";
|
||||
echo "<td class='listr nowrap' width='20%' colspan='1'>";
|
||||
echo "<a onclick=\"return confirm('" . gettext("Do you really want to delete this backup?") . "')\" href='system_firmware_restorefullbackup.php?deletefile=" . htmlspecialchars($arf) . "'>";
|
||||
echo gettext("Delete");
|
||||
echo "</a> | ";
|
||||
echo "<a href='system_firmware_restorefullbackup.php?downloadbackup=" . htmlspecialchars($arf) . "'>";
|
||||
echo gettext("Download");
|
||||
echo "</a>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
if($counter == 0) {
|
||||
echo "<tr>";
|
||||
echo "<td class='listlr' width='100%' colspan='4' align='center'>";
|
||||
echo gettext("Could not locate any previous backups.");
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td width="78%" colspan="3">
|
||||
<br />
|
||||
<input type="checkbox" name="overwriteconfigxml" id="overwriteconfigxml" checked="checked" /> <?=gettext("do not restore config.xml."); ?>
|
||||
<br />
|
||||
<input name="Restore" type="submit" class="btn btn-primary" id="restore" value="<?=gettext("Restore"); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="78%" colspan="3">
|
||||
<br />
|
||||
<input type="checkbox" name="overwriteconfigxml" id="overwriteconfigxml" checked="checked" /> <?=gettext("do not restore config.xml."); ?>
|
||||
<br />
|
||||
<input name="Restore" type="submit" class="btn btn-primary" id="restore" value="<?=gettext("Restore"); ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
@ -78,13 +78,13 @@ if(file_exists("{$g['tmp_path']}/manifest")) {
|
||||
//<![CDATA[
|
||||
|
||||
|
||||
function enable_altfirmwareurl(enable_over) {
|
||||
if (document.iform.alturlenable.checked || enable_over) {
|
||||
document.iform.firmwareurl.disabled = 0;
|
||||
} else {
|
||||
function enable_altfirmwareurl(enable_over) {
|
||||
if (document.iform.alturlenable.checked || enable_over) {
|
||||
document.iform.firmwareurl.disabled = 0;
|
||||
} else {
|
||||
document.iform.firmwareurl.disabled = 1;
|
||||
document.iform.firmwareurl.value = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//]]>
|
||||
@ -96,176 +96,176 @@ function enable_altfirmwareurl(enable_over) {
|
||||
<!-- row -->
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
|
||||
<? include('system_firmware_tabs.php'); ?>
|
||||
|
||||
<div class="content-box tab-content">
|
||||
|
||||
<form action="system_firmware_settings.php" method="post" name="iform" id="iform">
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
<table class="table table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" style="display:none"> <!--Unsupported Feuature, hide it-->
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Firmware Branch"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Firmware Branch"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<?php if(is_array($preset_urls_split)): ?>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("Default Auto Update URLs"); ?></td>
|
||||
<td class="vtable">
|
||||
<select name='preseturls' id='preseturls' onchange="firmwareurl.value = preseturls.value; document.iform.firmwareurl.disabled = 0; alturlenable.checked=true; jQuery('#preseturls').parent().effect('highlight');">
|
||||
<option></option>
|
||||
<?php
|
||||
foreach($preset_urls_split as $pus) {
|
||||
$pus_text = explode("\t", $pus);
|
||||
if (empty($pus_text[0]))
|
||||
continue;
|
||||
if (stristr($pus_text[0], php_uname("m")) !== false) {
|
||||
$style = " style=\"font-weight: bold\"";
|
||||
$yourarch = " (Current architecture)";
|
||||
} else {
|
||||
$style = "";
|
||||
$yourarch = "";
|
||||
}
|
||||
echo "<option value='{$pus_text[1]}'{$style}>{$pus_text[0]}{$yourarch}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br /><br /><?php echo sprintf(gettext("Entries denoted by \"Current architecture\" match the architecture of your current installation, such as %s. Changing architectures during an upgrade is not recommended, and may require a manual reboot after the update completes."), php_uname("m")); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("Default Auto Update URLs"); ?></td>
|
||||
<td class="vtable">
|
||||
<select name='preseturls' id='preseturls' onchange="firmwareurl.value = preseturls.value; document.iform.firmwareurl.disabled = 0; alturlenable.checked=true; jQuery('#preseturls').parent().effect('highlight');">
|
||||
<option></option>
|
||||
<?php
|
||||
foreach($preset_urls_split as $pus) {
|
||||
$pus_text = explode("\t", $pus);
|
||||
if (empty($pus_text[0]))
|
||||
continue;
|
||||
if (stristr($pus_text[0], php_uname("m")) !== false) {
|
||||
$style = " style=\"font-weight: bold\"";
|
||||
$yourarch = " (Current architecture)";
|
||||
} else {
|
||||
$style = "";
|
||||
$yourarch = "";
|
||||
}
|
||||
echo "<option value='{$pus_text[1]}'{$style}>{$pus_text[0]}{$yourarch}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br /><br /><?php echo sprintf(gettext("Entries denoted by \"Current architecture\" match the architecture of your current installation, such as %s. Changing architectures during an upgrade is not recommended, and may require a manual reboot after the update completes."), php_uname("m")); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("Firmware Auto Update URL"); ?></td>
|
||||
<td class="vtable">
|
||||
<input name="alturlenable" type="checkbox" id="alturlenable" value="yes" onclick="enable_altfirmwareurl()" <?php if(isset($curcfg['alturl']['enable'])) echo "checked=\"checked\""; ?> /> <?=gettext("Use an unofficial server for firmware upgrades") ?><br />
|
||||
<table summary="alternative Base URL">
|
||||
<tr><td><?=gettext("Base URL:"); ?></td><td><input name="firmwareurl" type="text" class="formfld url" id="firmwareurl" size="64" value="<?php if($curcfg['alturl']['firmwareurl']) echo $curcfg['alturl']['firmwareurl']; else echo $g['']; ?>" /></td></tr>
|
||||
</table>
|
||||
<span class="vexpl">
|
||||
<?=gettext("This is where"); ?> <?php echo $g['product_name'] ?> <?=gettext("will check for newer firmware versions when the"); ?> <a href="system_firmware_check.php"><?=gettext("System: Firmware: Auto Update"); ?></a> <?=gettext("page is viewed."); ?>
|
||||
<br />
|
||||
<b><?=gettext("NOTE:"); ?></b> <?php printf(gettext("When a custom URL is configured, the system will not verify the image has an official digital signature")); ?>
|
||||
<tr>
|
||||
<td valign="top" class="vncell"><?=gettext("Firmware Auto Update URL"); ?></td>
|
||||
<td class="vtable">
|
||||
<input name="alturlenable" type="checkbox" id="alturlenable" value="yes" onclick="enable_altfirmwareurl()" <?php if(isset($curcfg['alturl']['enable'])) echo "checked=\"checked\""; ?> /> <?=gettext("Use an unofficial server for firmware upgrades") ?><br />
|
||||
<table summary="alternative Base URL">
|
||||
<tr><td><?=gettext("Base URL:"); ?></td><td><input name="firmwareurl" type="text" class="formfld url" id="firmwareurl" size="64" value="<?php if($curcfg['alturl']['firmwareurl']) echo $curcfg['alturl']['firmwareurl']; else echo $g['']; ?>" /></td></tr>
|
||||
</table>
|
||||
<span class="vexpl">
|
||||
<?=gettext("This is where"); ?> <?php echo $g['product_name'] ?> <?=gettext("will check for newer firmware versions when the"); ?> <a href="system_firmware_check.php"><?=gettext("System: Firmware: Auto Update"); ?></a> <?=gettext("page is viewed."); ?>
|
||||
<br />
|
||||
<b><?=gettext("NOTE:"); ?></b> <?php printf(gettext("When a custom URL is configured, the system will not verify the image has an official digital signature")); ?>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<table class="table table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Updates"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Updates"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
<tr style="display:none"> <!--Unsupported Feuature, hide it-->
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Unsigned images"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="allowinvalidsig" type="checkbox" id="allowinvalidsig" value="yes" <?php if (isset($curcfg['allowinvalidsig'])) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("Allow auto-update firmware images with a missing or invalid digital signature to be used."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Dashboard check"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablecheck" type="checkbox" id="disablecheck" value="yes" <?php if (isset($curcfg['disablecheck'])) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("Disable the automatic dashboard auto-update check."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none"> <!--Unsupported Feuature, hide it-->
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Unsigned images"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="allowinvalidsig" type="checkbox" id="allowinvalidsig" value="yes" <?php if (isset($curcfg['allowinvalidsig'])) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("Allow auto-update firmware images with a missing or invalid digital signature to be used."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Dashboard check"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="disablecheck" type="checkbox" id="disablecheck" value="yes" <?php if (isset($curcfg['disablecheck'])) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("Disable the automatic dashboard auto-update check."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?php if(file_exists("/usr/local/bin/git") && $g['platform'] == "pfSense"): ?>
|
||||
|
||||
<?php if(file_exists("/usr/local/bin/git") && $g['platform'] == "pfSense"): ?>
|
||||
<table class="table table-striped" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area" style="display:none"> <!--Unsupported Feuature, hide it-->
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Gitsync"); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext("Gitsync"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Auto sync on update"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="synconupgrade" type="checkbox" id="synconupgrade" value="yes" <?php if (isset($gitcfg['synconupgrade'])) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("After updating, sync with the following repository/branch before reboot."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Auto sync on update"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="synconupgrade" type="checkbox" id="synconupgrade" value="yes" <?php if (isset($gitcfg['synconupgrade'])) echo "checked=\"checked\""; ?> />
|
||||
<br />
|
||||
<?=gettext("After updating, sync with the following repository/branch before reboot."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(is_dir("/root/pfsense/pfSenseGITREPO/pfSenseGITREPO")) {
|
||||
exec("cd /root/pfsense/pfSenseGITREPO/pfSenseGITREPO && git config remote.origin.url", $output_str);
|
||||
if(is_array($output_str) && !empty($output_str[0]))
|
||||
$lastrepositoryurl = $output_str[0];
|
||||
unset($output_str);
|
||||
}
|
||||
if(is_dir("/root/pfsense/pfSenseGITREPO/pfSenseGITREPO")) {
|
||||
exec("cd /root/pfsense/pfSenseGITREPO/pfSenseGITREPO && git config remote.origin.url", $output_str);
|
||||
if(is_array($output_str) && !empty($output_str[0]))
|
||||
$lastrepositoryurl = $output_str[0];
|
||||
unset($output_str);
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Repository URL"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="repositoryurl" type="text" class="formfld url" id="repositoryurl" size="64" value="<?php if ($gitcfg['repositoryurl']) echo $gitcfg['repositoryurl']; ?>" />
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Repository URL"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="repositoryurl" type="text" class="formfld url" id="repositoryurl" size="64" value="<?php if ($gitcfg['repositoryurl']) echo $gitcfg['repositoryurl']; ?>" />
|
||||
<?php if($lastrepositoryurl): ?>
|
||||
<br />
|
||||
<br />
|
||||
<?=sprintf(gettext("The most recently used repository was %s"), $lastrepositoryurl); ?>
|
||||
<br />
|
||||
<?=gettext("This will be used if the field is left blank."); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if(is_dir("/root/pfsense/pfSenseGITREPO/pfSenseGITREPO")) {
|
||||
exec("cd /root/pfsense/pfSenseGITREPO/pfSenseGITREPO && git branch", $output_str);
|
||||
if(is_array($output_str)) {
|
||||
foreach($output_str as $output_line) {
|
||||
if(strstr($output_line, '* ')) {
|
||||
$lastbranch = substr($output_line, 2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($output_str);
|
||||
}
|
||||
if(is_dir("/root/pfsense/pfSenseGITREPO/pfSenseGITREPO")) {
|
||||
exec("cd /root/pfsense/pfSenseGITREPO/pfSenseGITREPO && git branch", $output_str);
|
||||
if(is_array($output_str)) {
|
||||
foreach($output_str as $output_line) {
|
||||
if(strstr($output_line, '* ')) {
|
||||
$lastbranch = substr($output_line, 2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
unset($output_str);
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Branch name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="branch" type="text" class="formfld unknown" id="branch" size="64" value="<?php if ($gitcfg['branch']) echo $gitcfg['branch']; ?>" />
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Branch name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="branch" type="text" class="formfld unknown" id="branch" size="64" value="<?php if ($gitcfg['branch']) echo $gitcfg['branch']; ?>" />
|
||||
<?php if($lastbranch): ?>
|
||||
<br />
|
||||
<br />
|
||||
<?=sprintf(gettext("The most recently used branch was %s"), $lastbranch); ?>
|
||||
<?php else: ?>
|
||||
<br />
|
||||
<br />
|
||||
<?=gettext("Usually the branch name is master"); ?>
|
||||
<?php endif; ?>
|
||||
<br />
|
||||
<?=gettext("Note: Sync will not be performed if a branch is not specified."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
<br />
|
||||
<?=gettext("Note: Sync will not be performed if a branch is not specified."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<table class="table table-striped __nomb" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
|
||||
<table class="table table-striped __nomb" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
@ -273,10 +273,10 @@ function enable_altfirmwareurl(enable_over) {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
@ -290,4 +290,4 @@ enable_altfirmwareurl();
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -34,4 +34,4 @@
|
||||
//if($g['hidedownloadbackup'] == false)
|
||||
// $tab_array[] = array(gettext("Restore Full Backup"), $active_tab == "/system_firmware_restorefullbackup.php", "system_firmware_restorefullbackup.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
?>
|
||||
|
||||
@ -111,17 +111,17 @@ $main_buttons = array(
|
||||
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('staticroutes')): ?><br/>
|
||||
<?php print_info_box_np(sprintf(gettext("The gateway configuration has been changed.%sYou must apply the changes in order for them to take effect."), "<br />"));?><br /><br />
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[0] = array(gettext("Gateways"), false, "system_gateways.php");
|
||||
@ -129,14 +129,14 @@ $main_buttons = array(
|
||||
$tab_array[2] = array(gettext("Groups"), true, "system_gateway_groups.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<form action="system_gateway_groups.php" method="post" name="iform" id="iform">
|
||||
<input type="hidden" name="y1" value="1" />
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<thead>
|
||||
@ -146,8 +146,8 @@ $main_buttons = array(
|
||||
<td width="20%" class="listhdrr"><?=gettext("Priority");?></td>
|
||||
<td width="30%" class="listhdr"><?=gettext("Description");?></td>
|
||||
<td width="10%" class="list">
|
||||
|
||||
</td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -197,13 +197,13 @@ $main_buttons = array(
|
||||
</div>
|
||||
<p><b><?=gettext("Note:");?></b> <?=gettext("Remember to use these Gateway Groups in firewall rules in order to enable load balancing, failover, or policy-based routing. Without rules directing traffic into the Gateway Groups, they will not be used.");?></p>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -1,22 +1,22 @@
|
||||
<?php
|
||||
<?php
|
||||
/* $Id$ */
|
||||
/*
|
||||
system_gateway_groups_edit.php
|
||||
part of pfSense (https://www.pfsense.org)
|
||||
|
||||
|
||||
Copyright (C) 2010 Seth Mos <seth.mos@dds.nl>.
|
||||
All rights reserved.
|
||||
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
|
||||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
@ -83,9 +83,9 @@ if ($_POST) {
|
||||
/* input validation */
|
||||
$reqdfields = explode(" ", "name");
|
||||
$reqdfieldsn = explode(",", "Name");
|
||||
|
||||
|
||||
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
|
||||
|
||||
|
||||
if (! isset($_POST['name'])) {
|
||||
$input_errors[] = gettext("A valid gateway group name must be specified.");
|
||||
}
|
||||
@ -138,12 +138,12 @@ if ($_POST) {
|
||||
$a_gateway_groups[$id] = $gateway_group;
|
||||
else
|
||||
$a_gateway_groups[] = $gateway_group;
|
||||
|
||||
|
||||
mark_subsystem_dirty('staticroutes');
|
||||
mark_subsystem_dirty('gwgroup.' . $gateway_group['name']);
|
||||
|
||||
|
||||
write_config();
|
||||
|
||||
|
||||
header("Location: system_gateway_groups.php");
|
||||
exit;
|
||||
}
|
||||
@ -229,10 +229,10 @@ jQuery(function ($) {
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="system groups edit">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("Edit gateway group entry"); ?></td>
|
||||
</tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Group Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<td width="78%" class="vtable">
|
||||
<input name="name" type="text" class="formfld unknown" id="name" size="20" value="<?=htmlspecialchars($pconfig['name']);?>" />
|
||||
<br /> <span class="vexpl"><?=gettext("Group Name"); ?></span></td>
|
||||
</tr>
|
||||
@ -306,7 +306,7 @@ jQuery(function ($) {
|
||||
echo "</select></td>";
|
||||
echo "<td class='listr'><strong>{$gateway['descr']} </strong>";
|
||||
echo "</td></tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
<br /><span class="vexpl">
|
||||
@ -336,13 +336,13 @@ jQuery(function ($) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<td width="78%" class="vtable">
|
||||
<input name="descr" type="text" class="formfld unknown" id="descr" size="40" value="<?=htmlspecialchars($pconfig['descr']);?>" />
|
||||
<br /> <span class="vexpl"><?=gettext("You may enter a description here for your reference (not parsed)."); ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<td width="78%">
|
||||
<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
|
||||
<input type="button" class="formbtn" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
||||
<?php if (isset($id) && $a_gateway_groups[$id]): ?>
|
||||
|
||||
@ -191,201 +191,201 @@ $main_buttons = array(
|
||||
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- row -->
|
||||
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if (is_subsystem_dirty('staticroutes')) print_info_box_np(gettext("The gateway configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
|
||||
if ($input_errors) print_input_errors($input_errors);
|
||||
if ($savemsg) print_info_box($savemsg);
|
||||
if (is_subsystem_dirty('staticroutes')) print_info_box_np(gettext("The gateway configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
|
||||
?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
<? include('system_gateways_tabs.php'); ?>
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<form action="system_gateways.php" method="post">
|
||||
|
||||
<form action="system_gateways.php" method="post">
|
||||
|
||||
<table class="table table-striped table-sort sortable" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area">
|
||||
<thead>
|
||||
<tr id="frheader">
|
||||
<th width="4%" colspan="2" class="list"> </th>
|
||||
<th width="15%" class="listhdrr"><?=gettext("Name"); ?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Interface"); ?></th>
|
||||
<th width="15%" class="listhdrr"><?=gettext("Gateway"); ?></th>
|
||||
<th width="15%" class="listhdrr"><?=gettext("Monitor IP"); ?></th>
|
||||
<th width="31%" class="listhdr"><?=gettext("Description"); ?></th>
|
||||
<th width="10%" class="list">
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<thead>
|
||||
<tr id="frheader">
|
||||
<th width="4%" colspan="2" class="list"> </th>
|
||||
<th width="15%" class="listhdrr"><?=gettext("Name"); ?></th>
|
||||
<th width="10%" class="listhdrr"><?=gettext("Interface"); ?></th>
|
||||
<th width="15%" class="listhdrr"><?=gettext("Gateway"); ?></th>
|
||||
<th width="15%" class="listhdrr"><?=gettext("Monitor IP"); ?></th>
|
||||
<th width="31%" class="listhdr"><?=gettext("Description"); ?></th>
|
||||
<th width="10%" class="list">
|
||||
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
$textse = "</span>";
|
||||
$i = 0;
|
||||
foreach ($a_gateways as $gateway):
|
||||
if (isset($gateway['disabled']) || isset($gateway['inactive'])) {
|
||||
$textss = "<span class=\"text-muted\">";
|
||||
$iconfn = "glyphicon glyphicon-play text-muted";
|
||||
} else {
|
||||
$textss = "<span>";
|
||||
$iconfn = "glyphicon glyphicon-play text-success";
|
||||
}
|
||||
if (isset($gateway['disabled']) || isset($gateway['inactive'])) {
|
||||
$textss = "<span class=\"text-muted\">";
|
||||
$iconfn = "glyphicon glyphicon-play text-muted";
|
||||
} else {
|
||||
$textss = "<span>";
|
||||
$iconfn = "glyphicon glyphicon-play text-success";
|
||||
}
|
||||
?>
|
||||
<tr valign="top" id="fr<?=$i;?>">
|
||||
<td class="listt">
|
||||
|
||||
<tr valign="top" id="fr<?=$i;?>">
|
||||
<td class="listt">
|
||||
|
||||
<?php
|
||||
if (is_numeric($gateway['attribute'])):
|
||||
if (is_numeric($gateway['attribute'])):
|
||||
?>
|
||||
<input type="checkbox" id="frc<?=$i;?>" name="rule[]" value="<?=$i;?>" onclick="fr_bgcolor('<?=$i;?>')" style="margin: 0; padding: 0; width: 15px; height: 15px;" />
|
||||
<input type="checkbox" id="frc<?=$i;?>" name="rule[]" value="<?=$i;?>" onclick="fr_bgcolor('<?=$i;?>')" style="margin: 0; padding: 0; width: 15px; height: 15px;" />
|
||||
<?php
|
||||
else:
|
||||
else:
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
<td class="listt" align="center">
|
||||
</td>
|
||||
<td class="listt" align="center">
|
||||
<?php
|
||||
if (isset($gateway['inactive'])):
|
||||
if (isset($gateway['inactive'])):
|
||||
?>
|
||||
<span class="glyphicon glyphicon-remove text-muted" title="<?=gettext("This gateway is inactive because interface is missing");?>"></span>
|
||||
|
||||
<span class="glyphicon glyphicon-remove text-muted" title="<?=gettext("This gateway is inactive because interface is missing");?>"></span>
|
||||
|
||||
<?php
|
||||
elseif (is_numeric($gateway['attribute'])):
|
||||
elseif (is_numeric($gateway['attribute'])):
|
||||
?>
|
||||
<a href="?act=toggle&id=<?=$i;?>" title="<?=gettext("click to toggle enabled/disabled status");?>" >
|
||||
<span class="glyphicon <?php echo $iconfn;?>"></span>
|
||||
|
||||
</a>
|
||||
<a href="?act=toggle&id=<?=$i;?>" title="<?=gettext("click to toggle enabled/disabled status");?>" >
|
||||
<span class="glyphicon <?php echo $iconfn;?>"></span>
|
||||
|
||||
</a>
|
||||
<?php
|
||||
else:
|
||||
else:
|
||||
?>
|
||||
<span class="glyphicon <?php echo $iconfn;?>" title="<?=gettext("click to toggle enabled/disabled status");?>"></span>
|
||||
<span class="glyphicon <?php echo $iconfn;?>" title="<?=gettext("click to toggle enabled/disabled status");?>"></span>
|
||||
<?php
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
<td class="listlr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
</td>
|
||||
<td class="listlr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<?php
|
||||
echo $textss;
|
||||
echo $gateway['name'];
|
||||
if(isset($gateway['defaultgw']))
|
||||
echo " <strong>(default)</strong>";
|
||||
echo $textse;
|
||||
echo $textss;
|
||||
echo $gateway['name'];
|
||||
if(isset($gateway['defaultgw']))
|
||||
echo " <strong>(default)</strong>";
|
||||
echo $textse;
|
||||
?>
|
||||
</td>
|
||||
<td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
</td>
|
||||
<td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<?php
|
||||
echo $textss;
|
||||
echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']));
|
||||
echo $textse;
|
||||
echo $textss;
|
||||
echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($gateway['friendlyiface']));
|
||||
echo $textse;
|
||||
?>
|
||||
</td>
|
||||
<td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
</td>
|
||||
<td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<?php
|
||||
echo $textss;
|
||||
echo $gateway['gateway'] . " ";
|
||||
echo $textse;
|
||||
echo $textss;
|
||||
echo $gateway['gateway'] . " ";
|
||||
echo $textse;
|
||||
?>
|
||||
</td>
|
||||
<td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
</td>
|
||||
<td class="listr" onclick="fr_toggle(<?=$i;?>)" id="frd<?=$i;?>" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<?php
|
||||
echo $textss;
|
||||
echo htmlspecialchars($gateway['monitor']) . " ";
|
||||
echo $textse;
|
||||
echo $textss;
|
||||
echo htmlspecialchars($gateway['monitor']) . " ";
|
||||
echo $textse;
|
||||
?>
|
||||
</td>
|
||||
</td>
|
||||
<?php
|
||||
if (is_numeric($gateway['attribute'])):
|
||||
?>
|
||||
<td class="listbg" onclick="fr_toggle(<?=$i;?>)" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<td class="listbg" onclick="fr_toggle(<?=$i;?>)" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
<td class="listbgns" onclick="fr_toggle(<?=$i;?>)" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<td class="listbgns" onclick="fr_toggle(<?=$i;?>)" ondblclick="document.location='system_gateways_edit.php?id=<?=$i;?>';">
|
||||
<?php
|
||||
endif;
|
||||
echo $textss;
|
||||
echo htmlspecialchars($gateway['descr']) . " ";
|
||||
echo $textse;
|
||||
echo $textss;
|
||||
echo htmlspecialchars($gateway['descr']) . " ";
|
||||
echo $textse;
|
||||
?>
|
||||
</td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
|
||||
<a href="system_gateways_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-pencil"></span>
|
||||
</a>
|
||||
|
||||
</td>
|
||||
<td valign="middle" class="list nowrap">
|
||||
|
||||
<a href="system_gateways_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-pencil"></span>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
if (is_numeric($gateway['attribute'])):
|
||||
if (is_numeric($gateway['attribute'])):
|
||||
?>
|
||||
|
||||
<a href="system_gateways.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this gateway?"); ?>')" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
|
||||
|
||||
<a href="system_gateways.php?act=del&id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this gateway?"); ?>')" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</a>
|
||||
|
||||
<?php
|
||||
|
||||
endif;
|
||||
|
||||
endif;
|
||||
?>
|
||||
<a href="system_gateways_edit.php?dup=<?=$i;?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<a href="system_gateways_edit.php?dup=<?=$i;?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$i++;
|
||||
endforeach;
|
||||
?>
|
||||
<tr>
|
||||
<td class="list" colspan="7"></td>
|
||||
<td class="list">
|
||||
<table border="0" cellspacing="0" cellpadding="1" summary="edit">
|
||||
<tr>
|
||||
<td>
|
||||
<tr>
|
||||
<td class="list" colspan="7"></td>
|
||||
<td class="list">
|
||||
<table border="0" cellspacing="0" cellpadding="1" summary="edit">
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
if ($i > 0):
|
||||
|
||||
if ($i > 0):
|
||||
|
||||
?>
|
||||
<button type="submit" name="del_x" class="btn btn-default btn-xs"
|
||||
title="<?=gettext("delete selected items");?>"
|
||||
onclick="return confirm('<?=gettext("Do you really want to delete the selected gateway items?");?>')">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</button>
|
||||
<button type="submit" name="del_x" class="btn btn-default btn-xs"
|
||||
title="<?=gettext("delete selected items");?>"
|
||||
onclick="return confirm('<?=gettext("Do you really want to delete the selected gateway items?");?>')">
|
||||
<span class="glyphicon glyphicon-remove"></span>
|
||||
</button>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -556,7 +556,7 @@ function calculated_change(calculated_obj, samples_obj) {
|
||||
switch (samples_obj.name) {
|
||||
|
||||
case 'avg_delay_samples':
|
||||
// How many replies should be used to compute average delay
|
||||
// How many replies should be used to compute average delay
|
||||
// for controlling "delay" alarms.
|
||||
// Calculate a reasonable value based on gateway probe interval and RRD 1 minute average graph step size (60).
|
||||
if (calculated_obj.checked && (document.iform.interval.value > 0))
|
||||
@ -630,32 +630,32 @@ function enable_change() {
|
||||
</script>
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
<div id="inputerrors"></div>
|
||||
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<header class="content-box-head container-fluid">
|
||||
<h3><?=gettext("Edit gateway");?></h3>
|
||||
</header>
|
||||
|
||||
<div class="content-box-main col-xs-12">
|
||||
|
||||
<form action="system_gateways_edit.php" method="post" name="iform" id="iform">
|
||||
<?php
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<header class="content-box-head container-fluid">
|
||||
<h3><?=gettext("Edit gateway");?></h3>
|
||||
</header>
|
||||
|
||||
<div class="content-box-main col-xs-12">
|
||||
|
||||
<form action="system_gateways_edit.php" method="post" name="iform" id="iform">
|
||||
<?php
|
||||
/* If this is a system gateway we need this var */
|
||||
if(($pconfig['attribute'] == "system") || is_numeric($pconfig['attribute'])) {
|
||||
echo "<input type='hidden' name='attribute' id='attribute' value=\"" . htmlspecialchars($pconfig['attribute']) . "\" />\n";
|
||||
}
|
||||
echo "<input type='hidden' name='friendlyiface' id='friendlyiface' value=\"" . htmlspecialchars($pconfig['friendlyiface']) . "\" />\n";
|
||||
?>
|
||||
|
||||
?>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<tr>
|
||||
@ -827,7 +827,7 @@ function enable_change() {
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Average Delay Replies Qty");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="avg_delay_samples" type="text" class="formfld unknown" id="avg_delay_samples" size="2"
|
||||
value="<?=htmlspecialchars($pconfig['avg_delay_samples']);?>" onchange="samples_change(document.iform.avg_delay_samples_calculated, this)" />
|
||||
value="<?=htmlspecialchars($pconfig['avg_delay_samples']);?>" onchange="samples_change(document.iform.avg_delay_samples_calculated, this)" />
|
||||
<input name="avg_delay_samples_calculated" type="checkbox" id="avg_delay_samples_calculated" value="yes" <?php if ($pconfig['avg_delay_samples_calculated'] == true) echo "checked=\"checked\""; ?> onclick="calculated_change(this, document.iform.avg_delay_samples)" />
|
||||
<?=gettext("Use calculated value."); ?>
|
||||
<br /><span class="vexpl"><?=gettext(sprintf("How many replies should be used to compute average delay for controlling \"delay\" alarms? Default is %d.", $apinger_default['avg_delay_samples']));?><br /><br /></span>
|
||||
@ -882,9 +882,9 @@ function enable_change() {
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
@ -896,4 +896,4 @@ monitor_change();
|
||||
calculate_state_change();
|
||||
//]]>
|
||||
</script>
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
<?
|
||||
require_once("system.php");
|
||||
require_once("system.php");
|
||||
|
||||
@ -245,20 +245,20 @@ function presubmit() {
|
||||
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php
|
||||
if ($input_errors)
|
||||
print_input_errors($input_errors);
|
||||
if ($savemsg)
|
||||
print_info_box($savemsg);
|
||||
?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("Users"), false, "system_usermanager.php");
|
||||
$tab_array[] = array(gettext("Groups"), true, "system_groupmanager.php");
|
||||
@ -266,8 +266,8 @@ function presubmit() {
|
||||
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<?php
|
||||
if($act == "new" || $act == "edit"):
|
||||
@ -276,9 +276,9 @@ function presubmit() {
|
||||
<input type="hidden" id="act" name="act" value="" />
|
||||
<input type="hidden" id="groupid" name="groupid" value="<?=(isset($id) ? $id : '');?>" />
|
||||
<input type="hidden" id="privid" name="privid" value="" />
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<table class="table table-striped table-sort">
|
||||
<?php
|
||||
$ro = "";
|
||||
if ($pconfig['gtype'] == "system")
|
||||
@ -418,10 +418,10 @@ function presubmit() {
|
||||
<a href="system_groupmanager_addprivs.php?groupid=<?=htmlspecialchars($id)?>" class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-add"></span>
|
||||
</a>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
@ -450,9 +450,9 @@ function presubmit() {
|
||||
<input type="hidden" id="act" name="act" value="" />
|
||||
<input type="hidden" id="groupid" name="groupid" value="<?=(isset($id) ? $id : '');?>" />
|
||||
<input type="hidden" id="groupname" name="groupname" value="" />
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<table class="table table-striped table-sort">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="25%" class="listhdrr"><?=gettext("Group name");?></th>
|
||||
@ -525,7 +525,7 @@ function presubmit() {
|
||||
<?php
|
||||
if($group['scope'] != "system"):
|
||||
?>
|
||||
<button type="submit" name="delgroup[]"
|
||||
<button type="submit" name="delgroup[]"
|
||||
class="btn btn-default btn-xs"
|
||||
onclick="document.getElementById('groupid').value='<?=$i;?>';
|
||||
document.getElementById('groupname').value='<?=$group['name'];?>';
|
||||
@ -545,15 +545,15 @@ function presubmit() {
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -205,7 +205,7 @@ function update_description() {
|
||||
}
|
||||
}
|
||||
selectAll();
|
||||
//]]>
|
||||
//]]>
|
||||
</script>
|
||||
<br />
|
||||
</td>
|
||||
|
||||
@ -106,280 +106,280 @@ include("head.inc");
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
<!-- row -->
|
||||
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
<div class="content-box">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<form action="system_hasync.php" method="post" name="iform" id="iform">
|
||||
|
||||
<table class="table table-primary" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic">State Synchronization Settings (pfsync)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize States</td>
|
||||
<td class="vtable">
|
||||
<input id='pfsyncenabled' type='checkbox' name='pfsyncenabled' value='on' <?php if ($pconfig['pfsyncenabled'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
pfsync transfers state insertion, update, and deletion messages between firewalls. Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol (IP Protocol 240). It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.<p>This setting should be enabled on all members of a failover group.</p><p>NOTE: Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Interface</td>
|
||||
<td class="vtable">
|
||||
<select id='pfsyncinterface' name="pfsyncinterface">
|
||||
<?php foreach ($ifaces as $ifname => $iface) { ?>
|
||||
<?php $selected = ($pconfig['pfsyncinterface'] === $ifname) ? 'selected="selected"' : ''; ?>
|
||||
<option value="<?= htmlentities($ifname); ?>" <?= $selected ?>><?= htmlentities($iface); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<br />
|
||||
If Synchronize States is enabled, it will utilize this interface for communication.<br />
|
||||
<b>NOTE:</b> We recommend setting this to a interface other than LAN! A dedicated interface works the best.<br />
|
||||
<b>NOTE:</b> You must define a IP on each machine participating in this failover group.<br />
|
||||
<b>NOTE:</b> You must have an IP assigned to the interface on any participating sync nodes.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">pfsync Synchronize Peer IP</td>
|
||||
<td class="vtable">
|
||||
<input id='pfsyncpeerip' name='pfsyncpeerip' class='formfld unknown' value='<?= htmlentities($pconfig['pfsyncpeerip']); ?>' />
|
||||
<br />
|
||||
Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<table class="table table-primary" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic">State Synchronization Settings (pfsync)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize States</td>
|
||||
<td class="vtable">
|
||||
<input id='pfsyncenabled' type='checkbox' name='pfsyncenabled' value='on' <?php if ($pconfig['pfsyncenabled'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
pfsync transfers state insertion, update, and deletion messages between firewalls. Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol (IP Protocol 240). It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.<p>This setting should be enabled on all members of a failover group.</p><p>NOTE: Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Interface</td>
|
||||
<td class="vtable">
|
||||
<select id='pfsyncinterface' name="pfsyncinterface">
|
||||
<?php foreach ($ifaces as $ifname => $iface) { ?>
|
||||
<?php $selected = ($pconfig['pfsyncinterface'] === $ifname) ? 'selected="selected"' : ''; ?>
|
||||
<option value="<?= htmlentities($ifname); ?>" <?= $selected ?>><?= htmlentities($iface); ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
<br />
|
||||
If Synchronize States is enabled, it will utilize this interface for communication.<br />
|
||||
<b>NOTE:</b> We recommend setting this to a interface other than LAN! A dedicated interface works the best.<br />
|
||||
<b>NOTE:</b> You must define a IP on each machine participating in this failover group.<br />
|
||||
<b>NOTE:</b> You must have an IP assigned to the interface on any participating sync nodes.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">pfsync Synchronize Peer IP</td>
|
||||
<td class="vtable">
|
||||
<input id='pfsyncpeerip' name='pfsyncpeerip' class='formfld unknown' value='<?= htmlentities($pconfig['pfsyncpeerip']); ?>' />
|
||||
<br />
|
||||
Setting this option will force pfsync to synchronize its state table to this IP address. The default is directed multicast.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-primary" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic">Configuration Synchronization Settings (XMLRPC Sync)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Config to IP</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetoip' name='synchronizetoip' class='formfld unknown' value='<?= htmlentities($pconfig['synchronizetoip']); ?>' />
|
||||
<br />
|
||||
Enter the IP address of the firewall to which the selected configuration sections should be synchronized.<br />
|
||||
<br />
|
||||
NOTE: XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system's port and protocol are set accordingly!<br />
|
||||
<br />
|
||||
NOTE: <b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Remote System Username</td>
|
||||
<td class="vtable">
|
||||
<input id='username' name='username' class='formfld unknown' value='<?= htmlentities($pconfig['username']); ?>' />
|
||||
<br />
|
||||
Enter the webConfigurator username of the system entered above for synchronizing your configuration.<br />
|
||||
<br />
|
||||
NOTE: <b>Do not use the Synchronize Config to IP and username option on backup cluster members!</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Remote System Password</td>
|
||||
<td class="vtable">
|
||||
<input id='password' type='password' name='password' class='formfld pwd' value='<?= htmlentities($pconfig['password']); ?>' />
|
||||
<br />
|
||||
Enter the webConfigurator password of the system entered above for synchronizing your configuration.<br />
|
||||
<br />
|
||||
NOTE: <b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Users and Groups</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeusers' type='checkbox' name='synchronizeusers' value='on' <?php if ($pconfig['synchronizeusers'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the users and groups over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Auth Servers</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeauthservers' type='checkbox' name='synchronizeauthservers' value='on' <?php if ($pconfig['synchronizeauthservers'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Certificates</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizecerts' type='checkbox' name='synchronizecerts' value='on' <?php if ($pconfig['synchronizecerts'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize rules</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizerules' type='checkbox' name='synchronizerules' value='on' <?php if ($pconfig['synchronizerules'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the firewall rules to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Firewall Schedules</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeschedules' type='checkbox' name='synchronizeschedules' value='on' <?php if ($pconfig['synchronizeschedules'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the firewall schedules to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize aliases</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizealiases' type='checkbox' name='synchronizealiases' value='on' <?php if ($pconfig['synchronizealiases'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the aliases over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize NAT</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizenat' type='checkbox' name='synchronizenat' value='on' <?php if ($pconfig['synchronizenat'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the NAT rules over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize IPsec</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeipsec' type='checkbox' name='synchronizeipsec' value='on' <?php if ($pconfig['synchronizeipsec'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the IPsec configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize OpenVPN</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeopenvpn' type='checkbox' name='synchronizeopenvpn' value='on' <?php if ($pconfig['synchronizeopenvpn'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the OpenVPN configuration to the other HA host when changes are made. Using this option implies "Synchronize Certificates" as they are required for OpenVPN.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize DHCPD</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizedhcpd' type='checkbox' name='synchronizedhcpd' value='on' <?php if ($pconfig['synchronizedhcpd'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the DHCP Server settings over to the other HA host when changes are made. This only applies to DHCP for IPv4.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Wake on LAN</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizewol' type='checkbox' name='synchronizewol' value='on' <?php if ($pconfig['synchronizewol'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the WoL configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Static Routes</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizestaticroutes' type='checkbox' name='synchronizestaticroutes' value='on' <?php if ($pconfig['synchronizestaticroutes'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Static Route configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Load Balancer</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizelb' type='checkbox' name='synchronizelb' value='on' <?php if ($pconfig['synchronizelb'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Load Balancer configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Virtual IPs</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizevirtualip' type='checkbox' name='synchronizevirtualip' value='on' <?php if ($pconfig['synchronizevirtualip'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the CARP Virtual IPs to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize traffic shaper(queues)</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetrafficshaper' type='checkbox' name='synchronizetrafficshaper' value='on' <?php if ($pconfig['synchronizetrafficshaper'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the traffic shaper configuration for queues to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize traffic shaper(limiter)</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetrafficshaperlimiter' type='checkbox' name='synchronizetrafficshaperlimiter' value='on' <?php if ($pconfig['synchronizetrafficshaperlimiter'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the traffic shaper configuration for limiters to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize traffic shaper(layer7)</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetrafficshaperlayer7' type='checkbox' name='synchronizetrafficshaperlayer7' value='on' <?php if ($pconfig['synchronizetrafficshaperlayer7'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the traffic shaper configuration for layer7 to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize DNS Forwarder</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizednsforwarder' type='checkbox' name='synchronizednsforwarder' value='on' <?php if ($pconfig['synchronizednsforwarder'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the DNS Forwarder configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Captive Portal</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizecaptiveportal' type='checkbox' name='synchronizecaptiveportal' value='on' <?php if ($pconfig['synchronizecaptiveportal'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Captive Portal configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input name="id" type="hidden" value="0" />
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="Save" />
|
||||
<input type="button" class="btn btn-default" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table class="table table-primary" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2" class="listtopic">Configuration Synchronization Settings (XMLRPC Sync)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Config to IP</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetoip' name='synchronizetoip' class='formfld unknown' value='<?= htmlentities($pconfig['synchronizetoip']); ?>' />
|
||||
<br />
|
||||
Enter the IP address of the firewall to which the selected configuration sections should be synchronized.<br />
|
||||
<br />
|
||||
NOTE: XMLRPC sync is currently only supported over connections using the same protocol and port as this system - make sure the remote system's port and protocol are set accordingly!<br />
|
||||
<br />
|
||||
NOTE: <b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Remote System Username</td>
|
||||
<td class="vtable">
|
||||
<input id='username' name='username' class='formfld unknown' value='<?= htmlentities($pconfig['username']); ?>' />
|
||||
<br />
|
||||
Enter the webConfigurator username of the system entered above for synchronizing your configuration.<br />
|
||||
<br />
|
||||
NOTE: <b>Do not use the Synchronize Config to IP and username option on backup cluster members!</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Remote System Password</td>
|
||||
<td class="vtable">
|
||||
<input id='password' type='password' name='password' class='formfld pwd' value='<?= htmlentities($pconfig['password']); ?>' />
|
||||
<br />
|
||||
Enter the webConfigurator password of the system entered above for synchronizing your configuration.<br />
|
||||
<br />
|
||||
NOTE: <b>Do not use the Synchronize Config to IP and password option on backup cluster members!</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Users and Groups</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeusers' type='checkbox' name='synchronizeusers' value='on' <?php if ($pconfig['synchronizeusers'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the users and groups over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Auth Servers</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeauthservers' type='checkbox' name='synchronizeauthservers' value='on' <?php if ($pconfig['synchronizeauthservers'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Certificates</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizecerts' type='checkbox' name='synchronizecerts' value='on' <?php if ($pconfig['synchronizecerts'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize rules</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizerules' type='checkbox' name='synchronizerules' value='on' <?php if ($pconfig['synchronizerules'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the firewall rules to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Firewall Schedules</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeschedules' type='checkbox' name='synchronizeschedules' value='on' <?php if ($pconfig['synchronizeschedules'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the firewall schedules to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize aliases</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizealiases' type='checkbox' name='synchronizealiases' value='on' <?php if ($pconfig['synchronizealiases'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the aliases over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize NAT</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizenat' type='checkbox' name='synchronizenat' value='on' <?php if ($pconfig['synchronizenat'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the NAT rules over to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize IPsec</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeipsec' type='checkbox' name='synchronizeipsec' value='on' <?php if ($pconfig['synchronizeipsec'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the IPsec configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize OpenVPN</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizeopenvpn' type='checkbox' name='synchronizeopenvpn' value='on' <?php if ($pconfig['synchronizeopenvpn'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the OpenVPN configuration to the other HA host when changes are made. Using this option implies "Synchronize Certificates" as they are required for OpenVPN.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize DHCPD</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizedhcpd' type='checkbox' name='synchronizedhcpd' value='on' <?php if ($pconfig['synchronizedhcpd'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the DHCP Server settings over to the other HA host when changes are made. This only applies to DHCP for IPv4.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Wake on LAN</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizewol' type='checkbox' name='synchronizewol' value='on' <?php if ($pconfig['synchronizewol'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the WoL configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Static Routes</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizestaticroutes' type='checkbox' name='synchronizestaticroutes' value='on' <?php if ($pconfig['synchronizestaticroutes'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Static Route configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Load Balancer</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizelb' type='checkbox' name='synchronizelb' value='on' <?php if ($pconfig['synchronizelb'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Load Balancer configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Virtual IPs</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizevirtualip' type='checkbox' name='synchronizevirtualip' value='on' <?php if ($pconfig['synchronizevirtualip'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the CARP Virtual IPs to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize traffic shaper(queues)</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetrafficshaper' type='checkbox' name='synchronizetrafficshaper' value='on' <?php if ($pconfig['synchronizetrafficshaper'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the traffic shaper configuration for queues to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize traffic shaper(limiter)</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetrafficshaperlimiter' type='checkbox' name='synchronizetrafficshaperlimiter' value='on' <?php if ($pconfig['synchronizetrafficshaperlimiter'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the traffic shaper configuration for limiters to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize traffic shaper(layer7)</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizetrafficshaperlayer7' type='checkbox' name='synchronizetrafficshaperlayer7' value='on' <?php if ($pconfig['synchronizetrafficshaperlayer7'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the traffic shaper configuration for layer7 to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize DNS Forwarder</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizednsforwarder' type='checkbox' name='synchronizednsforwarder' value='on' <?php if ($pconfig['synchronizednsforwarder'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the DNS Forwarder configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="22%" class="vncell">Synchronize Captive Portal</td>
|
||||
<td class="vtable">
|
||||
<input id='synchronizecaptiveportal' type='checkbox' name='synchronizecaptiveportal' value='on' <?php if ($pconfig['synchronizecaptiveportal'] === "on") echo "checked='checked'"; ?> />
|
||||
<br />
|
||||
When this option is enabled, this system will automatically sync the Captive Portal configuration to the other HA host when changes are made.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<input name="id" type="hidden" value="0" />
|
||||
<input name="Submit" type="submit" class="btn btn-primary" value="Save" />
|
||||
<input type="button" class="btn btn-default" value="<?=gettext("Cancel");?>" onclick="window.location.href='<?=$referer;?>'" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -6,4 +6,4 @@
|
||||
$tab_array[] = array(gettext("Certificates"), $active_tab == "/system_certmanager.php", "system_certmanager.php");
|
||||
$tab_array[] = array(gettext("Certificate Revocation"), $active_tab == "/system_crlmanager.php", "system_crlmanager.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
?>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
include("pkg_mgr_installed.php");
|
||||
?>
|
||||
?>
|
||||
|
||||
@ -212,17 +212,17 @@ $main_buttons = array(
|
||||
<script type="text/javascript" src="/javascript/row_toggle.js"></script>
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php if ($savemsg) print_info_box($savemsg); ?>
|
||||
<?php if (is_subsystem_dirty('staticroutes')): ?><p>
|
||||
<?php print_info_box_np(sprintf(gettext("The static route configuration has been changed.%sYou must apply the changes in order for them to take effect."), "<br />"));?><br /></p>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[0] = array(gettext("Gateways"), false, "system_gateways.php");
|
||||
@ -230,17 +230,17 @@ $main_buttons = array(
|
||||
$tab_array[2] = array(gettext("Groups"), false, "system_gateway_groups.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<form action="system_routes.php" method="post" name="iform" id="iform">
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
|
||||
<tr id="frheader">
|
||||
<td width="2%" class="list"> </td>
|
||||
<td width="2%" class="list"> </td>
|
||||
@ -249,7 +249,7 @@ $main_buttons = array(
|
||||
<td width="15%" class="listhdrr"><?=gettext("Interface");?></td>
|
||||
<td width="29%" class="listhdr"><?=gettext("Description");?></td>
|
||||
<td width="10%" class="list">
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php $i = 0; foreach ($a_routes as $route): ?>
|
||||
@ -355,7 +355,7 @@ $main_buttons = array(
|
||||
<span class="btn btn-default btn-xs">
|
||||
<span class="glyphicon glyphicon-remove text-muted"></span>
|
||||
</span>
|
||||
|
||||
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
@ -372,14 +372,14 @@ $main_buttons = array(
|
||||
</table>
|
||||
</div>
|
||||
<p><b><?=gettext("Note:");?></b> <?=gettext("Do not enter static routes for networks assigned on any interface of this firewall. Static routes are only used for networks reachable via a different router, and not reachable via your default gateway.");?></p>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -217,24 +217,24 @@ include("head.inc");
|
||||
<script type="text/javascript" src="/javascript/jquery.ipv4v6ify.js"></script>
|
||||
<script type="text/javascript" src="/javascript/autosuggest.js"></script>
|
||||
<script type="text/javascript" src="/javascript/suggestions.js"></script>
|
||||
|
||||
|
||||
<?php include("fbegin.inc"); ?>
|
||||
|
||||
<section class="page-content-main">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="row">
|
||||
<?php if ($input_errors) print_input_errors($input_errors); ?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<form action="system_routes_edit.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<form action="system_routes_edit.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<tr>
|
||||
<td colspan="2" valign="top" class="listtopic"><?=gettext("Edit route entry"); ?></td>
|
||||
</tr>
|
||||
@ -350,14 +350,14 @@ include("head.inc");
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var gatewayip;
|
||||
@ -431,4 +431,4 @@ include("head.inc");
|
||||
var oTextbox1 = new AutoSuggestControl(document.getElementById("network"), new StateSuggestions(addressarray));
|
||||
//]]>
|
||||
</script>
|
||||
<?php include("foot.inc"); ?>
|
||||
<?php include("foot.inc"); ?>
|
||||
|
||||
@ -5,4 +5,4 @@
|
||||
$tab_array[] = array(gettext("Certificates"), $active_tab == "/system_certmanager.php", "system_certmanager.php");
|
||||
$tab_array[] = array(gettext("Certificate Revocation"), $active_tab == "/system_crlmanager.php" ,"system_crlmanager.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
?>
|
||||
|
||||
@ -448,20 +448,20 @@ function sshkeyClicked(obj) {
|
||||
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php
|
||||
if ($input_errors)
|
||||
print_input_errors($input_errors);
|
||||
if ($savemsg)
|
||||
print_info_box($savemsg);
|
||||
?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("Users"), true, "system_usermanager.php");
|
||||
$tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php");
|
||||
@ -469,19 +469,19 @@ function sshkeyClicked(obj) {
|
||||
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
|
||||
display_top_tabs($tab_array);
|
||||
?>
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<?php
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<?php
|
||||
if ($_POST['act'] == "new" || $_POST['act'] == "edit" || $input_errors):
|
||||
?>
|
||||
|
||||
|
||||
<form action="system_usermanager.php" method="post" name="iform" id="iform" onsubmit="presubmit()">
|
||||
<input type="hidden" id="act" name="act" value="" />
|
||||
<input type="hidden" id="userid" name="userid" value="<?=(isset($id) ? $id : '');?>" />
|
||||
<input type="hidden" id="privid" name="privid" value="" />
|
||||
<input type="hidden" id="certid" name="certid" value="" />
|
||||
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<?php
|
||||
@ -540,20 +540,20 @@ function sshkeyClicked(obj) {
|
||||
<td width="78%" class="vtable" align="center">
|
||||
<table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="group membership">
|
||||
|
||||
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="listtopic"><?=gettext("Not Member Of"); ?></th>
|
||||
<th> </th>
|
||||
<th class="listtopic"><?=gettext("Member Of"); ?></th>
|
||||
<th class="listtopic"><?=gettext("Not Member Of"); ?></th>
|
||||
<th> </th>
|
||||
<th class="listtopic"><?=gettext("Member Of"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td align="center" width="44%">
|
||||
|
||||
|
||||
<select size="10" name="notgroups[]" class="formselect" id="notgroups" onchange="clear_selected('groups')" multiple="multiple">
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
@ -578,15 +578,15 @@ function sshkeyClicked(obj) {
|
||||
<td align="center" width="12%">
|
||||
<br />
|
||||
<a href="javascript:move_selected('notgroups','groups')" class="btn btn-default btn-xs" title="<?=gettext("Add Groups"); ?>">
|
||||
<span class="glyphicon glyphicon-arrow-right"></span>
|
||||
<span class="glyphicon glyphicon-arrow-right"></span>
|
||||
</a>
|
||||
<br /><br />
|
||||
<a href="javascript:move_selected('groups','notgroups')" class="btn btn-default btn-xs" title="<?=gettext("Remove Groups"); ?>">
|
||||
<span class="glyphicon glyphicon-arrow-left"></span>
|
||||
<span class="glyphicon glyphicon-arrow-left"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" width="44%">
|
||||
|
||||
|
||||
<select size="10" name="groups[]" class="formselect" id="groups" onchange="clear_selected('notgroups')" multiple="multiple">
|
||||
<?php
|
||||
$rowIndex = 0;
|
||||
@ -748,7 +748,7 @@ function sshkeyClicked(obj) {
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
else:
|
||||
if (is_array($config['ca']) && count($config['ca']) > 0):
|
||||
@ -759,14 +759,14 @@ function sshkeyClicked(obj) {
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<tr id="usercertchck">
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Certificate");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input type="checkbox" onclick="javascript:usercertClicked(this)" /> <?=gettext("Click to create a user certificate."); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<?php
|
||||
if ($i > 0):
|
||||
?>
|
||||
@ -896,7 +896,7 @@ function sshkeyClicked(obj) {
|
||||
<tr>
|
||||
<td class="list" colspan="4"></td>
|
||||
<td class="list">
|
||||
<button type="submit" name="addcert"
|
||||
<button type="submit" name="addcert"
|
||||
class="btn btn-default btn-xs"
|
||||
onclick="document.getElementById('act').value='<?php echo "new";?>';"
|
||||
title="<?=gettext("add user");?>"><span class="glyphicon glyphicon-plus"></span>
|
||||
@ -935,7 +935,7 @@ function sshkeyClicked(obj) {
|
||||
else
|
||||
$usrimg = "glyphicon glyphicon-user";
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<span class="<?=$usrimg;?>"></span>
|
||||
</td>
|
||||
@ -952,15 +952,15 @@ function sshkeyClicked(obj) {
|
||||
|
||||
</td>
|
||||
<td valign="middle" class="list nowrap" width="120">
|
||||
<button type="submit" name="edituser[]" class="btn btn-default btn-xs"
|
||||
<button type="submit" name="edituser[]" class="btn btn-default btn-xs"
|
||||
onclick="document.getElementById('userid').value='<?=$i;?>';
|
||||
document.getElementById('act').value='<?php echo "edit";?>';"
|
||||
title="<?=gettext("edit user");?>" ><span class="glyphicon glyphicon-pencil"></span></button>
|
||||
<?php
|
||||
if($userent['scope'] != "system"):
|
||||
?>
|
||||
|
||||
<button type="submit" name="deluser[]"
|
||||
|
||||
<button type="submit" name="deluser[]"
|
||||
class="btn btn-default btn-xs"
|
||||
onclick="document.getElementById('userid').value='<?=$i;?>';
|
||||
document.getElementById('username').value='<?=$userent['name'];?>';
|
||||
|
||||
@ -94,9 +94,9 @@ if ($_POST) {
|
||||
$retval = write_config();
|
||||
$savemsg = get_std_save_message($retval);
|
||||
conf_mount_ro();
|
||||
|
||||
|
||||
post_redirect("system_usermanager.php", array('act' => 'edit', 'userid' => $userid));
|
||||
|
||||
|
||||
exit;
|
||||
}
|
||||
conf_mount_ro();
|
||||
|
||||
@ -88,30 +88,30 @@ include("head.inc");
|
||||
<section class="page-content-main">
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="row">
|
||||
<?
|
||||
|
||||
|
||||
if ($input_errors)
|
||||
print_input_errors($input_errors);
|
||||
if ($savemsg)
|
||||
print_info_box($savemsg);
|
||||
|
||||
|
||||
if ($islocal == false) {
|
||||
echo gettext("Sorry, you cannot change the password for a non-local user.");
|
||||
include("fend.inc");
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
<section class="col-xs-12">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<form action="system_usermanager_passwordmg.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
|
||||
<div class="content-box">
|
||||
|
||||
<form action="system_usermanager_passwordmg.php" method="post" name="iform" id="iform">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<tr>
|
||||
<?php if (!session_id())
|
||||
session_start();
|
||||
@ -126,7 +126,7 @@ include("head.inc");
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Confirmation");?></td>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Confirmation");?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="passwordfld2" type="password" class="formfld pwd" id="passwordfld2" size="20" />
|
||||
</td>
|
||||
@ -138,9 +138,9 @@ include("head.inc");
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -107,33 +107,33 @@ include("head.inc");
|
||||
<?php include("fbegin.inc");?>
|
||||
|
||||
<section class="page-content-main">
|
||||
<div class="container-fluid">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<?php if ($input_errors) print_input_errors($input_errors);?>
|
||||
<?php if ($savemsg) print_info_box($savemsg);?>
|
||||
|
||||
|
||||
<section class="col-xs-12">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
<?php
|
||||
$tab_array = array();
|
||||
$tab_array[] = array(gettext("Users"), false, "system_usermanager.php");
|
||||
$tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php");
|
||||
$tab_array[] = array(gettext("Settings"), true, "system_usermanager_settings.php");
|
||||
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
|
||||
display_top_tabs($tab_array);
|
||||
|
||||
|
||||
/* Default to pfsense backend type if none is defined */
|
||||
if(!$pconfig['backend'])
|
||||
$pconfig['backend'] = "pfsense";
|
||||
?>
|
||||
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<form id="iform" name="iform" action="system_usermanager_settings.php" method="post">
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
|
||||
<form id="iform" name="iform" action="system_usermanager_settings.php" method="post">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<table class="table table-striped table-sort">
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncell"><?=gettext("Session Timeout"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
@ -178,5 +178,5 @@ include("head.inc");
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php include("foot.inc");?>
|
||||
|
||||
<?php include("foot.inc");?>
|
||||
|
||||
@ -92,7 +92,7 @@ function post_choices() {
|
||||
</script>
|
||||
|
||||
<body link="#000000" vlink="#000000" alink="#000000" >
|
||||
<form method="post" action="system_usermanager_settings_ldapacpicker.php">
|
||||
<form method="post" action="system_usermanager_settings_ldapacpicker.php">
|
||||
<?php if (empty($ous)): ?>
|
||||
<p><?=gettext("Could not connect to the LDAP server. Please check your LDAP configuration.");?></p>
|
||||
<input type='button' value='<?=gettext("Close"); ?>' onClick="window.close();">
|
||||
@ -100,24 +100,24 @@ function post_choices() {
|
||||
<b><?=gettext("Please select which containers to Authenticate against:");?></b>
|
||||
<p/>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="tabnavtbl">
|
||||
<tr>
|
||||
<td class="tabnavtbl">
|
||||
<table width="100%">
|
||||
<?php
|
||||
if(is_array($ous)) {
|
||||
if(is_array($ous)) {
|
||||
foreach($ous as $ou) {
|
||||
if(in_array($ou, $authcfg['ldap_authcn']))
|
||||
$CHECKED=" CHECKED";
|
||||
else
|
||||
else
|
||||
$CHECKED="";
|
||||
echo " <tr><td><input type='checkbox' value='{$ou}' id='ou' name='ou[]'{$CHECKED}> {$ou}<br /></td></tr>\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<p/>
|
||||
|
||||
|
||||
@ -49,15 +49,15 @@ $authcfg = auth_get_authserver($authserver);
|
||||
<html>
|
||||
<HEAD>
|
||||
<STYLE type="text/css">
|
||||
TABLE {
|
||||
TABLE {
|
||||
border-width: 1px 1px 1px 1px;
|
||||
border-spacing: 0px;
|
||||
border-style: solid solid solid solid;
|
||||
border-color: gray gray gray gray;
|
||||
border-collapse: separate;
|
||||
background-color: collapse;
|
||||
}
|
||||
TD {
|
||||
}
|
||||
TD {
|
||||
border-width: 1px 1px 1px 1px;
|
||||
border-spacing: 0px;
|
||||
border-style: solid solid solid solid;
|
||||
@ -66,10 +66,10 @@ $authcfg = auth_get_authserver($authserver);
|
||||
background-color: white;
|
||||
}
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
</HEAD>
|
||||
<body>
|
||||
<form method="post" name="iform" id="iform">
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
if (!$authcfg) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user