Project

General

Profile

« Previous | Next » 

Revision 9b915686

Added by Ermal LUÇI almost 11 years ago

Use a uniqid() to track phase2 entries to avoid confustion and various mistakes when modifying and editing them.

View differences:

etc/inc/vpn.inc
504 504
				$ipsecconf .= "config setup\n\tuniqueids = yes\n";
505 505
				$ipsecconf .= "\tcharondebug=\"" . vpn_ipsec_configure_loglevels(true) . "\"\n";
506 506

  
507
				foreach ($a_phase2 as $ph2_index => $ph2ent) {
507
				foreach ($a_phase2 as $ph2ent) {
508 508
					$ikeid = $ph2ent['ikeid'];
509 509

  
510 510
					$ph1ent = false;
......
727 727

  
728 728
					$ipsecconf .=<<<EOD
729 729

  
730
conn con{$ph2_index}-{$ph1ent['ikeid']}
730
conn con{$ph1ent['ikeid']}-{$ph2ent['uniqid']}
731 731
	aggressive = {$aggressive}
732 732
	fragmentation = yes
733 733
	keyexchange = {$keyexchange}

Also available in: Unified diff