]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
IPsec: Always send our host certificate to all RW clients
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 5 Mar 2020 15:24:49 +0000 (15:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 May 2021 11:27:04 +0000 (11:27 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/vpnmain.cgi

index 55b2506b4b54048cc46d664667f5db1105b6c8eb..de9f19bdbaf1988416f27246d179819f7c47ffd9 100644 (file)
@@ -350,6 +350,12 @@ sub writeipsecfiles {
 
                print CONF "\tleftfirewall=yes\n";
                print CONF "\tlefthostaccess=yes\n";
+
+               # Always send the host certificate
+               if ($lconfighash{$key}[3] eq 'host') {
+                       print CONF "\tleftsendcert=always\n";
+               }
+
                print CONF "\tright=$lconfighash{$key}[10]\n";
 
                if ($lconfighash{$key}[3] eq 'net') {