diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-25 19:41:31 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-25 19:41:31 -0500 |
commit | 5e11c6a176d70f1caa987e64a01a8f996b18aad7 (patch) | |
tree | 257b82129d9d95418b6c27a463d4219992ab896d /etc/inc/upgrade_config.inc | |
parent | c6354005bb6e57688699e5acf847cff134ded750 (diff) | |
download | pfsense-5e11c6a176d70f1caa987e64a01a8f996b18aad7.zip pfsense-5e11c6a176d70f1caa987e64a01a8f996b18aad7.tar.gz |
Upgrade config to 11.9. Changes IPsec peer ID for EAP types to "any", to retain previous behavior.
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index f622b1f..909d46f 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -3601,4 +3601,17 @@ function upgrade_117_to_118() { } } +function upgrade_118_to_119() { + global $config; + + // change peerid_type to 'any' for EAP types to retain previous behavior of omitting rightid + $a_phase1 =& $config['ipsec']['phase1']; + + foreach ($a_phase1 as &$ph1_entry) { + if (strstr($ph1_entry['authentication_method'], 'eap')) { + $ph1_entry['peerid_type'] = "any"; + } + } +} + ?> |