Skip to content

DD-WRT

DD-WRT is an alternative firmware for several WLAN routers which offers a lot of more features than the default firmwares of most routers, such as repeater mode, printserver, fileserver, etc.. I use it on an ASUS WL-300g and a Linksys WRT54GL.

Configure as non-WDS repeater

After a lot of trial-and-error and studying the different HowTos, I now found the best settings to make my former AccessPoint a repeater.

This mode will repeat the WLAN network under a different SSID. Your WLAN card won't do any roaming and you will have to setup port forwardings for server daemons.

So here are the neccessary settings. Pages you don't need to change do not have an image linked.

Notify about new IP via Prowl service

Prowl was originally thought as a remote notification service from MacOS Growl to the iPhone. But it provides a great web-based API so that it can be used for any other purpose.

The DD-WRT Wiki lists all the locations where you can place scripts for automatic execution. As we want to be notified upon IP changes, the best event is the wanup. So create a file /tmp/etc/config/prowl.wanup. In the Script Examples section, there's a nice DynDNS script which shows, how to get the current WAN IP and check whether it has changed.

With some modifications, it looks like this:

#!/bin/sh
IFACE=ppp0
OLDFILE=/tmp/ipaddr.cache

OLD_IP=`cat $OLDFILE`
NEW_IP=`ifconfig ${IFACE} | sed '/.*inet addr:/!d;s///;s/ .*//'`

# Special (private) Unicode icons for the iPhone
PROWL_UP=""
PROWL_DISH=""

if [ "$NEW_IP" != "$OLD_IP" ]; then
    /tmp/root/prowl.sh "ppp0 is $PROWL_UP" -2 "IP is $NEW_IP $PROWL_DISH"
    echo $NEW_IP > $OLDFILE
    echo Updated IP to $NEW_IP
fi

Put this file to /tmp/etc/config/prowl.wanup. The used /tmp/root/prowl.sh is the one you can find in the [[TODO:software:sh:http-post]] article.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

joshua mason on :

thanks, it's so rare to find so much useful information in one place these days :)

Dharm Raj Joshi on :

thanks sir. it is very important information for us because, I'm working a field of laptop hardware and wireless networking. your information on this page are very helpful and knowledgeable for IT related students.

Add Comment

Markdown format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options