Community discussions

MikroTik App
 
Jeroen1000
Member Candidate
Member Candidate
Topic Author
Posts: 202
Joined: Fri Feb 18, 2011 2:05 pm

DynDns scripts HTTPS

Fri Dec 09, 2011 1:31 pm

I'm sure there is a reason why all the DynDNS update scripts are HTTP. Can anyone explain why HTTPS is not used?

cheers,
Jeroen
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

DynDns scripts HTTPS

Fri Dec 09, 2011 1:34 pm

Because fetch didn't support HTTPS.
 
Jeroen1000
Member Candidate
Member Candidate
Topic Author
Posts: 202
Joined: Fri Feb 18, 2011 2:05 pm

Re: DynDns scripts HTTPS

Fri Dec 09, 2011 1:56 pm

Oh, didn't? so it does know? (off checking the wiki). That's too bad as I don't feel like looking for another solution:))

Nope it still does not. Blast!
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: DynDns scripts HTTPS

Fri Dec 09, 2011 8:01 pm

If you use the ChangeIP.com Dynamic DNS it will use SSL on RouterOS. the "/tool dns-update" uses SSL to our site whereas the 'fetch' command will not.

Sam
 
Jeroen1000
Member Candidate
Member Candidate
Topic Author
Posts: 202
Joined: Fri Feb 18, 2011 2:05 pm

Re: DynDns scripts HTTPS

Fri Dec 09, 2011 11:10 pm

Hi Sam,

It just happens I already registered after a good look around on the forums here.
Are both the sending of username and password and the update secured with SSL? This is probably something Mikrotik support can answer, but would you happen to know whether the certifcate of your site checked by the router? SSL is just as secure as verifying you are indeed connecting to your site and to nowhere else. Don't really know how I can check this. µ

At any rate, I did not feel comfortable using a non-secure Dynamic DNS service.
 
Jeroen1000
Member Candidate
Member Candidate
Topic Author
Posts: 202
Joined: Fri Feb 18, 2011 2:05 pm

Re: DynDns scripts HTTPS

Fri Dec 09, 2011 11:44 pm

Sam,

Some code of the script did not really work out for me so I changed a bit of coded and added some. Do you see any issues or is this ok?

Next line of code yields an error:
#:global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface] address ]
So I added:
:local network [/ip address get number=1 address]
#:log info (" network is $network")

:local length [:len $network]
#:log info ("length is $length")
:local ddnsip [:pick $network 0 ($length-3)]
:log info ("UpdateDynDNS: fetched IP address  is $ddnsip")
Which in turn required me to change:

This:
:log info [ :put [/tool dns-update name=$ddnshost address=[:pick $ddnsip 0 [:find $ddnsip "/"] ] key-name=$ddnsuser key=$ddnspass ] ]
to:

 :log info [ :put [/tool dns-update name=$ddnshost address=$ddnsip key-name=$ddnsuser key=$ddnspass ] ]

Who is online

Users browsing this forum: No registered users and 40 guests