summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/globals.inc2
-rw-r--r--etc/inc/upgrade_config.inc17
-rw-r--r--etc/inc/vpn.inc8
3 files changed, 22 insertions, 5 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index 8ee4052..c2e5832 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -74,7 +74,7 @@ $g = array(
"disablecrashreporter" => false,
"crashreporterurl" => "https://crashreporter.pfsense.org/crash_reporter.php",
"debug" => false,
- "latest_config" => "11.9",
+ "latest_config" => "12.0",
"nopkg_platforms" => array("cdrom"),
"minimum_ram_warning" => "101",
"minimum_ram_warning_text" => "128 MB",
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 07c0df0..3b41251 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -3647,6 +3647,23 @@ function upgrade_118_to_119() {
$ph1_entry['peerid_type'] = "any";
}
}
+
+}
+
+function upgrade_119_to_120() {
+ global $config, $ipsec_loglevels;
+
+ if (!is_array($config['ipsec'])) {
+ return;
+ }
+
+ // add 1 to configured log levels as part of redmine #5340
+ foreach ($ipsec_loglevels as $lkey => $ldescr) {
+ if (isset($config['ipsec']['ipsec_{$lkey}'])) {
+ $config['ipsec']['ipsec_{$lkey}'] = $config['ipsec']['ipsec_{$lkey}'] + 1;
+ }
+ }
+
}
?>
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index d3baf1b..3adf11b 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -49,11 +49,11 @@ function vpn_ipsec_configure_loglevels($forconfig = false) {
$cfgtext = array();
foreach ($ipsec_loglevels as $lkey => $ldescr) {
if (!isset($config['ipsec']["ipsec_{$lkey}"]) && !$forconfig) {
- mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} -- -1", false);
+ mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} -- 1", false);
} else if (is_numeric($config['ipsec']["ipsec_{$lkey}"]) &&
- intval($config['ipsec']["ipsec_{$lkey}"]) >= 0 && intval($config['ipsec']["ipsec_{$lkey}"]) <= 5) {
- $forconfig ? $cfgtext[] = "${lkey} = " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) :
- mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) , false);
+ intval($config['ipsec']["ipsec_{$lkey}"]) >= 1 && intval($config['ipsec']["ipsec_{$lkey}"]) <= 6) {
+ $forconfig ? $cfgtext[] = "${lkey} = " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 2) :
+ mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 2) , false);
}
}
if ($forconfig) {
OpenPOWER on IntegriCloud