]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/vpnmain.cgi
Style ueberarbeitet.
[ipfire-2.x.git] / html / cgi-bin / vpnmain.cgi
index 28f5b15708416469c672cc82015ef574fda66c70..364036d5ee40c6e56a3d048ae1cf929346d3a634 100644 (file)
@@ -134,6 +134,7 @@ sub writeipsecfiles {
     open(SECRETS, ">${General::swroot}/vpn/ipsec.secrets") or die "Unable to open ${General::swroot}/vpn/ipsec.secrets: $!";
     flock CONF, 2;
     flock SECRETS, 2;
+    print CONF "version 2\n\n";
     print CONF "config setup\n";
     if ($lvpnsettings{'ENABLED_BLUE'} eq 'on')
     {
@@ -154,8 +155,9 @@ sub writeipsecfiles {
     $plutodebug = 'none' if $plutodebug eq '';  # if nothing selected, use 'none'.
     print CONF "\tklipsdebug=none\n";
     print CONF "\tplutodebug=\"$plutodebug\"\n";
-    print CONF "\tplutoload=%search\n";
-    print CONF "\tplutostart=%search\n";
+    # deprecated in ipsec.conf version 2
+    #print CONF "\tplutoload=%search\n";
+    #print CONF "\tplutostart=%search\n";
     print CONF "\tuniqueids=yes\n";
     print CONF "\tnat_traversal=yes\n";
     print CONF "\toverridemtu=$lvpnsettings{'VPN_OVERRIDE_MTU'}\n" if ($lvpnsettings{'VPN_OVERRIDE_MTU'} ne '');