From 126246a8caba9de88c85603dda188fbb35cfc917 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 14 Nov 2010 18:28:10 +0100 Subject: [PATCH] Fix ipsec.conf for strongswan 4.5 (ikev2 was now default). --- config/rootfiles/core/test/filelists/files | 2 ++ html/cgi-bin/vpnmain.cgi | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config/rootfiles/core/test/filelists/files b/config/rootfiles/core/test/filelists/files index 2a6d23ba8..5e173848d 100644 --- a/config/rootfiles/core/test/filelists/files +++ b/config/rootfiles/core/test/filelists/files @@ -3,5 +3,7 @@ etc/rc.d/init.d/checkfstab etc/rc.d/init.d/squid srv/web/ipfire/cgi-bin/proxy.cgi srv/web/ipfire/cgi-bin/speed.cgi +srv/web/ipfire/cgi-bin/vpnmain.cgi +srv/web/ipfire/html/images/urlfilter/copy.gif usr/local/bin/rebuild-initrd usr/bin/ldd diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index f303cfbc2..5fb60558f 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -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]); -- 2.39.2