Cheap wireless hacking with OpenWRT
Aug 21, 2013
Since I bought my WiFi-router in 2006, a Linksys WRT54G, I've been interested in open source router firmwares and network hacking. At the time, the features seemed quite amazing. You could do all kinds of super features, for instance QoS, formerly only available in professional equipment.

The firmware that stuck with me is OpenWRT but there is more to choose from, for instance Tomato and DD-WRT.
Quite recently I've started poking around with embedded, using node.js on a Raspberry Pi. When I needed WiFi that was not always easy:
- Because WiFi dongles have relatively high power consumption and Raspberry Pi won't give much more than 140mA, you need to use a powered USB hub.
- Some WiFi dongles are plug-and-play, others need a driver (and sometimes some magic) to work.
- Only a subset of the supported WiFi-dongles can be put in AP mode
You might not be surprised that I started looking back to my dear OpenWRT. And since I last used it, lots of cheap hardware has come out which makes it ideal for low budget embedded hacking.

The TP-Link MR-3020 is about $30 / €20 and has a nice hardware despite its small size:
- Powered via its USB micro connector
- Can power the Raspberry Pi via its USB connector
- One RJ-45 Ethernet port
- WiFi chip can deliver up to 150MBps
- Pushbutton that you can configure to do something useful
- Flashable out of the box, no need to open up and connect to a serial console
Watch out for TP-Link's over-promising marketing lingo though: "Portable 3G/4G Wireless N Router" does not mean a SIM card reader and 3G chip on the board. It simply means that they added software support for some 3G USB dongles. When you run OpenWRT you still have the option to add a 3G USB dongle, just like with any other OpenWRT compatible hardware that has USB.
So, you ask, why should I buy something like this and what can I do with OpenWRT? Well, here are some of my ideas:
- Make a Captive Portal for your embedded web server. (Ask me if you want to know more about this)
- Make a router for your Device Lab that automatically logs all traffic in HAR format
- Convert all bypassing images to black and white for the hell of it.
There are obviously many cool hacks for the OpenWRT out there, for instance:
- Add a cheap USB sound card and make a jukebox
- Make a file-sharing device
- Control a robot via GPIO
So check it out and get started hacking! As a frontend developer I admit that the learning curve can sometimes seem steep, but getting started is very easy and you can get help in the OpenWRT forums. The reward for learning about network hacking is two-fold; First of all it's fun to add network support to your hobby projects. Secondly, you get to know more about network stuff. Having insight in the "plumbing" of the Internet is something you will have lots of use for even as a frontend developer. For one thing, it can have a huge affect on page load speeds.
Share