RSS

TP-Link TL-WR1043ND – Openwrt – Ch02_DDNS

13 Apr

0) Briefing

  • Up until now
    • OpenWrt installed, password set = ssh enable, Wifi enable
    • 4.785MB memory left (4900B) from fresh
  • What next
    • First time login router with SSH
    • Install software from Command-line-interface
    • Install DDNS client
    • Link freedns.afraid.org account to router

——————————————————————————–

1) Login router with SSH

  • In Microsoft Windows, use PuTTY (Download here)
    The rest of the instruction will be using Linux. Seriously, if you do not know how to use Linux command-line, you will have not hope working with the router. OpenWrt is just another version of Linux.
  • In Linux, open up your favorite terminal.
  • Type in the following command
    ssh root@192.168.1.1

——————————————————————————–

2) Install DDNS client

  • Update the local software database, so you will know what are available to you.
    The database is stored in RAM and will lost at each reboot.

    opkg update
  • To read the software list
    opkg list
  • Try to pin point the DDNS software
    opkg list | grep -a ddns
  • Install the DDNS software, this is for CLI settings only
    opkg install ddns-scripts
  • If you want to set DDNS through web page ( they call the web page software “LuCI”), you install this instead
    opkg install luci-app-ddns

——————————————————————————–

3) Setup DDNS client with freedns.afraid.org

  • The DDNS client is kind of working with freedns.adraid.org, just beware how I use the update code as password.
  • “vi” is a text editor in Linux. It is a bit tricky to understand how it works. However, it is a very powerful editor. ( Click here to learn how to use )
  • Edit the following config file
    vi /etc/config/ddns
  • Edit the followings
    • option enabled          “1”
    • option service_name     “freedns.afraid.org”
      you must use the above name for service_name for FreeDNS
    • option domain           “abcd.mooo.com”
    • option username         “abcd”
    • option password         “use_your_update_code_as_password”
      you can find this from their web page: For Members -> Dynamic DNS -> Direct URL
      freedns.afraid.org/dynamic/update.php?your_update_code
    • option ip_source        “web”
    • option ip_url           “http://checkip.dyndns.com

     

  • To kick off the service, trigger the WAN interface
    ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface
  • To confirm, use this command
    ps

    Look for the following : {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh myddns 0

——————————————————————————–

Appendix : References

Advertisements
 
2 Comments

Posted by on April 13, 2013 in Networking, Router

 

Tags: , , , , , , , , , , ,

2 responses to “TP-Link TL-WR1043ND – Openwrt – Ch02_DDNS

  1. Ricardo Quezada Rey (@quezadarey)

    May 4, 2013 at 9:57 pm

    And the option ip_url?

     
    • brianlhm

      May 6, 2013 at 10:33 am

      “http://checkip.dyndns.com” <—- This is the URL, use it as the option ip_url

       

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: