Breathe new life into your old home router
A New Route
If you have an old router lying around, you can put it to good use with a few easy projects and learn something along the way.
There are some fun and interesting projects that can be done by repurposing an old home router. If you don't have an old router lying around, you can usually find one for about $5-$25. These routers are easy to reflash, so a new programmer doesn't have to worry about messing things up too badly.
In this article, we will look at three projects to get some extra life out of an older router. The first project uses the router's USB port to connect to third-party devices. The second project collects microcontroller and internal data, and the final project displays the data on the router's web page and on a Raspberry Pi.
Selecting a Router and Firmware
A number of open source firmware solutions can breathe new life into an old router. OpenWRT [1] and DD-WRT [2] are the most popular packages, but there are other options. You need to determine if one of these firmware packages supports your old router. Keep in mind that many older routers only have 4MB of flash and 32MB of RAM. These routers may not run or only marginally run OpenWRT or DD-WRT. We recommend that you choose a router with a minimum 8MB of flash and 32MB or more of RAM.
You also need to consider whether the router has USB support. A router without USB support can still be used as a web or application server, but it will be missing external hardware integration.
For our router project, we used OpenWRT because of our experience using the Arduino Yún modules.
Getting Started
Loading new router firmware will vary based on the make of your router. For this step, you'll need to check the manufacturer's directions and the router specifics from the OpenWRT or DD-WRT websites.
After the new firmware has been loaded, the router should be disconnected from your home LAN, and a PC needs to be wired to one of the router's LAN ports. The router will have a default IP address of 192.168.1.1, and the PC needs an IP address in the 192.168.1.x range (e.g., 192.168.1.10).
Once the router and PC are wired into their own small network, the router can be powered up, and the OpenWRT web interface (LuCI) can be used to configure the new router settings.
There are many possible router configurations. Most importantly, you must ensure that the repurposed router does not effect the main router on your home LAN. Typically, you'll want to disable routing features on the repurposed router before it is connected to the home LAN. In the OpenWRT web interface, software services such as the firewall, DNS (dnsmasq
), and DHCP (odhcpd
) also should be disabled (Figure 1).
For our setup, we used a USB hub so that we could connect a variety of different devices (Figure 2).
Software
Routers don't have a lot of memory, so the default firmware is fairly lean on extra features. Consequently, you will need to add software packages.
OpenWRT uses opkg [3], the OpenWRT package manager, to find and install software packages. After the router is connected to the Internet, software can be added either through the LuCI web interface (Figure 3) or manually in an SSH shell.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.