summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-09 16:54:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-09 16:54:59 +0000
commitfd416a1088275b13cb6ff988fe09877821f7e7e5 (patch)
tree5a62eeb6ad777d87b7aa85bbf652b2edf830bde1
parentbac7de1d0bee77f092bff9ac73a887e35dff3d7f (diff)
downloadpfsense-fd416a1088275b13cb6ff988fe09877821f7e7e5.zip
pfsense-fd416a1088275b13cb6ff988fe09877821f7e7e5.tar.gz
* Bump config version to 2.8
* Automatically install a IPSEC pass rule for unsuspecting users
-rw-r--r--cf/conf/config.xml2
-rw-r--r--conf.default/config.xml2
-rw-r--r--etc/inc/config.inc12
-rw-r--r--etc/inc/globals.inc2
4 files changed, 14 insertions, 4 deletions
diff --git a/cf/conf/config.xml b/cf/conf/config.xml
index f13c6f7..780d38e 100644
--- a/cf/conf/config.xml
+++ b/cf/conf/config.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- pfSense default system configuration -->
<pfsense>
- <version>2.0</version>
+ <version>2.8</version>
<lastchange></lastchange>
<theme>nervecenter</theme>
<system>
diff --git a/conf.default/config.xml b/conf.default/config.xml
index 47bebdc..9536a45 100644
--- a/conf.default/config.xml
+++ b/conf.default/config.xml
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- pfSense default system configuration -->
<pfsense>
- <version>2.1</version>
+ <version>2.8</version>
<lastchange></lastchange>
<theme>nervecenter</theme>
<system>
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index bcb5d73..223b73b 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -929,11 +929,21 @@ function convert_config() {
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/local/bin/checkreload.sh";
- $config['cron']['item'][] = $cron_item;
+ $config['cron']['item'][] = $cron_item;
}
$config['version'] = "2.8";
}
+ /* Convert 2.7 -> 2.8 */
+ if ($config['version'] <= 2.7) {
+ $rule_item = array();
+ $rule_item['interface'] = "IPSEC";
+ $rule_item['type'] = "pass";
+ $rule_item['src'] = "any";
+ $rule_item['dst'] = "any";
+ $config['version'] = "2.8";
+ }
+
if ($prev_version != $config['version'])
write_config("Upgraded config version level from {$prev_version} to {$config['version']}");
}
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index c5f6969..224cc64 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -53,7 +53,7 @@ $g = array(
"n_pppoe_units" => 16, /* this value can be overriden in pppoe->n_pppoe_units */
"pppoe_subnet" => 28, /* this value can be overriden in pppoe->pppoe_subnet */
"debug" => false,
- "latest_config" => "2.8",
+ "latest_config" => "2.9",
"nopkg_platforms" => array("cdrom"),
"nopccard_platforms" => array("wrap", "net48xx"),
"xmlrpcbaseurl" => "www.pfsense.com",
OpenPOWER on IntegriCloud