mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix keyid identifers, and go back to using %any in ipsec.secrets as in previous versions, fixing a variety of other ID issues. Latter will break some mobile IPsec circumstances, fix for that to come after more testing. Ticket #4811
This commit is contained in:
parent
96f980719c
commit
d44e7dc081
@ -638,6 +638,8 @@ EOD;
|
||||
if ($myid_type == 'fqdn' && !empty($myid)) {
|
||||
$myid = "@{$myid}";
|
||||
}
|
||||
|
||||
$myid = isset($ph1ent['mobile']) ? trim($myid_data) : "%any";
|
||||
|
||||
$peerid = ($peerid_data != 'allusers') ? trim($peerid_data) : '';
|
||||
|
||||
@ -821,7 +823,7 @@ EOD;
|
||||
}
|
||||
|
||||
list ($myid_type, $myid_data) = ipsec_find_id($ph1ent, 'local');
|
||||
if ($myid_type != 'address') {
|
||||
if ($myid_type != 'address' && $myid_type != 'keyid') {
|
||||
$myid_data = "{$myid_type}:{$myid_data}";
|
||||
}
|
||||
|
||||
@ -829,7 +831,7 @@ EOD;
|
||||
$peerid_spec = '';
|
||||
if (!isset($ph1ent['mobile'])) {
|
||||
list ($peerid_type, $peerid_data) = ipsec_find_id($ph1ent, 'peer', $rgmap);
|
||||
if ($peerid_type != 'address') {
|
||||
if ($peerid_type != 'address' && $peerid_type != 'keyid') {
|
||||
$peerid_spec = "{$peerid_type}:{$peerid_data}";
|
||||
} else {
|
||||
$peerid_spec = $peerid_data;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user