No-IP.com Client

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:48, 17 May 2005 (edit)
Sveasoft (Talk | contribs)
m (General Usage)
← Previous diff
Revision as of 00:10, 18 May 2005 (edit) (undo)
Sveasoft (Talk | contribs)
(Load on router startup)
Next diff →
Line 114: Line 114:
==Load on router startup== ==Load on router startup==
-I haven't gotten that far. I'll keep you posted+-Using a *nix friendly text editor, create noip.startup as:
 +<pre>
 + #!/bin/sh
 + killall -q noip
 + /jffs/usr/bin/noip -c ./../../etc/no-ip.conf
 +</pre>
 +-copy noip.startup to ''/jffs/etc/config/''<br>
 +-from shell, run ''chmod 700 /jffs/etc/config/noip.startup<br>
 +<nowiki> (-nvram something?)<br></nowiki>
 +-reboot the router and verify your IP address changed. It may take up to <interval> minutes to update.<br>
 +So far this isn't working. I think I need to do some nvram variable or something.
---- ----
'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Doku (EN)]]'''/'''[[No-IP.com Client]]''' '''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Doku (EN)]]'''/'''[[No-IP.com Client]]'''

Revision as of 00:10, 18 May 2005

You are here: Main Page/DD-WRT Doku (EN)/No-IP.com Client


Contents

Introduction

There are a few DDNS services already integrated into the web interface for DD-WRT, but my favorite, [1] isn't one of them. While I could easily run No-IP.com's Dynamic Update Client to keep my domain name in sync with my WAN IP address one of my desktop machines, I'd much rather have it running on the router. This wiki will show you how to set it up to automatically run on startup.

Prerequisites

You should already have:
-a Linksys WRT54G product
-DD-WRT installed as the firmware
-SCP or some other way to copy files to and from your desktop setup
-a NO-IP.com account you'd like to synchronise
-some knowledge of using ipkg to install packages
If your running Windows on your desktop:
-TextPad or Win32Pad
(or other *nix friendly text editor. DO NOT USE NOTEPAD)

Installation

Install the NOIP ipkg package

-Find the noip package in the OpenWRT Package Tracker.
You will need the URI of package to install it.
-telnet or ssh shell into the router -run the command ipkg install -d <dest_name> <URI of package>
<dest_name> should be root to install to /jffs <dest_name> should be ram to install to /tmp *Remember, /tmp is deleted on router reboot* Ex: ipkg install -d ram http://www.ramereth.net/openwrt/ipkg/noip_1.6.0_mipsel.ipk

Editing the noip.config file

-Using your method of choice, copy the file /<dest_name>/etc/no-ip.conf
to your desktop machine -Using a *nix friendly text editor, edit no-ip.conf to with your [NO-IP.com] account information -fill in your username, and password -fill in the hostname you would like it to update. -fill in the domain for that host name. -Alternatively, fill in the group name to update if you have multiple hosts grouped together -If you are not using one of the fields DOMAIN, HOSTNAME, or GROUP set it equal to nothing.
Do not comment fields.

ex1: I want it my router to update example.no-ip.com every 30 minutes

##############################################################################
# this is a sample configuration file for noip_updater
#	it should be changed to contain your values and
#	placed in /usr/local/lib/no-ip.conf or /usr/local/etc/no-ip.conf
#	The meaning of each line is desctribed in the README file
#
LOGIN    = login_name@address.ext

PASSWORD = myP4ssw0rd

HOSTNAME = example

DOMAIN   = no-ip.com

GROUP	 =

DEVICE   = YourInternetConnectionDevice

PROXY    = N

NAT      = Y

DAEMON   = Y

INTERVAL = 30
#
##############################################################################

ex2: I have a group of hosts setup on my no-ip.com account and would like to update them all at once. The groupname I setup is "examplegroup"

##############################################################################
# this is a sample configuration file for noip_updater
#	it should be changed to contain your values and
#	placed in /usr/local/lib/no-ip.conf or /usr/local/etc/no-ip.conf
#	The meaning of each line is desctribed in the README file
#
LOGIN    = login_name@address.ext

PASSWORD = myP4ssw0rd

HOSTNAME =

DOMAIN   =

GROUP	 = examplegroup

DEVICE   = YourInternetConnectionDevice

PROXY    = N

NAT      = Y

DAEMON   = Y

INTERVAL = 30
#
##############################################################################

Usage & Troubleshooting

Launching the Client

-cd to the install folder (/<dest_name>/usr/bin)
-run ./noip -c ./../../etc/no-ip.conf

General Usage

noip takes the following flags:

-c config_file   use alternate config file
-h               display help
-i <IPaddress>   override ip detection. Use <IPaddress>
-l               log output to stderr
-d               increase debug verbosity

Troubleshooting

-cd to the install folder (/<dest_name>/usr/bin)
-run ./noip -c -l -d ./../../etc/no-ip.conf
-Based on the screen output, determine why noip is ending prematurely.

Load on router startup

-Using a *nix friendly text editor, create noip.startup as:

 #!/bin/sh
 killall -q noip
 /jffs/usr/bin/noip -c ./../../etc/no-ip.conf

-copy noip.startup to /jffs/etc/config/
-from shell, run chmod 700 /jffs/etc/config/noip.startup
(-nvram something?)<br> -reboot the router and verify your IP address changed. It may take up to <interval> minutes to update.

So far this isn't working. I think I need to do some nvram variable or something.


You are here: Main Page/DD-WRT Doku (EN)/No-IP.com Client