Difference between revisions of "Tutorials Linux DDNS Update Client INADYN"

From WebOS Internals
Jump to: navigation, search
(Updated Inadyn instructions to show how it can be uses in a non-daemon manner.)
Line 50: Line 50:
 
See [[Tutorials_Linux_DDNS_Update_Client_wget]] if your dynamic DNS supports URL based updates (i.e. freedns.afraid.org) to ensure updates are always with your device's radio IP. This method also doesn't require an always-on daemon, and updates only when your IP changes.
 
See [[Tutorials_Linux_DDNS_Update_Client_wget]] if your dynamic DNS supports URL based updates (i.e. freedns.afraid.org) to ensure updates are always with your device's radio IP. This method also doesn't require an always-on daemon, and updates only when your IP changes.
  
If you want to only run updates with inadyn when the EVDO connects, you can use the --iterations option, and set it up like the previous method which will keep the memory free when it's not updating. If you do this, make sure to turn off the auto start described above by removing /etc/event.d/webos-inadyn.
+
===Make inadyn run whenever your ppp0 (EV-DO) IP address changes:===
 +
If you want to only run updates with inadyn when the EVDO connects, you can use the --iterations option, and set it up like the previous method which will keep the memory free when it's not updating.  
  
==Make inadyn run whenever your ppp0 (EV-DO) IP address changes:==
 
 
You can do this by adding a script to /etc/ppp/ip-up.d called 09update-ddns.  Here are the contents of that /etc/ppp/ip-up.d/09update-ddns:
 
You can do this by adding a script to /etc/ppp/ip-up.d called 09update-ddns.  Here are the contents of that /etc/ppp/ip-up.d/09update-ddns:
 
   #!/bin/sh
 
   #!/bin/sh
Line 58: Line 58:
  
  
===Make this script executable===
+
Make this script executable:
 
   chmod 755 /etc/ppp/ip-up.d/09update-ddns
 
   chmod 755 /etc/ppp/ip-up.d/09update-ddns
 +
 +
If you do this, make sure to turn off the auto start described above by removing /etc/event.d/webos-inadyn.

Revision as of 03:56, 3 August 2009

The Dynamic DNS client INADYN is well used around the world. It is typically found on OpenWRT, DD-WRT Routers, and now can be on your Palm Pre. The INADYN service maintain your IP address in relation to the DNS hosting of your choice. This should help friends reach services you may run in the future. Services such as Dropbear, lighttpd and SFTP. It's assumed that firewall configuration on WiFi connections will need attention.

Authentication through DNS matching can now be achieved.

Configuration details for DDNS services listed below

dyndns

easydns

afraid

no-ip

tzo

zoneedit

changeip

regfish

dnsomatic


Below are simple get-to syntax & conf examples.

Install the inadyn backend service:

 /opt/bin/ipkg-opt update ; /opt/bin/ipkg-opt install inadyn

/etc/event.d/webos-inadyn:

 description "inadyn Daemon for WebOS"
 author "oc80z"
 start on started
 nice 5
 respawn
 exec /opt/bin/inadyn --input_file /var/opt/etc/inadyn.conf

/var/opt/etc/inadyn.conf:

 dyndns_system default@freedns.afraid.org
 alias palmpre.evilvho.st
 dyndns_server_name freedns.afraid.org
 dyndns_server_url /dynamic/update.php?**<inserted afraid.org hash here>**
 update_period_sec 400
 verbose 0

Note: WiFi (eth0) may/will override Evdo (ppp0) DNS settings with the above code. Services on <1024 may/will be firewalled. However if UPnP is enabled we can utilize //libupnp// (The Universal Plug and Play (UPnP) SDK for Linux provides support for building UPnP-compliant control points, devices, and bridges)

See Tutorials_Linux_DDNS_Update_Client_wget if your dynamic DNS supports URL based updates (i.e. freedns.afraid.org) to ensure updates are always with your device's radio IP. This method also doesn't require an always-on daemon, and updates only when your IP changes.

Make inadyn run whenever your ppp0 (EV-DO) IP address changes:

If you want to only run updates with inadyn when the EVDO connects, you can use the --iterations option, and set it up like the previous method which will keep the memory free when it's not updating.

You can do this by adding a script to /etc/ppp/ip-up.d called 09update-ddns. Here are the contents of that /etc/ppp/ip-up.d/09update-ddns:

 #!/bin/sh
 /opt/bin/inadyn --input_file /var/opt/etc/inadyn.conf --iterations 1 > /dev/null 2>&1 || /bin/true


Make this script executable:

 chmod 755 /etc/ppp/ip-up.d/09update-ddns

If you do this, make sure to turn off the auto start described above by removing /etc/event.d/webos-inadyn.