No-IP.com Client

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 04:08, 3 November 2005 (edit)
69.254.132.92 (Talk)
(Troubleshooting)
← Previous diff
Current revision (18:44, 18 March 2018) (edit) (undo)
Ian5142 (Talk | contribs)
(Removed Advanced tutorials)
 
(39 intermediate revisions not shown.)
Line 1: Line 1:
-'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[No-IP.com Client]]'''+There are a few DDNS services already integrated into the web interface for DD-WRT, but my favorite, [http://www.no-ip.com NO-IP] isn't one of them. ('''update: every version > DD-WRT v23 SP2 has it onboard by default'''.) 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.
 +No-IP has also published a guide on their site on [http://www.no-ip.com/support/guides/routers/dynamic-dns-on-dd-wrt.html how to configure ddns and dd-wrt].
-==Introduction==+=Prerequisites=
-There are a few DDNS services already integrated into the web interface for DD-WRT, but my favorite, [http://www.no-ip.com NO-IP] 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:'' ''You should already have:''
-a Linksys WRT54G product -a Linksys WRT54G product
Line 13: Line 11:
-some knowledge of using [[ipkg]] to install packages -some knowledge of using [[ipkg]] to install packages
-[[jffs]] already configured if you don't want to install to ram<br> -[[jffs]] already configured if you don't want to install to ram<br>
- ''If your running Windows on your desktop:''+ ''If you're running Windows on your desktop:''
-[http://www.textpad.com/ TextPad] or [http://www.gena01.com/win32pad/win32pad_1_5_7.exe Win32Pad]<br> (or other *nix friendly text editor. DO NOT USE NOTEPAD) -[http://www.textpad.com/ TextPad] or [http://www.gena01.com/win32pad/win32pad_1_5_7.exe Win32Pad]<br> (or other *nix friendly text editor. DO NOT USE NOTEPAD)
-==Installation==+=Installation=
-====Install the NOIP ipkg package====+==Install the NOIP ipkg Package==
-Find the '''noip''' package in the [http://tracker.openwrt.org/packages/ OpenWRT Package Tracker].<br> You will need the URI of package to install it.<br> -Find the '''noip''' package in the [http://tracker.openwrt.org/packages/ OpenWRT Package Tracker].<br> You will need the URI of package to install it.<br>
-telnet or ssh shell into the router -telnet or ssh shell into the router
- -run the command ipkg install -d &lt;dest_name&gt; &lt;URI of package&gt;<br>+ -run the command ipkg install -d <dest_name> <URI of package><br>
- &lt;dest_name&gt; should be ''root'' to install to /jffs+ <dest_name> should be ''root'' to install to /jffs
- &lt;dest_name&gt; should be ''ram'' to install to /tmp+ <dest_name> should be ''ram'' to install to /tmp
*Remember, /tmp is deleted on router reboot* *Remember, /tmp is deleted on router reboot*
Ex: ''ipkg install -d ram http://www.ramereth.net/openwrt/ipkg/noip_1.6.0_mipsel.ipk'' Ex: ''ipkg install -d ram http://www.ramereth.net/openwrt/ipkg/noip_1.6.0_mipsel.ipk''
-====Editing the noip.config file====+===Editing the noip.config file===
- -Using your method of choice, copy the file /&lt;dest_name&gt;/etc/no-ip.conf<br> to your desktop machine+ -Using your method of choice, copy the file /<dest_name>/etc/no-ip.conf<br> to your desktop machine
-Using a *nix friendly text editor, edit no-ip.conf to with your [[http://www.no-ip.com NO-IP.com]] account information -Using a *nix friendly text editor, edit no-ip.conf to with your [[http://www.no-ip.com NO-IP.com]] account information
- -fill in your username, and password+ -fill in your username, and password (note: use url encoding for special chars ie. '+' = '%2B')
-fill in the ''hostname'' you would like it to update. -fill in the ''hostname'' you would like it to update.
-fill in the ''domain'' for that host name. -fill in the ''domain'' for that host name.
-Alternatively, fill in the group name to update if you have multiple hosts grouped together -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''.<br>Do not comment fields. -''If you are not using one of the fields DOMAIN, HOSTNAME, or GROUP set it equal to ''nothing''.<br>Do not comment fields.
-'''ex1:''' I want it my router to update ''example.no-ip.com'' every 30 minutes+'''ex1:''' I want my router to update ''example.no-ip.com'' every 30 minutes
<pre> <pre>
############################################################################## ##############################################################################
Line 96: Line 94:
</pre> </pre>
-==Usage & Troubleshooting==+===Launching the Client===
-====Launching the Client====+ -cd to the install folder (/<dest_name>/usr/bin)
- -cd to the install folder (/&lt;dest_name&gt;/usr/bin)+
-run ''./noip -c ./../../etc/no-ip.conf'' -run ''./noip -c ./../../etc/no-ip.conf''
- +'''General Usage'''
-====General Usage====+
noip takes the following flags: noip takes the following flags:
-c config_file use alternate config file -c config_file use alternate config file
-h display help -h display help
- -i &lt;IPaddress&gt; override ip detection. Use &lt;IPaddress&gt;+ -i <IPaddress> override ip detection. Use <IPaddress>
-l log output to stderr -l log output to stderr
-d increase debug verbosity -d increase debug verbosity
-====Troubleshooting====+==Troubleshooting==
- -cd to the install folder (/&lt;dest_name&gt;/usr/bin)+ -cd to the install folder (/<dest_name>/usr/bin)
-run ''./noip -l -d -c ./../../etc/no-ip.conf'' -run ''./noip -l -d -c ./../../etc/no-ip.conf''
-Based on the screen output, determine why noip is ending prematurely. -Based on the screen output, determine why noip is ending prematurely.
Line 128: Line 124:
to either of the other methods on the [[Startup Scripts]] page. to either of the other methods on the [[Startup Scripts]] page.
- +[[Category:Dynamic DNS]]
- +
- +
- +
-----+
-'''You are here: ''' '''[[Main Page]]'''/'''[[DD-WRT Docu (EN)]]'''/'''[[No-IP.com Client]]'''+

Current revision

There are a few DDNS services already integrated into the web interface for DD-WRT, but my favorite, NO-IP isn't one of them. (update: every version > DD-WRT v23 SP2 has it onboard by default.) 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.

No-IP has also published a guide on their site on how to configure ddns and dd-wrt.

Contents

[edit] 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
-jffs already configured if you don't want to install to ram
If you're running Windows on your desktop: -TextPad or Win32Pad
(or other *nix friendly text editor. DO NOT USE NOTEPAD)

[edit] Installation

[edit] 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

[edit] 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 (note: use url encoding for special chars ie. '+' = '%2B') -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 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
#
##############################################################################

[edit] 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

[edit] Troubleshooting

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

[edit] Load on router startup

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

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

-Follow the instructions in Startup Scripts#Shell Script Method to make your script load on startup.

Alternatively, if this is the only thing you want to load on startup, pass the line /jffs/usr/bin/noip -c /jffs/etc/no-ip.conf to either of the other methods on the Startup Scripts page.