DDNS Updater Cloudflare is not working with DDNS Updater!

Status
Für weitere Antworten geschlossen.

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
Hey,

I don't speak German so I can online communicate in English. Hopefully you can help me!

So I installed DDNS Updater and followed the instructions, that went well. It wasn't working for me and after doing some reading I found out I need ipkg perl. So I went through the process of installing that, but it still won't work.

I have SSH enabled, I'm on 4.3 with a DS 1512+

These are some of the error messages I'm getting in the log of DDNS Updater

Rich (BBCode):
Nov 18 01:53:58 Diskstation ddclient[14959]: FATAL:     On Synology Diskstation, the package perl and perl-IO-Socket-SSL must be installed.
Nov 18 01:53:58 Diskstation ddclient[14959]: FATAL:    Error loading the Perl module IO::Socket::SSL needed for SSL connect.

So I ran which perl via SSH and got /opt/bin/perl

I also ran perl-e "require IO :: Socket :: SSL" but it said -ash: perl-e: not found

I'm not sure what the solution to this is? If you could help that would be great!
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
After doing some more reading I found out that perl-io-socket-ssl is a a separate package.

So I used ipkg install perl-io-socket-ssl and that installed. But it still doesn't work? That error before is gone but it just says no response from server.

I've ticked to use SSL in the global settings of DDNS Updater. I'm not sure what else to do? I'm using the API key as my password, username is my email on cloudflare, IP of the website etc..
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
I've realised in the IP area I need to put my internet IP and not the hostnames. That seems to have fixed things but now I have this in the log:

Nov 18 02:30:40 Diskstation ddclient[4188]: WARNING: file /tmp/cache/ddclient/ddclient.cache: file /tmp/cache/ddclient/ddclient.cache must be accessible only by its owner (fixed).

So it's still not working.

I went to:

https://www.cloudflare.com/api.html?a=DIUP&u=myemail@mydomain.com&tkn=SecretPass&hosts=example.com

And this is what it says:

E_INVLDIP
/api.html?a=DIUP&ip=127.0.0.1&u=email@foo.com&tkn=__cf_token&hosts=example.com,www.example.com

I ran ipkg list_installed and both perl 5.10.0-6 and perl-io-socket-ssl are there.

Any solution? Do I need to forward a port on my router/DSM?
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
First: you don't need to put your ip in the field "ip", if it is a dynamic one. ddns updater get the current external ip itself. This field is only for fixed ip's that never changed.

It seems that cloudflare changed their api in the last months, cause their api used now a different scheme and a return format in json. I send you a link in the next few days for a pre test version that could handle the new api.
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
Sounds good!

Also, I found out my ISP blocks incoming connections on port 80. Could this be something that stops me from using this? I could just forward another port like 81, 82 or 83 though.
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
So I looked at the log tonight and saw this. Not sure if this helps you solve the issue for me.

Rich (BBCode):
Nov 19 16:59:05 Diskstation ddclient[10886]: WARNING:   last updated <never> but last attempt on Tue Nov 19 16:56:11 2013 failed.
Nov 19 16:59:05 Diskstation ddclient[10886]: WARNING:  skipping update of MYHOSTNAME from <nothing> to MYWANIP.
Nov 19 16:46:09 Diskstation ddclient[10886]: FAILED:   updating MYHOSTNAME: Could not connect to www.cloudflare.com.
Nov 19 16:46:09 Diskstation ddclient[10886]: WARNING:  cannot connect to www.cloudflare.com:443 socket: IO::Socket::SSL: connect: Connection timed out IO::Socket::INET configuration failederror:00000000:lib(0):func(0):reason(0)
Nov 19 16:39:52 Diskstation ddclient[10886]: FAILED:   updating MYHOSTNAME: Could not connect to www.cloudflare.com.
Nov 19 16:39:52 Diskstation ddclient[10886]: WARNING:  cannot connect to www.cloudflare.com:443 socket: IO::Socket::SSL: connect: Connection timed out IO::Socket::INET configuration failederror:00000000:lib(0):func(0):reason(0)
Nov 19 16:33:49 Diskstation ddclient[10886]: NOCONNECT: cannot connect to checkip.amazonaws.com:80 socket: IO::Socket::INET: Bad hostname 'checkip.amazonaws.com'
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
do you have a ipv6 ip?
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
IPv4
 
Zuletzt bearbeitet:

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
According to your log, it seems that you not even get a connection to checkip.amazonaws.com. Please test the following:


  • stop DDNS updater
  • log via telnet or ssh as root with password from admin into your ds
  • exec the following command:
    Rich (BBCode):
    /usr/syno/synoman/webman/3rdparty/ddnsupdater/ddclient -query web
you must get back a list of checkip-sites with your public ip, if not something is wrong (firewall etc.)
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
This is what that command returned:

Rich (BBCode):
Diskstation> /usr/syno/synoman/webman/3rdparty/ddnsupdater/ddclient -query web
use=if, if=eth0 address is LOCAL IP OF NAS
use=if, if=eth1 address is DON'T KNOW WHAT THIS IP HERE IS!
use=if, if=lo address is 127.0.0.1
use=web, web=amazonaws address is MY PUBLIC WAN IP
 

arkie

Benutzer
Mitglied seit
17. Nov 2013
Beiträge
8
Punkte für Reaktionen
0
Punkte
0
I've decided to use FreeDNS with the stock Synology DNS application.

I guess it's not worth me keeping ipkg perl now. How should I delete it?
 

QTip

Super-Moderator
Teammitglied
Mitglied seit
04. Sep 2008
Beiträge
2.341
Punkte für Reaktionen
13
Punkte
84
ipkg remove perl-io-socket-ssl perl

Sorry, but i will definitely fix cloudflare, perhaps you give it a try later.
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat