What Is OpenWrt And Why Should I Use It For My Router?

Ads by Google

linksys wrt54g   What Is OpenWrt And Why Should I Use It For My Router?So, what is OpenWrt? OpenWrt is a Linux distribution for your router. Like other Linux distributions, it offers a built-in package manager that allows you to install packages from a software repository. It can be used for anything that an embedded Linux system can be used for, including functioning as an SSH server, VPN,  traffic-shaping system, or even a BitTorrent client.

OpenWrt isn’t the ideal solution for everyone’s needs. Most people will be happy with their router’s default firmware, while many power users will want a drop-in replacement firmware like DD-WRT. OpenWrt is more flexible – it’s basically an embedded Linux distribution that can be installed on various routers. OpenWrt has a web interface, but if you just want a web interface with more features, you’re probably better off with another replacement router firmware.

Like DD-WRT, OpenWrt is Linux-based and may be more stable than the firmwares some routers include, which can struggle when handling large numbers of connections.

Uses for OpenWrt

If the idea of having a modular Linux distribution available on your router doesn’t excite you with all the possibilities, you may be reading the wrong article. But we’ll give you a list of the cool things you could do with OpenWrt , aside from having it function as a router:

Ads by Google

  • Use the SSH Server for SSH Tunneling: OpenWrt includes an SSH server so you can access its terminal. If you expose the SSH server to the Internet (be sure to secure it with key-based authentication instead of a weak password), you can access it remotely and use SSH tunneling to forward your traffic over the encrypted connection. This allows you to securely access websites from public Wi-Fi and access websites that can only be accessed in your home country while travelling abroad.
  • Set Up a VPN: SSH tunneling works similarly to a VPN in many ways, but you could also set up a proper VPN on your OpenWrt router.
  • Install a BitTorrent Client: With some sort of network-attached storage or a router with an integrated USB port and an attached USB storage device, you could use your router itself as a BitTorrent client.
  • Run Server Software: OpenWrt’s software repositories contain packages allowing it to function as a web server, IRC server, BitTorrent tracker, and more. You’re probably already using a router, so why not have that same router function as a server? Routers use much less power than computers, so this is a smart move if you need a lightweight server.
  • Perform Traffic-Shaping and QoS: OpenWrt allows you to perform traffic-shaping and quality of service on the packets travelling through your router, prioritizing certain types of traffic. You could even prioritize traffic going to specific computers, de-prioritizing traffic going to other computers.
  • Create a Guest Network: OpenWrt’s wiki contains instructions for setting up a special wireless network for guests, one that’s separate from your main network for security purposes. You can even throttle the guest network’s speed.
  • Capture and Analyze Network Traffic: You can use tcpdump to log all the packets travelling through your router to a network share and open the file with a tool like Wireshark to analyze your network’s traffic.

This isn’t a complete list, not by a long shot – but it should get you started thinking about what’s possible with OpenWrt. It’s an embedded Linux system with a wide variety of software packages available for it, and in many ways it’s as flexible as a computer running Linux – although its hardware is much more constrained.

Installing OpenWrt

OpenWrt was originally developed for the Linksys WRT54G, but it now supports many more models of routers. You can find a list of supported router models on OpenWrt’s website. OpenWrt’s wiki also offers instructions for installing OpenWrt. While installing OpenWrt, you’re essentially replacing your router’s built-in firmware with the OpenWrt Linux system.

openwrt welcome screen   What Is OpenWrt And Why Should I Use It For My Router?

The Terminal & Web Interface

Once OpenWrt  is installed, you can access its BusyBox shell using an SSH client like PuTTY on Windows or the ssh command built into Linux and Mac systems. Busybox is a common shell used on embedded Linux systems, and OpenWrt includes common programs like the vi text editor for editing files. Like other Linux systems, you can run various scripts on it and set up cron jobs to perform actions on a schedule.

OpenWrt uses the opkg package manager to install packages from its repositories, which contain thousands of packages. It also uses the UCI (Unified Configuration Interface) for configuring your system. The OpenWrt wiki has all the information you should need.

putty with openwrt shell   What Is OpenWrt And Why Should I Use It For My Router?

You don’t really need to know all of this, however. OpenWrt includes LuCI, a web interface for configuring your OpenWrt router. The web interface contains a variety of different configuration pages, including a package manager page that allows you to browse, search, and install available packages. The number of packages you can install depend on the storage space available on your router. There’s nowhere near enough room to install everything – OpenWrt’s modular nature allows you to choose which features you want installed and assemble your own router operating system.

Some software packages also have LuCI configuration pages, allowing you to easily configure them after installing them. Note that not all software available for OpenWrt has a LuCI interface, so you may have to get down-and-dirty in the terminal when configuring some software.

openwrt software packages in luci   What Is OpenWrt And Why Should I Use It For My Router?

Have you ever used OpenWrt or any other third-party router firmwares? What do you use them for? Leave a comment to share your experiences and any clever tricks you’ve picked up.

Image Credit: webhamster on Flickr

Ads by Google

15 Comments - Write a Comment

Reply

Márcio Guerra

I used one of those routers, but not nowadays. It wasn’t mine, in fact… However, if I ever go back to another, considering that I’m on Linux at the moment, this might be a good resource!

Thank you! Cheers!

Reply

null

Where’s the part about DD-WRT vs. OpenWRT? I was expecting to see some benchmarks and some commentary about which one is better for what situations. What does WRT stand for anyhow?

Mike Wilmot

I currently have a wrt54g with dd-wrt installed, been using it for a few years now and have never had a problem… I too was expecting to read more of a comparison vs openwrt, and how “OpenWrt is more flexible”.

Reply

Chris Marcoe

So, can you do all of these things with a single router? Or can you only do one or 2? Is there a limit?

Haris Demetriou

You can do thoses and even more things with such a firmware. The thing to nottice is the compatibility between the router you have and the OpenWRT version, not all routers are supported. For more about compatibility (http://wiki.openwrt.org/toh/start).
Those mentioned in this article are the main, most important features, but OpenWRT has a bunch of features and the best way to find out is to try the firmware yourself….

Chris Marcoe

Good info. Thank you. Before this article, I knew you could flash your firmware but I had no idea you could replace it. I didn’t know such a thing existed. After knowing, now, that you can do more than one thing with it, I think I might be changing things around.

Reply

Elia Elias

I tried OpenWRT once inadvisable for the inexperienced user, it needs a lot of command line knowledge for tweaking and making things work just the way you want it, although its feature set is huge yet I recommend dd-wrt less feature set yet more user friendly.

Reply

Scott M

I was looking for a comparison as well.It does seem also that it is forthe more experienced user.

Reply

Darren S

Thought there would be a comparison of the two.

Reply

Biobaku Collins

Good information, will come handy as a technical guy

Reply

Michael Heffner

I’ve used DD-WRT for years. I us multiple routers to get my wifi covering 30 acres of wooded land and I couldn’t do it with the stock firmware. I haven’t tried OpenWrt though. May have to look and see if it’ll add anything, but like the saying goes, if it aint broke, don’t fix it.

Reply

Willy

relectronicsupply.com has the Linksys WRT54G routers with OpenWRT already successfully installed on them for $20

pingu

is relectronics for real? pages say ‘demo store for testing purposes’

Reply

Aagam

Can I force any client to send his mac id to particular router, without any handshaking ? I mean with out user input !

Reply

Simplius

The original OpenWRT instructions are as useless as yours how to install the firmware. Where on earth is the step one – getting the chunk of data that is called FIRMWARE???

Your comment