Giter VIP home page Giter VIP logo

asusddns's Introduction

ASUSddns

Asus ddns update and registration script for DD-WRT and others platforms.
This script allows you to use the Asus ddns service on Asus router with a modified firmware like DD-WRT or OpenWRT.
You can enable jffs on your router or save the script on a usb drive attached to the router.

Installation

curl https://raw.githubusercontent.com/BigNerd95/ASUSddns/master/ASUSddns.sh -O -k
chmod 777 ASUSddns.sh

Usage

./ASUSddns.sh mac wps host (register|update) (logger|console|silent)

mac

Mac address of wan interface, it is used as username.
It must be an asus mac address or the request will fails.
To get it, launch:
nvram get et0macaddr

wps

Wps pin code, it is used to calculate the password.
To get it, launch:
nvram get secret_code

host

Host is the hostname you want without .asuscomm.com part.
For example if you want testestest.asucomm.com,
you only have to write testestest.

action

  • register
    This action is needed only once, to register a new hostname with your Asus mac address.
  • update
    This action is needed all the times you need to update the hostname with your new wan ip.
    (The hostname is checked locally before sending an update request to the asus server)

output

  • logger
    Prints script output on the system log.
    (On ddwrt: /var/log/messages)
  • console
    Prints script output on stderr.
  • silent
    Disable script output.

Examples

Register a new dns (testestest.asuscomm.com)

./ASUSddns.sh 00:11:22:33:44:55 12345678 testestest register console

Update dns

./ASUSddns.sh 00:11:22:33:44:55 12345678 testestest update logger

Run update each 5 minutes

*/5 * * * * root /path/ASUSddns.sh 00:11:22:33:44:55 12345678 testestest update logger

(DD-WRT: add this line in Administration -> Management -> Cron)

Dependences

Openssl, curl

Reference

ASUS Source Code
ASUS NG Source Code

Slim version

If the firmware doesn't satisfy the dependences, check out the slim version

asusddns's People

Contributors

bignerd95 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.