DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-26 19:51:13

anhtien
Member
Registered: 2010-02-24
Posts: 8

ddclientx - a ddclient for ffp

Greetings,
I just put together the ddclientx which was modeled after ddclient (an update client) and get it to work on the DNS-321 running ffp.  Below is the README file and the download package.  Let me know if it works for you, comments and feed backs are welcomed.

Welcome to ddclientx, an update client tool for dynamic DNS hosts

This script setup was tested to work on DNS-321 and should work on DNS-323, it is based on ddclient 3.8.0 written by Paul Burry and maintained by developers from sourceforge project (http://sourceforge.net/apps/trac/ddclient/).  The ddclient perl script was modified to work with fonz fun plug and was therefore named ddclientx. 
The ddclientx is an update client which periodicaly synchronizes its IP address with the host name maintained by DynDNS.org (or Dlink DDNS (dlinkddns.com) which is part of DynDNS.com).  You should use the DDNS feature from your router if it's available.  If not, ddclientx is a good alternative to the DNS-321's DDNS feature.

The ddclientx package consists of:

ddclientx - perl script
ddclientx.conf - sample configuration file, you need to change username, password, and host information
ddclientx.sh - shell script to start it, based on ffp shell script
README - this installation guide

Required packages to be installed over and above ffp:
perl-5.10-2
db42-4.2.52-1
ffp-base-0.5-1 or uclibc-0.9.29-7


INSTALLATION:
(note: you can just copy/paste the command from this README file to the telnet or SSH session)

1. Download and copy the tar.gz file to onto Volume_1 of the DNS-321, telnet or ssh to the NAS, issue:
cd /mnt/HD_a2
tar -xzf ddclientx-0.1.0-dns321.tar.gz
cd ddclientx-0.1.0-dns321/
2. Copy perl script:
  cp ddclientx /ffp/bin
  chmod +x /ffp/bin/ddclientx
3. Create the cache folder:
  mkdir /ffp/var/cache
4. Copy sample config file:
  cp ddclientx.conf /ffp/etc
5. Edit config file and change hostname, login, and password accordingly. DynDNS.com has the Update Client describing the usage of Update Client for its dynamic DNS hosts, which is what ddclientx based on :
  vi /ffp/etc/ddclientx.conf
6. Copy and Start ddclientx script:
  cp ddclientx.sh /ffp/start
  chmod +x /ffp/start/ddclientx.sh
  sh /ffp/start/ddclientx.sh start
7. Verify that it works by making sure the ddclientx process is still running with delay:
  ps
  sh /ffp/start/ddclientx.sh status
8. Send the query to verify that it works:
  /ffp/bin/ddclientx -daemon=0 -query

   Your window screen should display something like:

use=if, if=egiga0 address is 192.168.a3.a4 (internal IP address, assumming it starts with 192.168)
use=if, if=lo address is 127.0.0.1
use=web, web=dnspark address is d1.d2.d3.d4 (dynamic IP address)
use=web, web=dyndns address is d1.d2.d3.d4
use=web, web=checkip.dyndns.com/ address is d1.d2.d3.d4

9. To stop it:
sh /ffp/start/ddclientx.sh stop
10. Once happy, make the change permanent:
  chmod a+x /ffp/start/ddclientx.sh
  chmod a+x /ffp/bin/ddclientx
11. To disable it:
  chmod -x /ffp/start/ddclientx.sh
  chmod -x /ffp/bin/ddclientx
12. To remove it:
  sh /ffp/start/ddclientx.sh stop
  rm /ffp/var/cache/ddclientx.cache
  rm /ffp/bin/ddclientx
  rm /ffp/start/ddclientx.sh
  rm /ffp/etc/ddclientx.conf
    You can also remove the perl, db42 packages using funpkg -r command if they are no longer required.

Anhtien


Attachments:
Attachment Icon ddclientx-0.1.0-dns321.tar.gz, Size: 26,051 bytes, Downloads: 569

Offline

 

#2 2014-01-25 15:23:44

s0m3f00l
New member
Registered: 2014-01-25
Posts: 2

Re: ddclientx - a ddclient for ffp

4 years later, your code lives on I hacked it together to use on DNS320 with OPEN DNS... Below you'll find my config file in case anyone wants to do the same thing:

##OPENDNS_CONFIG
daemon=600       # check every 600 seconds
syslog=yes       # log update msgs to syslog
#Wasn't sure if below lines would work so commented it out
#mail-failure=failure="youremail" # Mail failed updates to user
#pid=/var/run/ddclient.pid       # record PID in file.

use=web, web=myip.dnsomatic.com

#below line changed to no FFP's version of PERL doesn't support SSL
ssl=no

server=updates.opendns.com
protocol=dyndns2
login="yourlogin"
password="yourpw"
"yournetworknameondnsomatic"

Last edited by s0m3f00l (2014-01-25 15:24:19)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB