Using AutoAP with any dd-wrt firmware

AutoAP is a script that continuously scans for open Wi-Fi connections, tests them for validity, connects to the strongest signal, and makes it available locally. If the connection is lost, the script scans again and finds the strongest valid signal again, and maintains a continuous connection to the internet in a mobile or portable environment. The script paremeters are highly configurable, including ability to configure secure connections.

What is this good for, you ask? Look at "The WiFi Predator" at the bottom of the page.

Note: My router is Buffalo WHR-HP-G54, but the procedure is the same for any router that is supported by dd-wrt.

Here are the steps you need to follow:
  • Install this dd-wrt firmware for the Buffalo WHR-HP-G54, or the firmware for your router from here. Make sure the firmware supports JFFS.
  • Enable JFFS (the following is a copy-paste from dd-wrt wiki):
  1. On the router web page click on Administration.
  2. Scroll down until you see JFFS2 Support section.
  3. Click Enable JFFS.
  4. Click Save.
  5. Wait couple seconds, then click Apply.
  6. Wait again. Go back to the Enable JFFS section, and enable Clean JFFS.
  7. Do not click "Save". Click Apply instead.

    The router formats the available space.

  8. Wait till you get the web-GUI back, then disable "Clean JFFS" again.
  9. Click "Save".
  10. It may be wise to Reboot the router, just to make sure
  • telnet into the router telnet
  • get into /jffs using wget http://server_ip/ (get the file on a webserver to be able to use wget, that's the easiest way to get the file there)
  • make executable: chmod 777 /jffs/
  • create a startup command /jffs/ &  (including the "&", see bellow how)
  • Configure the router like this: 

Select any router name and host name you want.
Make the Local IP Address something like
Click Save and then Apply Settings, wait for the reboot and then log back in to the new IP:

Add a Virtual Interface and then configure everything like this and then click Save:
The Wireless Network Name (SSID) for the Physical Interface could be anything, this is going to be overwritten automatically.
The Wireless Network Name (SSID) for the Virtual Interface is going to be the SSID that you connect to when you want to connect to the internet with your mobile device.

Wireless Security (configure security just for the Virtual Interface). This is what you are going to connect to with your mobile device.

Change the Preamble to Short and TX Power to something like 100-200:

Uncheck first (make sure you do this) everything on the Security->Firewall page and then Disable firewall. Click Save.

In the Commands box write /jffs/ & and then click Save Startup button

Reboot your router and then after 2 min go to:

You should see something like this:

If you see this page, this means SUCCESS! Congratulations.

Next step, get the antennas from here or here and connect to any open Wi-Fi connection from a mile or more!
Questions? Ask me!

Nice application for AutoAP: The WiFi predator.