LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   ddclient - login si invalid (https://www.linuxquestions.org/questions/linux-server-73/ddclient-login-si-invalid-4175492958/)

roberto32 01-29-2014 04:51 AM

ddclient - login si invalid
 
I installed ddclient and edit ddclient.conf I'm using freedns.afraid.org
Code:

protocol=freedns                             
#proxy=fasthttp.sympatico.ca:80                # default proxy
server=freedns.afraid.org                      # default server
#server=members.dyndns.org:8245                # default server (bypassing proxies)
robertobalu.com.crabdance.com  # kde treba tu moju domenu specifikovat???
robertobalu.com.chickenkiller.com

login=my_login_name_at_freedns.afraid.org     
password=my_pass


Code:

]WARNING:  skipping host: robertobalu.com.chickenkiller.com: 'login=' is an invalid login.
WARNING:  skipping host: robertobalu.com.crabdance.com: 'login=' is an invalid login.

I chcecked the login info many times and it's 100% correct

Ser Olmy 01-29-2014 07:05 AM

If you look closer, you'll see that it says that 'login=' is an invalid login. That is, an empty string is not a valid login, which certainly is true.

The order of parameters in ddclient.conf is important. You need to define the "login" and "password" parameter before specifying the server(s).

roberto32 01-29-2014 08:11 AM

thanks but now I'm getting errors like this
Code:

2014-01-29T14:54:44.013329+01:00 linux-clui ddclient[27650]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
2014-01-29T14:54:44.015313+01:00 linux-clui ddclient[27272]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
2014-01-29T14:54:44.018667+01:00 linux-clui ddclient[27650]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 4: Invalid Value for keyword 'ip' = ''
2014-01-29T14:54:44.019302+01:00 linux-clui ddclient[27272]: WARNING:  file /var/cache/ddclient/ddclient.cache, line 4: Invalid Value for keyword 'ip' = ''
2014-01-29T14:54:44.023800+01:00 linux-clui ddclient[27650]: WARNING:  unable to determine IP address
2014-01-29T14:54:44.027197+01:00 linux-clui ddclient[27650]: WARNING:  unable to determine IP address
2014-01-29T14:58:57.608535+01:00 linux-clui ddclient[30350]: WARNING:  unable to determine IP address

Like do I've to set use=web, web=robertobalu.com.crabdance.com

Ser Olmy 01-29-2014 08:27 AM

If you've told ddclient how to determine the system's IP address, you didn't include that part in the (excerpt from?) ddclient.conf you posted initially.

There's supposed to be a "use=" parameter telling ddclient how to obtain the external IP address to be used when updating dynamic DNS records. It then writes that value to the file /var/cache/ddclient/ddclient.cache, to avoid unnecessarily updating the DNS record(s) if the IP address hasn't changed since ddclient last ran. As it currently can't find that IP address, the corresponding field in the cache file is empty.

Try adding "use=web", or "use=if" if the public IP address is directly assigned to an interface on your box. Se this page for more information about ddclient.

roberto32 01-29-2014 11:20 AM

so I set
Code:

use=web, web=mydomainname
I set ddclient as a cron job to run every minute so my IP will be upadated at freedns.afraid.org, but when I run
Code:

ddclient -daemon=0 -debug -verbose -noquiet
I get unable to determine IP adress warning
Code:

=== opt ====
opt{cache}                          : <undefined>
opt{cmd}                            : <undefined>
opt{cmd-skip}                        : <undefined>
opt{daemon}                          : 0
opt{debug}                          : 1
opt{exec}                            : <undefined>
opt{facility}                        : <undefined>
opt{file}                            : <undefined>
opt{force}                          : <undefined>
opt{foreground}                      : <undefined>
opt{fw}                              : <undefined>
opt{fw-login}                        : <undefined>
opt{fw-password}                    : <undefined>
opt{fw-skip}                        : <undefined>
opt{geturl}                          : <undefined>
opt{help}                            : <undefined>
opt{host}                            : <undefined>
opt{if}                              : <undefined>
opt{if-skip}                        : <undefined>
opt{ip}                              : <undefined>
opt{login}                          : <undefined>
opt{mail}                            : <undefined>
opt{mail-failure}                    : <undefined>
opt{max-interval}                    : 2160000
opt{min-error-interval}              : 300
opt{min-interval}                    : 30
opt{options}                        : <undefined>
opt{password}                        : <undefined>
opt{pid}                            : <undefined>
opt{postscript}                      : <undefined>
opt{priority}                        : <undefined>
opt{protocol}                        : <undefined>
opt{proxy}                          : <undefined>
opt{query}                          : <undefined>
opt{quiet}                          : 0
opt{retry}                          : <undefined>
opt{server}                          : <undefined>
opt{ssl}                            : <undefined>
opt{syslog}                          : <undefined>
opt{test}                            : <undefined>
opt{timeout}                        : <undefined>
opt{use}                            : <undefined>
opt{verbose}                        : 1
opt{web}                            : <undefined>
opt{web-skip}                        : <undefined>
=== globals ====
globals{daemon}                      : 60
globals{debug}                      : 1
globals{login}                      : roberto32
globals{mail-failure}                : root
globals{password}                    : high68flier
globals{pid}                        : /var/run/ddclient.pid
globals{protocol}                    : freedns
globals{quiet}                      : 0
globals{server}                      : freedns.afraid.org
globals{ssl}                        : 1
globals{syslog}                      : 1
globals{use}                        : web
globals{verbose}                    : 1
globals{web}                        : robertobalu.com.crabdance.com
=== config ====
config{robertobalu.com.chickenkiller.com}{atime} : 0
config{robertobalu.com.chickenkiller.com}{cacheable} : ARRAY(0x2ce4d90)
config{robertobalu.com.chickenkiller.com}{cmd} : <undefined>
config{robertobalu.com.chickenkiller.com}{cmd-skip} :
config{robertobalu.com.chickenkiller.com}{fw} :
config{robertobalu.com.chickenkiller.com}{fw-login} : <undefined>
config{robertobalu.com.chickenkiller.com}{fw-password} :
config{robertobalu.com.chickenkiller.com}{fw-skip} :
config{robertobalu.com.chickenkiller.com}{host} : robertobalu.com.chickenkiller.com
config{robertobalu.com.chickenkiller.com}{if} : ppp0
config{robertobalu.com.chickenkiller.com}{if-skip} :
config{robertobalu.com.chickenkiller.com}{ip} : <undefined>
config{robertobalu.com.chickenkiller.com}{login} : roberto32
config{robertobalu.com.chickenkiller.com}{max-interval} : 2160000
config{robertobalu.com.chickenkiller.com}{min-error-interval} : 300
config{robertobalu.com.chickenkiller.com}{min-interval} : 300
config{robertobalu.com.chickenkiller.com}{mtime} : 0
config{robertobalu.com.chickenkiller.com}{password} : high68flier
config{robertobalu.com.chickenkiller.com}{protocol} : freedns
config{robertobalu.com.chickenkiller.com}{server} : freedns.afraid.org
config{robertobalu.com.chickenkiller.com}{status} :
config{robertobalu.com.chickenkiller.com}{use} : web
config{robertobalu.com.chickenkiller.com}{warned-min-error-interval} : 0
config{robertobalu.com.chickenkiller.com}{warned-min-interval} : 0
config{robertobalu.com.chickenkiller.com}{web} : robertobalu.com.crabdance.com
config{robertobalu.com.chickenkiller.com}{web-skip} :
config{robertobalu.com.chickenkiller.com}{wtime} : 30
config{robertobalu.com.crabdance.com}{atime} : 0
config{robertobalu.com.crabdance.com}{cacheable} : ARRAY(0x2ce4da8)
config{robertobalu.com.crabdance.com}{cmd} : <undefined>
config{robertobalu.com.crabdance.com}{cmd-skip} :
config{robertobalu.com.crabdance.com}{fw} :
config{robertobalu.com.crabdance.com}{fw-login} : <undefined>
config{robertobalu.com.crabdance.com}{fw-password} :
config{robertobalu.com.crabdance.com}{fw-skip} :
config{robertobalu.com.crabdance.com}{host} : robertobalu.com.crabdance.com
config{robertobalu.com.crabdance.com}{if} : ppp0
config{robertobalu.com.crabdance.com}{if-skip} :
config{robertobalu.com.crabdance.com}{ip} : <undefined>
config{robertobalu.com.crabdance.com}{login} : roberto32
config{robertobalu.com.crabdance.com}{max-interval} : 2160000
config{robertobalu.com.crabdance.com}{min-error-interval} : 300
config{robertobalu.com.crabdance.com}{min-interval} : 300
config{robertobalu.com.crabdance.com}{mtime} : 0
config{robertobalu.com.crabdance.com}{password} : high68flier
config{robertobalu.com.crabdance.com}{protocol} : freedns
config{robertobalu.com.crabdance.com}{server} : freedns.afraid.org
config{robertobalu.com.crabdance.com}{status} :
config{robertobalu.com.crabdance.com}{use} : web
config{robertobalu.com.crabdance.com}{warned-min-error-interval} : 0
config{robertobalu.com.crabdance.com}{warned-min-interval} : 0
config{robertobalu.com.crabdance.com}{web} : robertobalu.com.crabdance.com
config{robertobalu.com.crabdance.com}{web-skip} :
config{robertobalu.com.crabdance.com}{wtime} : 30
=== cache ====
cache{robertobalu.com.chickenkiller.com}{atime} : 0
cache{robertobalu.com.chickenkiller.com}{host} : robertobalu.com.chickenkiller.com
cache{robertobalu.com.chickenkiller.com}{mtime} : 0
cache{robertobalu.com.chickenkiller.com}{status} :
cache{robertobalu.com.chickenkiller.com}{warned-min-error-interval} : 0
cache{robertobalu.com.chickenkiller.com}{warned-min-interval} : 0
cache{robertobalu.com.chickenkiller.com}{wtime} : 30
cache{robertobalu.com.crabdance.com}{atime} : 0
cache{robertobalu.com.crabdance.com}{host} : robertobalu.com.crabdance.com
cache{robertobalu.com.crabdance.com}{mtime} : 0
cache{robertobalu.com.crabdance.com}{status} :
cache{robertobalu.com.crabdance.com}{warned-min-error-interval} : 0
cache{robertobalu.com.crabdance.com}{warned-min-interval} : 0
cache{robertobalu.com.crabdance.com}{wtime} : 30
DEBUG:    proxy  =
DEBUG:    url    = robertobalu.com.crabdance.com
DEBUG:    server = robertobalu.com.crabdance.com
CONNECT:  robertobalu.com.crabdance.com
CONNECTED:  using HTTP
SENDING:  GET / HTTP/1.0
SENDING:  Host: robertobalu.com.crabdance.com
SENDING:  User-Agent: ddclient/3.8.1
SENDING:  Connection: close
SENDING: 
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Date: Wed, 29 Jan 2014 17:09:33 GMT
RECEIVE:  Server: Apache/2.4.6 (Linux/SUSE)
RECEIVE:  Last-Modified: Tue, 21 Jan 2014 16:37:35 GMT
RECEIVE:  ETag: "a3-4f07da030d39f"
RECEIVE:  Accept-Ranges: bytes
RECEIVE:  Content-Length: 163
RECEIVE:  Connection: close
RECEIVE:  Content-Type: text/html
RECEIVE: 
RECEIVE:  <html>
RECEIVE:  <head>
RECEIVE:  Welcome to my website
RECEIVE:  </head>
RECEIVE:  <body>
RECEIVE:  <script type ="text/javascript">
RECEIVE:  document.write("co cumis chces jednu do ciferniku");
RECEIVE:  </script>
RECEIVE:  </body>
RECEIVE:  </html>
DEBUG:    get_ip: using web, robertobalu.com.crabdance.com reports <undefined>
WARNING:  unable to determine IP address
DEBUG:    proxy  =
DEBUG:    url    = robertobalu.com.crabdance.com
DEBUG:    server = robertobalu.com.crabdance.com
CONNECT:  robertobalu.com.crabdance.com
CONNECTED:  using HTTP
SENDING:  GET / HTTP/1.0
SENDING:  Host: robertobalu.com.crabdance.com
SENDING:  User-Agent: ddclient/3.8.1
SENDING:  Connection: close
SENDING: 
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Date: Wed, 29 Jan 2014 17:09:33 GMT
RECEIVE:  Server: Apache/2.4.6 (Linux/SUSE)
RECEIVE:  Last-Modified: Tue, 21 Jan 2014 16:37:35 GMT
RECEIVE:  ETag: "a3-4f07da030d39f"
RECEIVE:  Accept-Ranges: bytes
RECEIVE:  Content-Length: 163
RECEIVE:  Connection: close
RECEIVE:  Content-Type: text/html
RECEIVE: 
RECEIVE:  <html>
RECEIVE:  <head>
RECEIVE:  Welcome to my website
RECEIVE:  </head>
RECEIVE:  <body>
RECEIVE:  <script type ="text/javascript">
RECEIVE:  document.write("co cumis chces jednu do ciferniku");
RECEIVE:  </script>
RECEIVE:  </body>
RECEIVE:  </html>
DEBUG:    get_ip: using web, robertobalu.com.crabdance.com reports <undefined>
WARNING:  unable to determine IP address


Ser Olmy 01-29-2014 03:43 PM

You're not supposed to specify your own web page as the "web=" parameter. The idea is to point the script at a web page that reports the IP address of the client back to it.

If you omit the "web=" parameter, the script should use a web page provided by DynDNS as a default. That ought to work.

roberto32 01-30-2014 04:17 AM

thanks I solve it I set
Code:

use=vigor-2200usb, fw=192.168.1.1:80
fw-login=user,  fw-password=myrooter_pass

(even if I've vigor 2700 but if the older is supported why the newer shouldn't be :D) and it works fine


All times are GMT -5. The time now is 09:08 AM.