LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2004, 09:38 AM   #1
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Rep: Reputation: 0
ddclient setting problem


Hello !
Is there any experience user of this ddclient. I had been set the daemon many time but fail. Is it necessary to set the router of the LAN and the band of the router ?
 
Old 03-05-2004, 08:22 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
If you unpack the ddclient tarball and change to that directory you'll have these files:
Code:
$ ls
COPYING                     sample-etc_ddclient.conf
COPYRIGHT                   sample-etc_dhclient-exit-hooks
ddclient*                   sample-etc_dhcpc_dhcpcd-eth0.exe
README                      sample-etc_ppp_ip-up.local
README.cisco                sample-etc_rc.d_init.d_ddclient*
sample-etc_cron.d_ddclient  sample-etc_rc.d_init.d_ddclient.redhat*
What you do is to take these sample files and put them in the right places. For example if you are using Mandrake you will to this:
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
cp sample-etc_ddclient.conf /etc/ddclient.conf
cp ddclient /usr/sbin/ddclient
Then you would edit /etc/ddclient.conf and if you have a router you need to uncomment the line that has your router on it. Also uncomment the dynamic dns service e.g server=members.dyndns.org. Add your login and password.
Now you can setup ddclient to start automatically this way.
chkconfig --add ddclient
chkconfig --level 35 ddclient on
service ddclient start
 
Old 03-05-2004, 09:42 PM   #3
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Original Poster
Rep: Reputation: 0
more about setting ddclient problem

Thank you for your replied.
But I think I should revealed more on my situation: I have an router band name called "SERCOM". I don't know I should select which router inside the ddclient.conf to support my router. Can I just set the right gateway "192.168.0.1/xx" for the router and set the "fw=" to the same gateway. Moreover my router can set a database for the router-bilt-in firewall for example "192.168.0.3" is a ftp machine. Is it means, I should set the machine for the correct services. for example: 192.168.0.2 is a web server otherwise I can not sent out my update-ip-request from that 192.168.0.2 or 192.168.0.3 to dyndns.org And I should tell the ddclient that it is a web base server where I installed the ddclient. And I should put in consideration that I should select the "web page support" options
and I already installed the ddclient by rpm packet. Is it means that I should uninstalled it and put the untared file in the destinated place instead
 
Old 03-06-2004, 04:11 AM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
I suppose the rpm installed everything you need. What version was the rpm? Ddclient is currently at 3.6.3, so if you are close to that I wouldn't worry about upgrading. To check your version.
rpm -q ddclient
Also look to see if any documentation came with the rpm.
rpm -ql ddclient
The readme file that comes with the tarball has some troubleshooting tips you should probably try.

Code:
TROUBLESHOOTING:

  1. enable debugging and verbose messages.
	$ ddclient -daemon=0 -debug -verbose -noquiet

  2. Do you need to specify a proxy?
     If so, just add a
	proxy=your.isp.proxy
     to the ddclient.conf file.

  3. Define the IP address of your router with fw=xxx.xxx.xxx.xxx in
     /etc/ddclient.conf and then try
    	$ ddclient -daemon=0 -query
     to see if the router status web page can be understood.

  4. Need support for another router/firewall?
     Define the router status page yourself with:
	fw=url-to-your-routers-status-page
	fw-skip=any-string-preceeding-your-IP-address
    
     ddclient does something like this to provide builtin support for 
     common routers.
     For example, the Linksys routers could have been added with:
        fw=192.168.1.1/Status.htm
	fw-skip=WAN.*?IP Address

     OR
     Send me the output from:
      $ ddclient -geturl {fw-ip-status-url} [-login login [-password password]]
     and I'll add it to the next release!

     ie. for my fw/router I used:
	$ ddclient -geturl 192.168.1.254/status.htm

  5. Some broadband routers require the use of a password when ddclient
     accesses it's status page to determine the router's WAN IP address.
     If this is the case for your router, add
	fw-login=your-router-login
	fw-password=your-router-password
     to the beginning of your ddclient.conf file.
     Note that some routers use either 'root' or 'admin' as their login
     while some others accept anything.
The reason ddclient needs to know the type of router is so that it knows how to get the IP from it. Looking at the above troubleshooting steps you should be able to use any router if you know the location/url of the routers status page.

For example my D-Link 704p status page is at:
http://192.168.0.1/status.htm
So if ddclient did not support my router what I would put in /etc/ddclient.conf is this:
fw=192.168.0.1/status.htm
fw-text="some text string"

The way I would find the text string is like this:
lynx --dump http://192.168.0.1/status.htm
And I look for some text that comes before the WAN IP address.
 
Old 03-06-2004, 09:18 AM   #5
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Original Poster
Rep: Reputation: 0
more details

Thank you for your kindness.
But I did not install lynx in my Ferdora core 1. May I have another command to instead The command :lynx --dump http://192.168.0.1/status.htm
 
Old 03-06-2004, 01:51 PM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
You could just type the url into the address bar of any browser. I just used lynx as an example, but links would work or mozilla...
 
Old 03-08-2004, 11:50 AM   #7
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Original Poster
Rep: Reputation: 0
more details

Thank you for your kindness.

After I installed the lynx and type the command: #lynx --dump http://192.168.0.1/status.htm
There is a page of data popup just like that:
Status
Internet
Connectin Method: Direct
Broadband Modem: Connection OK
Ineternet Connection:Active
Inernet IP Address: 218.x.x.x
[BUTTON]
LAN
IP Address:192.168.0.1
Network Mark:255.255.255.0
DHCP Server: ON
System
Device Name: SCDBXX.XX
Firmware Version: Version xx Release 0x
[BUTTTON]
Printer
Printer Status:Off Line
Abort Current Print Job

Is the above data tell me two things:
1./ I should set the line of ddclient.conf to :
use=fw, fw=192.168.0.1/status.htm
Is it good to me ?
2./ I don't know how to setting :
fw-skip=??????

Please tell me !!!
 
Old 03-08-2004, 04:42 PM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Try this:
fw-skip="Inernet IP"
or
fw-skip="Inernet IP Address:"

You can play around with it till you get it to work. It just needs some text to look for that is right before the Internet IP address, which looks like it is going to be that 218.x.x.x IP. This is the IP address which dyndns.org will assign to your machine's DNS lookup.
 
Old 03-14-2004, 08:47 AM   #9
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Original Poster
Rep: Reputation: 0
more details

Thank you for your kindness

May I ask you a foolish question :
you say just type fw-skip="Internet IP Address"
Is it means that I just type the exactly the string "Internet IP Address" and starting and ending with the sign "
It is no need to chage the string "Internet IP Address" into an IP address

After I tried using fw-skip=`Internet IP Address`
I received one e-mail :
From: root <root@my_local_machine_domain.com>
MessageID <jsiowodjsjj>
Subject: status report form ddclient@my_local_machine_domain.com
WARNING: caught SIGTERM: exiting
----------
and my IP address is still can't get update automatically
after I type "/etc/rc.d/init.d/ddclient restart"
 
Old 03-14-2004, 07:06 PM   #10
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
Is it means that I just type the exactly the string "Internet IP Address" and starting and ending with the sign "
It is no need to chage the string "Internet IP Address" into an IP address
Yes that is correct, however when I look at my ddclient.conf file I see I'm using single quotes, so you could try it that way.

This is how mine looks:
use=fw, fw=192.168.0.1/status.htm, fw-skip='WAN'
You would just change the WAN to Internet IP Address.

You should also give Dyndns.org up to 15-30min for your new IP address to spread its way throughout the internet.
 
Old 03-15-2004, 09:21 AM   #11
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Original Poster
Rep: Reputation: 0
more

Hi !

Thank you for your teaching.
And I will start the service and waiting as soon as possible !

But how about the e-mail I received. Does it implied that my service will filed.

Or bear the other meaning !
 
Old 03-15-2004, 12:47 PM   #12
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
yat
But how about the e-mail I received. Does it implied that my service will filed.
Yes that would seem to indicate your ddclient stopped for some reason. You can look through /var/log/messages to see if there are any indications why? From your previous post you had backtic marks instead of quote marks, and that may have caused problems. This is what I'm referring to:
Quote:
After I tried using fw-skip=`Internet IP Address`
The backtic marks will probably cause problems.

Remember once you start ddclient you can go to www.dyndns.org and login and check your account to see if it was updated. Also you should get a new cache file /etc/ddclient.cache when ddclient updates dyndns.org.

Make sure you have your personal settings and account information entered into /etc/ddclient.conf
login=mylogin # default login
password=mypassword # default password
##
## dyndns.org dynamic addresses
##
## (supports variables: wildcard,mx,backupmx)
##
server=members.dyndns.org, \
protocol=dyndns2 \
mycomputer.homelinux.org



In your second post you asked about running some servers behind the router. You can read this document for more information. Here are the important points.
Quote:
With NAT, you have a public IP that you obtain from your ISP which is assigned to the computer/device performing the NAT, and some private IPs that are used for the machines behind the NAT (all IPs beginning in 192.168 or 10 are private; there are other private IP ranges, but those are the most common). When you run a server on one of the machines behind the NAT, then it will be reachable using that machine's private IP, which is fairly useless.

This would lead you to conclude that there's no way to run a server behind NAT. Fortunately, that is not correct. Most NAT implementations have a feature called port forwarding: what that means is that the NAT implementation will take requests to its public IP on a given port and transparently forward these requests to a specific machine/port in the private network. Port forwarding lets you run servers behind NAT, but it does have a few limitations: it must be supported by your NAT implementation (Windows 98SE/Me's ICS requires a third-party freeware tool to configure port forwarding), it requires you to be able to administer the NAT device (if your roommate or parents have the NAT device's administrative password, then you're stuck), and it only lets you have one machine in the private network handle each port (so, for example, if you want to run a mail server and a FTP server, these can be run on two separate machines in the private network if you want. However, it's not possible to have two FTP servers simultaneously on different machines). However, port forwarding is the best thing available, and it generally works well enough. Note that nothing, and particularly not DNS, will be able to change these limitations: for example, you can't have yourmachine1.dyndns.org and yourmachine2.dyndns.org referring to different machines behind the NAT: you can have you.dyndns.org referring to the NAT device's public IP, and then have that machine forward whatever ports you want to your in external machines, though.
So basically if your router supports nat or port forwarding then you are OK. Just tell your router to forward all ftp traffic to 192.168.0.3 and all web traffic to 192.168.0.2.
 
Old 06-13-2004, 07:16 AM   #13
yat
LQ Newbie
 
Registered: Mar 2004
Location: HongKong
Posts: 13

Original Poster
Rep: Reputation: 0
Hi long time no see !

I am sorry to tell you that I still cann't fix my problem
But I have some question to consault you. And hope you are so kind to tell me.
I wanted to know the line "server=members.dyndns.org," in the ddclient.conf. Is it fit for me ?
The words "fit for me" means that I am not have to change any charater in that line ?
or I should change to ... eg. "server=xxxx.dyndns.org"
If it is trure what is the "xxxx" for me ? How can I know that "xxxx"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ddclient hirts123 Slackware 1 08-31-2005 04:29 AM
ddclient socks Linux - Software 5 10-17-2004 02:36 AM
ddclient problem Samuelnice Linux - Networking 0 07-22-2004 11:50 AM
ddclient doralsoral Linux - Software 3 04-19-2004 09:14 AM
I need help with 'ddclient' hecresper *BSD 3 05-06-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration