Results 1 to 3 of 3

Thread: Multihoming and multiple dyndns updating... (How To)

  1. #1

    Multihoming and multiple dyndns updating... (A How To)

    Just in case anyone was wanting to run multiple websites from the wl-700ge and use dyndns to update the ip's for all the sites (up to 5 are free on their site) here's how...

    1. Install custom firmware (I'm using the 1.4.6 2a flavor).

    2. Turn off the default website, and turn on the "Photo" website (you'll kill it later but humor me for now).

    3. In the "Photo" directory make folders for each website you are intending to run with the naming convention of www.<your personal domain>.dyndns.org (or whatever free domain you are using). Place your content in these folders.

    4. In the rc.local file kill the thttpd process and run a new instance (like in the third example for the 1.4.6 2a firmware). Make sure you add -v in the launch command (this triggers multihoming mode). Point the directory to the /Photo/ dir and you are almost there!

    5. Make sure you have your domains registered in dyndns.org (or again one of the other domains they own).

    6. Make sure the ddns updater is OFF in the GUI. Make a ddns.conf file similar to the one in this post http://wl500g.info/showpost.php?p=27160&postcount=2 Make sure to have ALL your hosts in the host line separated by comma and NO spaces. Also the interface is eth0 (not ppp0). Add the ez-ipupdate (as mentioned in the referenced post) execution command to your rc.local and reboot.

    7. You can see if it all worked in the syslog (via the GUI works). The updater will poll every 5minutes to see if the local ip has changed on eth0, if it did then it will contact dyndns and check it's db to see if it needs to be updated.

    That's it, now you have a multihoming, dynamically updating webserver!

    Hope you can put this to use (finally I can give back to the community )
    Last edited by medsource; 15-01-2007 at 22:38.

  2. #2
    Quote Originally Posted by medsource View Post
    Just in case anyone was wanting to run multiple websites from the wl-700ge and use dyndns to update the ip's for all the sites (up to 5 are free on their site) here's how...

    1. Install custom firmware (I'm using the 1.4.6 2a flavor).

    2. Turn off the default website, and turn on the "Photo" website (you'll kill it later but humor me for now).

    3. In the "Photo" directory make folders for each website you are intending to run with the naming convention of www.<your personal domain>.dyndns.org (or whatever free domain you are using). Place your content in these folders.

    4. In the rc.local file kill the thttpd process and run a new instance (like in the third example for the 1.4.6 2a firmware). Make sure you add -v in the launch command (this triggers multihoming mode). Point the directory to the /Photo/ dir and you are almost there!

    5. Make sure you have your domains registered in dyndns.org (or again one of the other domains they own).

    6. Make sure the ddns updater is OFF in the GUI. Make a ddns.conf file similar to the one in this post http://wl500g.info/showpost.php?p=27160&postcount=2 Make sure to have ALL your hosts in the host line separated by comma and NO spaces. Also the interface is eth0 (not ppp0). Add the ez-ipupdate (as mentioned in the referenced post) execution command to your rc.local and reboot.

    7. You can see if it all worked in the syslog (via the GUI works). The updater will poll every 5minutes to see if the local ip has changed on eth0, if it did then it will contact dyndns and check it's db to see if it needs to be updated.

    That's it, now you have a multihoming, dynamically updating webserver!

    Hope you can put this to use (finally I can give back to the community )
    Hi,

    could you kindly explain me, what you mean by multiple websites run on one router ?
    multihoming ?

    I registered with DynDns.com and can access my server remotely
    using http protocol.

    Firmware runs one web server for GUI
    and I tested httpd as another web server.

    The only way known to be to run 2 web servers on one router
    is to use diferrent ports for each one.

    So please tell me how it works with multiple websites and multiple dyndns entries .
    Is each directory matched with respective DynDns domain ?

    Darius

  3. #3
    Quote Originally Posted by darius View Post
    Hi,

    could you kindly explain me, what you mean by multiple websites run on one router ?
    multihoming ?

    I registered with DynDns.com and can access my server remotely
    using http protocol.

    Firmware runs one web server for GUI
    and I tested httpd as another web server.

    The only way known to be to run 2 web servers on one router
    is to use diferrent ports for each one.

    So please tell me how it works with multiple websites and multiple dyndns entries .
    Is each directory matched with respective DynDns domain ?

    Darius
    MY wl700ge (now running kfurge 1.0.7.8) is running multiple personal websites (these are separate from the web based configuration pages). The multihoming component simply means that one IP and port serves as the destination of inbound web requests. The http protocol in the header of the request packets has the name of the intended website. Using this, certain web servers can pick out this header info and return the correct web pages.

    For example, lets say you have two web sites you wan to run. We'll call them kittens and puppies. Now you have already registered the domains on a hosting service (I'll assume dydns.org for the example). So, your registered names will be www.kittens.dyndns.org and www.puppies.dydns.org. To have the requests be routed correctly, you need to have thttpd relaunch with the -v switch. This tells thttpd to check the incoming http requests for the intended site (in this case www.kittens.dydns.org or www.puppies.dydns.org). In your web directory (this is the Photo directory in the /shares/MYVOLUME1/MYSHARE1/ directory), you must have two folders named each www.kittens.dydns.org and www.puppies.dydns.org. Httpd will then route the page requests to the correct folders. The second part of the config is to have the auto update program supplied by asus to update dydns.org of your ip periodically for both (or up to five for free) of the websites so that people can get there.

    So, to sum up: one ip, one port, multiple websites.

    Code examples:

    rc.local addition
    Code:
    # Restart the web server in multihoming mode
    killall thttpd
    thttpd -dd /shares/${pool}/${share}/Photo -p 8081 -v -i /var/run/thttpd.pid
    rc.local addition
    Code:
    # enable multi-dns updating
    ez-ipupdate -c /opt/etc/ddns.conf
    ddns.conf (using example of kittens and puppies)
    Code:
    daemon
    period=300
    retrys=2016
    resolv-period=300
    max-interval=2073600
    interface=eth0
    service-type=dyndns
    user=<<username>>:<<password>>
    host=kittens.dydns.org,puppies.dydns.org
    wildcard
    Hope this helps.
    Last edited by medsource; 16-03-2009 at 05:31.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •