diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-08-05 16:10:37 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-08-05 16:10:37 +0000 |
commit | 02317e488518f789ac858de1adef452f0ac38d79 (patch) | |
tree | 41f98373733ce2b9b2f8a594d9a53c6a5be43a15 /etc | |
parent | 787295ea452f1986d2c764d582063465903e5d13 (diff) | |
download | pfsense-02317e488518f789ac858de1adef452f0ac38d79.zip pfsense-02317e488518f789ac858de1adef452f0ac38d79.tar.gz |
Upgrade older configs to the new way of bridging.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 5c348f5..f2c64d6 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1653,6 +1653,21 @@ function convert_config() { $config['version'] = 5.0; } + /* Convert 5.0 -> 5.1 */ + if ($config['version'] <= 5.1) { + $pconfig = array(); + $pconfig['desc'] = "Set to 0 to disable filtering on the incoming and outgoing member interfaces."; + $pconfig['tunable'] = "net.link.bridge.pfil_member"; + $pconfig['value'] = "1"; + $config['sysctl']['item'][] = $pconfig; + $pconfig = array(); + $pconfig['desc'] = "Set to 1 to enable filtering on the bridge interface"; + $pconfig['tunable'] = "net.link.bridge.pfil_bridge"; + $pconfig['value'] = "0"; + $config['sysctl']['item'][] = $pconfig; + + } + $now = date("H:i:s"); log_error("Ended Configuration upgrade at $now"); |