PDA

Bekijk de volledige versie : How to update DynDNS behind a modem



SuperB
30-10-2007, 18:15
When you use a cable or DSL modem, the WL500 usually doesn't know its external IP address. This is a problem for the built-in DynDNS client (accessible through the web pages), because that client requires the address for updating DynDNS.

Luckily, DynDNS provides an alternative solution that does work and it's called inadyn. This page describes how to use inadyn for updating your DynDNS record.

You will need ipkg for installing it (see http://www.sprayfly.com/wiki/Ipkg), but otherwise it's pretty straightforward.

Download inadyn from the unslung library using ipkg.

[admin@asus root]$ ipkg install inadyn

For your reference, my ipkg configuration file (/opt/etc/ipkg.conf) looks as follows:


src wl500g http://wl500g.dyndns.org/ipkg
src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
dest root /opt

Note that /opt is my USB harddisk.

The result can be shown by:


[admin@asus root]$ ipkg files inadyn
Package inadyn (1.96.2-1) is installed on root and has the following files:
/opt/man/man5/inadyn.conf.5
/opt/bin/inadyn
/opt/share/doc/inadyn/readme.html
/opt/man/man8/inadyn.8
Successfully terminated.

Create a configuration file /opt/etc/inadyn.conf


username yourusername
password yourpassword
alias whatever.you.use.com
background # run in background mode
syslog # Log to syslog
update_period_sec 1600 # Check every x seconds

Add the executable to the end of a startup script (one that is executed after the drive is mounted). I added the following line to /usr/local/sbin/post-mount:


/opt/bin/inadyn --input_file /opt/etc/inadyn.conf

Save the script:


flashfs save
flashfs commit

That's it.

gydi
24-08-2008, 17:23
When you use a cable or DSL modem, the WL500 usually doesn't know its external IP address. This is a problem for the built-in DynDNS client (accessible through the web pages), because that client requires the address for updating DynDNS.

Luckily, DynDNS provides an alternative solution that does work and it's called inadyn. This page describes how to use inadyn for updating your DynDNS record.

You will need ipkg for installing it (see http://www.sprayfly.com/wiki/Ipkg), but otherwise it's pretty straightforward.

Download inadyn from the unslung library using ipkg.

[admin@asus root]$ ipkg install inadyn

For your reference, my ipkg configuration file (/opt/etc/ipkg.conf) looks as follows:


src wl500g http://wl500g.dyndns.org/ipkg
src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
dest root /opt

Note that /opt is my USB harddisk.

The result can be shown by:


[admin@asus root]$ ipkg files inadyn
Package inadyn (1.96.2-1) is installed on root and has the following files:
/opt/man/man5/inadyn.conf.5
/opt/bin/inadyn
/opt/share/doc/inadyn/readme.html
/opt/man/man8/inadyn.8
Successfully terminated.

Create a configuration file /opt/etc/inadyn.conf


username yourusername
password yourpassword
alias whatever.you.use.com
background # run in background mode
syslog # Log to syslog
update_period_sec 1600 # Check every x seconds

Add the executable to the end of a startup script (one that is executed after the drive is mounted). I added the following line to /usr/local/sbin/post-mount:


/opt/bin/inadyn --input_file /opt/etc/inadyn.conf

Save the script:


flashfs save
flashfs commit

That's it.

Thanks for a great tutorial! Just bought my WL-500Gpv2 and is working on setting it up with Oleg's great firmware. Of course one of the first things I thought about was how to get "visible" to the rest of the world, the WL500 being behind another router. Inadyn does the job perfectly!
One thing though:
inadyn installed to /opt/opt/bin instead of /opt/bin (my HDD is also mounted on /opt), witch is not a big problem, I just had to change the .conf file, but just thought I would let you know

Cheers
Gydi

danko
07-09-2010, 20:10
If you use the renewed Oleg's firmware from http://code.google.com/p/wl500g/ inadyn is already installed.

I have done the following steps:

Deactivate the DDNS-Service in the web-interface if it is activated.

Create the config file /opt/etc/inadyn.conf as described in post #1.

If you have set up your router with wengis HOWTO you can do the following to start up inadyn:

Create the file /opt/etc/init.d/S22inadyn


#!/bin/sh

if [ -n "`pidof inadyn`" ]; then
/usr/bin/killall inadyn 2>/dev/null
fi

/usr/sbin/inadyn --input_file /opt/etc/inadyn.conf


Make it executable

chmod +x /opt/etc/init.d/S22inadyn