Project

General

Profile

Actions

Bug #2489

closed

More than one secure dynamic dns update entry fails - due to malformed keyfile - and patch

Added by Dirk-Willem van Gulik over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Dynamic DNS
Target version:
Start date:
06/11/2012
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
All
Affected Architecture:
All

Description

When configuring more than one DDNS service to inform (e.g. if you have multiple WAN uplinks) - the first one will work dandy - but any later ones will fail with a 'BADKEY'.

The reason is due to a small buglet in the script ./etc/inc/services.inc. Around line 892 the priv-key is concatenated to with the field data.

It prolly should be reset prior to each file. So changing:

                $fd = fopen("{$g['varetc_path']}/K{$i}{$ keyname}+157+00000.private", "w");
-                                 $privkey .= <<<EOD
+                                 $privkey = <<<EOD
                Private-key-format: v1.2

will solve things nicely.

Actions

Also available in: Atom PDF