This forum is for general conversation and user-user networking.
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
opoplawski
- OpenVpn Newbie
- Posts: 3
- Joined: Wed Oct 07, 2020 6:14 pm
Post
by opoplawski » Wed Oct 07, 2020 6:20 pm
I'm trying to make use of Net::OpenVPN::DDNS as described here:
https://community.openvpn.net/openvpn/wiki/DynamicDNS but am running into the following error:
Code: Select all
Experimental shift on scalar is now forbidden at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS/DHCID/rfc4701.pm line 78, near ");"
Compilation failed in require at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS/DHCID.pm line 8.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS/DHCID.pm line 8.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS/API.pm line 12.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS/API.pm line 12.
Compilation failed in require at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS.pm line 8.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS.pm line 8.
Compilation failed in require at /usr/local/lib/perl5/5.30/base.pm line 137.
...propagated at /usr/local/lib/perl5/5.30/base.pm line 159.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/Net/OpenVPN/DDNS.pm line 9.
Compilation failed in require at /etc/openvpn/ddns/update line 78.
BEGIN failed--compilation aborted at /etc/openvpn/ddns/update line 78.
Has anyone else gotten this to work? Is there some other way to do DDNS updates to register the IPs of VPN clients?
Thanks for any help.
-
opoplawski
- OpenVpn Newbie
- Posts: 3
- Joined: Wed Oct 07, 2020 6:14 pm
Post
by opoplawski » Wed Oct 07, 2020 7:47 pm
Looks like this was a missing ; on /usr/local/lib/perl5/site_perl/Net/DHCP/DDNS/DHCID/rfc4701.pm line 76. Fixed that and then got:
Experimental keys on scalar is now forbidden at /usr/local/lib/perl5/site_perl/Net/OpenVPN/DDNS.pm line 249.
Type of arg 1 to keys must be hash or array (not subroutine entry) at /usr/local/lib/perl5/site_perl/Net/OpenVPN/DDNS.pm line 249, near "->clientids ) "
Fixed by making a hash of the presumed hashref:
foreach my $type ( keys %{$obj->clientids} ) {
Does not make me hopeful that anyone is using this code...