Fix ipsec.conf for strongswan 4.5 (ikev2 was now default).

This commit is contained in:
Arne Fitzenreiter
2010-11-14 18:28:10 +01:00
parent 846571ac84
commit 126246a8ca
2 changed files with 5 additions and 0 deletions

View File

@@ -384,6 +384,9 @@ sub writeipsecfiles {
print CONF "\tpfsgroup=$lconfighash{$key}[23]\n";
}
# IKE V1
print CONF "\tkeyexchange=ikev1\n";
# Lifetimes
print CONF "\tikelifetime=$lconfighash{$key}[16]h\n" if ($lconfighash{$key}[16]);
print CONF "\tkeylife=$lconfighash{$key}[17]h\n" if ($lconfighash{$key}[17]);