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
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.