Creating A Super-Router (For Free)
Aaron writes "Kind of an interesting discussion and story over at Broadband Reports about the flurry of vendors releasing modified Linux based firmware updates for the Linksys WRT54G router. The updates bring a whole new level of functionality Linksys couldn't be bothered to incorporate. Among a long list of free improvements is the incorporation of bandwidth management, allowing users to end the days of choppy VoIP conversations without swapping out hardware."
Here's a detailed guide on how to do just that.
It's wonderful to learn that I could have powered it up before I sold the piece of junk. *sigh* www.ebay.com
For those of you that don't know, and are interested, Wondershaper can be found HERE.
It is AMAZING.
Sample config:
DOWNLINK=6000
UPLINK=200
DEV=eth0
# low priority source ports
NOPRIOPORTSRC="6881 6882 6883 6884 6885 6886 6887 6888 6889 80"
Sets those ports to only use up 200k of my 256k upstream leaving me the rest for SSH etc. I never have any problems w/my remote connection speeds this way. It's fantastic.
I have only had a single problem, recently, with Debian unstable... It removed my libatm for some reason. I reinstalled that and all was well.
Highly recommended for everyone, not just users of this "hackable" router.
Cisco only bought Linksys to prevent their routers from getting more advanced and competing with their expensive stuff.
Linksys isn't bad at updating their firmware. I was able to update my cheap wireless router so that it supports WPA for free.
Life in Orange County
While my router will update normal DynDNS addresses, it can't update Custom DNS, so my own domain name I have to update from a machine instide my network. I'd rather the router take care of that.
Regardless, my router's a Netgear, so I'm guessing this isn't really applicable here. Although it would be nice to see similar projects for other routers, if possible.
-N
I've nothing to say here...
I currently own a BEFSR81, which is their 8-port wired version (no wireless) that I purchased a couple of years ago.
It's got built-in QoS, which can prioritize traffic. You can choose low or high priority based on either your IP port number, or one of the LAN ports (at least, the first four).
I've tried it out, and it worked pretty well when I needed to slow down BitTorrent so that my dad could use his web browser and email (otherwise, BitTorrent was eating *all* of my bandwidth).
It wasn't great for having fine control, but it worked well enough to solve the problem for me.
You can accomplish anything you set your mind to. The impossible just takes a little longer.
One of the problems with VoIP has been choppy communications when users are making heavy use of their broadband connection.
Tha t's abs olutel y n ot true.
-- Reg ards
Sanf ord Wall ace
"A door is what a dog is perpetually on the wrong side of" - Ogden Nash
Is that free as in beer, free as in software, free as in "Freedom's just another word for nothing left to lose, Nothing, and that's all that Bobbie left me" or free as in "If you free me from these handcuffs now, I promise not to press charges". I always get them confused.
Is that linux based system available for the WAP as well? (Dunno if it's got enough RAM & flash memory to run&store it...)
Combine this with a good Broadband/DSL provider and Vonage and you've just freed yourself from the tyranny that is Verizon...
Yes Francis, the world has gone crazy.
In order for this to be true, where is my free Linksys router?
Linksys is a hardware company. They make money by selling hardware. By opening up the software (and making their hardware "hackable"), they will increase their hardware sales.
My hope is that other hardware companies (you name 'em: ATI, nVidia, Intel, Broadcom, Logitech, etc. etc.) will see this, and make their drivers (and associated software) open-source, thereby making their products "hackable" ==> increased sales.
I hope the "media" will take note of this, and put it out in plain words so that the PHBs who make the decisions will learn the lesson.
I wonder how many of these routers Linksys have sold simply because it runs Linux and is hackable (in the good sense). They were originally very resistant to the idea of letting people do this. Infact it all started because of a bug in there old firmware!
Now, if only Linksys could release proper Linux drivers for there other wireless goods. At the moment they are all useless to Linux users.
Once Comcast lets you in on what your unlimited bandwidth limits really are, you could use this to meter your access to help keep you under the unlimited limit...
Happiness is like peeing yourself. Everybody can see it but only you can feel its warmth.
The updates bring a whole new level of functionality Linksys couldn't be bothered to incorporate.
Thanks for the link to the modifications you couldn't be bothered to make for me, Aaron. I guess I'll have to go buy a Linksys, since you couldn't be bothered with buying one for me.
Nice little anti-corporate jab there. Linksys builds good solid stuff for a reasonable price, and all you can do is complain that it doesn't do everything.
Or is there just something inherently more hackable about that Linksys router?
Manipulate the moderator system! Mod someone as "overrated" today.
I didn't see one feature mentioned that I'd really, really like to see added to these boxes: an IPv6 6to4 tunnel. This is an ideal way to penetrate a NAT so you can establish direct TCP connections (and speak UDP) to any servers on your LAN from the outside. IPv6 support has been in all of the major operating systems for some time now, including Windows XP, Linux and Mac OS X, and while not every application is IPv6 ready, the important ones (like SSH) already are.
If 6to4 tunneling could be added to these consumer routers alongside IPv4 NAT, IPv6 stands to really take off without any help whatsoever from the ISPs. In fact, I almost prefer that my ISP not implement native IPv6. I like the fact that they now carry my encapsulated IPv6 packets without any ingress filtering, port blocking or other end-to-end-wrecking nonsense, and that they are oblivious to (much less control) the IPv6 address space. If or when the ISPs do implement native IPv6, you can bet that they'll exercise the same degree of arbitrary control that they now do over IPv4.
This will certainly move a lot a hardware for linksys. Look at the Rockbox mods for Archos for another example. Those who think that you can't make money off the GPL are wrong, at least in the case of hardware makers GPL'ing their firmware. (Although they didn't have a choice since they used linux as the firmware.)
Their was a story awhile back here on slashdot that discussed that Intel didn't want to release open source drivers for Centrino. They should. Open source drivers and firmware can be a boon to hardware makers.You have 5 Moderator Points! Use 'em or lose 'em! They will expire before any good stories are posted.
Cisco products are expensive but pretty damn stable.
Your "open source" comment is stupid, Cisco uses ASICs and other hardware level goop for much of their routing. Unless you're going to open a chip fab plant and start open sourcing your chips... need I say more? (There are some exeptions, ala the Cisco PIX 525 firewall, basically a PC motherboard with some custom stuff for failover etc.)
"Open Source cures cancer!" blah blah blah Use the right tool for the job, you won't paint yourself into a corner and you leave your options open, lad.
Trolling is a art,
Linksys is a hardware company. They make money by selling hardware. By opening up the software (and making their hardware "hackable"), they will increase their hardware sales.
That's a very simplistic view of the world and one that only works if the hardware manufacturer only sells a single product or has large jumps in capabilities between products within a family. Suppose Linksys intended to supply many of these features in a more expensive (i.e. more profitable) version of the router. They're now hosed as it is now possible for users to upgrade their firmware for free. So sure, they sell more of the cheaper routers, but this is not what they want. This problem will occur anywhere hardware manufacturers try to take advantage of hardware commonality and differentiating similar products through software based features.
Another potential issue is fighting "cloners". If Taiwanese company CloneCo now has easy access to the software feature set, they "merely" have to develop a clone architecture to run the now readily available software.
I like my ClarkConnect box better. All it cost me was a pile of old parts that were headed for the dumpster and a ~300 MB download.
lose != loose
OPENWRT!
http://openwrt.sourceforge.net/
Netgear's support web site contains the source for some of their routers (eg the DG834 series). Cool idea for people to be able to add their own features.
I replaced my WET11 with a second WRT54G with modified firmware which allows me to set it to client mode like a WET device. I use this to connect to my TiVo and Xbox.
The newer revs of firmware will have WDS which allows the routers to bridge to each other and client devices to connect to them. However, I think it does half the throughput.
I just got Vonage, and I plan using Wondershaper once these firmwares mature a little bit more.
-prator
Linksys is Cisco, perhaps you hadn't heard (wasn't hugely publicised) but Cisco bought them up. Now Cisco is a hardware AND sofware company. Some of their hardware, like their Pix 535s, are little more than a PC with a special flash card to boot off of. The price is not for the hardware, it's for the software and support.
Soooo, Cisco actually has an intrest in seeing that the stuff they sell as Linksys does not start to compete with their bigger stuff they sell as tehmselves. Often the difference is mainly software, sometimes completely.
Like take a cable modem I bought from them (a Cisco one, this was before the buyout). As shipped to me it was a basic cable modem. It would hook up to a DOCSIS provider and do waht cable modems do. However the thing ran IOS, and, had I paid for it, they had a version of the code with a firewall, VPN, IPSEC, and a ton of other things.
So just because they sell rocking hardware, doesn't mean they don't also have an intrest in certian software restrictions.
Is anyone working on the WRT55AG, the dual-band (a/b/g) cousin of the 54G? I've got one of those and it actually has a lot of problems. (I haven't gotten the source code on Linksys's site to work properly yet.)
How come there isn't a whole industry around this? I imagine there is a whole slew of firmware that could be 3rd party modified to incorporate new features. For example, there are many old laptops that could incorporate newer hardware if only the firmware recognized it. I understand that the laptop manufacture wants you to buy a new laptop, but sometimes the only reason why a newer processor can't be used is because the firmware won't recognize it so it won't boot. Argh!!!
--- I'm Green Hornet's sidekick not Inspector Clouseau's!
what are the chances of someone modding some wireless router to the linux mesh router project. this would make an inexpensive AP for all your wireless mesh routing needs.
The fact that their hardware can be upgraded with an unauthorized firmware image actually helps their business. First off, the fact that their hardware is customizable helps sell more hardware to geeks (who in turn recommend their hardware to friends, family, and clients). Secondly, using an unauthorized firmware voids the warranty, which saves them money -- if you flash it and break it, you're screwed. If you flash it and a component fails for a totally unreleated reason, they don't have to give you a free replacement; you'll have to buy a new one, so they still come out ahead.
This is a very different situation than things like the Dakota Digital camera hack or the i-opener hack. In those cases, the companies involved were/are selling the hardware at a loss as an incentive to get you to use a paid service. In these cases, hacking the hardware eliminates the need to use the service, thereby disrupting their business plan and letting you use the subsidised hardware for an unintended purpose. Linksys sells their hardware for a profit. Hacking it does nothing to disrupt their business plan, because they already made all the money they planned to make when the wholesaler bought a truckload of their hardware.
Why is it that the proponents of "one nation under God" are so eager to get rid of "liberty and justice for all"?
All kidding aside, here's the business model for 2004:
quiquid id est, timeo puellas et oscula dantes.
Sveasoft is working on a mesh firmware for the Linksys WRT54G. We hope to have a preliminary release sometime in late March.
Life is a tale told by an idiot, full of sound and fury, signifying nothing.
William Shakespeare
I would like to see a firmware that would
1. Limit bandwidth from unauthorized users to a fraction of the connection the owner is paying for (eg xDSL)
2. Route all traffic from unauthorized users through the gateway (eg xDSL router)
3. Block unauthorized access to port 25 to avoid spam from people on the street.
That way we could all share our internet connections and read our email when travelling without the hassle of commercial hotspots.
Guest visiting us could use our networks without exchange of keys and passwords.
Figured i'd better point this out, but there are already some good solutions to fixing this problem with FBSD. Check out this software router project called M0n0wall. http://m0n0.ch/wall/index.php I currently use it on a old p1, 200mhz, 40Mb of ram to control up and downstream bandwidth, so my computers dont interfere with my Vonage phone service. Works like a champ! Must have taken a total of 30 minutes to setup.
I had a rather power hungry PC based wireless/3G/APRS/AX.25 router in my car for a while which I used to serve Internet at conventions and such. I recently replaced it with the WRT54G and the sveasoft firmware, which has several benefits:
:)
:)
- The WRT54G only uses a few watts, whereas the PC based router spiked at 300W during startup and consumed north of 60W at idle and south of 100W during load. I also lost between 10-30% of the power due to conversion losses from the DC-AC-DC conversion through the auto inverter, since I couldn't find a good ATX power supply that ran on DC that I could couple to the car's batteries...
- The WRT54G has dual antenna jacks that I don't need to buy delicate adapters or pigtails for. I couple them directly to the jacks on twin high gain 2.4GHz dipole magmounts on the roof of the car, which gives me way better reception than I was getting from the orinoco, a pigtail, and a single one of the same antennas.
- Speaking of reception, kismet has been ported to the WRT54G! I don't need to screw around with the orinoco patches or hack my prism2 cards to add an antenna jack; it just works. I currently feed wifi data from the WRT54G to another computer which actually merges the GPS data with the wifi data from the WRT54G, because the WRT54G only has 4MB flash and 32K NVRAM for persistent storage, and you have to solder a USB serial chipset to the WRT54G PCB to add a serial port to it (for reading GPS's NMEA output); it doesn't come with one.
- Now that sveasoft added dropbear to their latest firmware, you can ssh into the device and run wakeonlan to power up other devices on your network remotely. This is seriously cool shit; I park my car, it associates with my home AP in client mode and shows up on my home network. I can then ssh into the WRT54G to power up the other computers in the car using wakeonlan to transfer files to them (transfer rate is somewhere around 1 megabyte per second in my environment), start the car, use the TNC in the car's ham radio, etc. I had to turn off the PC based router I was using before because it would drain the deep cycle marine batteries I'm using to power the car computers in an hour or two at load, but now I can leave the WRT54G on for a few days before the batteries even get low.
- If I forget where I parked my car, the antennas I'm using for the WRT54G are +6dBi, so I can pull out something with 802.11{b,g} and warwalk the parking lot looking for a strong signal from the WRT54G
- It's only $80 brand new around here in the bay area, which is damn cheap for a low power 200MHz Linux box with 16MB of memory, FIVE ethernet jacks, your choice of DC or AC power, pretty lights, official vendor provided source code for the firmware, an active community hacking on it, and a 802.11g capable wifi chipset with diversity antennas in form factor half the size of the smallest mini-ITX machine you can possibly get. And they're on the used market for prices approaching numbers that make me want to say it's close to disposable pricing. Heh, disposable routers
-- thalakan
I've got a WRT54G that I tried to install for a client to connect with her corporate PPTP VPN. It didn't work with PPTP VPN - apparently it was dropping GRE packets.
...I then tried various versions of the Linksys firmware to no avail. Eventually I stumbled across http://h.vu.wifi-box.net and found a hacked firmware upgrade that fixed the problem but I have serious reservations about using this for my client!
I have no access to the source code so how do I know whether or not this hacked upgrade monitors outgoing connections and passes interesting bits of information on to the author?
Certainly I could sniff the wire and find out for sure but I don't have time for this!!! There's tremendous potential for a malicious third party to monitor traffic using this. It just makes me leery when there's no source code to preview. Even if there was, I don't have the time to review it!
Any similar thoughts/concerns?
You need people like me so you can point your fucking fingers, and say "that's the bad guy."
If it wasn't on slashdot, I wouldn't know about it. Because it is on slashdot, downloading it will be hell.
Debian is Slow, Worse, Expensive
/lib/modules, as you are going to need it.
Open source may be good, but there is one example that sticks out like a sore thumb as a problem with open source. Debian gnu/Linux. It is offically the Worst Linux Distribution ever made.
First of all, Debian has the most out of date software packages of any major mainstream distros. Even in the unstable version, is KDE 2.2 and Gnome 2.0, with Xfree86 4.1 (A version that really sucks). There are literally years that pass between each update of Debian.
Secondly, its a pain in the goatse to set up, first of all, you are forced to use Kernel 2.2, which is horribly hacked with "backports" to get any use on any modern machine (Read, made after 1999). Good luck memorizing all the *.ko files in
Configuring XFree86 is hell! If you don't have a Thick X11 orilley book, and a list of your horizontal sync values from your monitor's intruction manual (if you even have one), BOOM! There goes your monitor.
Even then, good luck getting anything over 640x480@16 colours.
The most common response to help questions on the Debian mailing list is "n00b, READ THE FUCKING MANUAL, you idiot, go back to WINDOWS XP if you can't learn to use dselect", true too, search the archives if you think I'm lying. Other distros give you comprehensive PRINTED MANUALS, PHONE SUPPPORT and/or freindly forums where repling RTFM gets you banned!
Debians support for any decent hardware, including USB mice, scanners, Sound cards, heck even Serial devices struggle. If you can even get 80x25 text mode with PS/2 input devices you are really lucky.
Apt-get has many flaws. First of all it uses a non standard package format (the rest of the world uses RPM, deprecate the DEB format!), has broken respetories, and out of date software to install. All this combined with the kludgey dselect user interface make package management a nightmare.
And if you think I'm joking about this, find out why THOUSANDS of Debian users are switching to REAL distributions Debian is falling to pieces, if it is to survive any market share it will be through its superior forks (Xandros, Lindows, K/G-noppix) and unoffical package respetories.
Of course, while all this is going on, the only thing the Debian maintainers do is argue about politics on the mailing lists. The distribution decays while its creators argue over inane details like software licensing and the virtues of Marxism. Please! Spare me the political rhetoric and just give me a working distro!
Don't get me wrong, I love Linux, and I'm happily using distros such as Mandrake, SuSE, Gentoo and Fedora. But I'm sick to death of zealots that push obsolete Distros on me EVERY FREAKING TIME linux is mentioned. I'm speaking from real world experiance here.
Power over Ethernet hacks (PoE) are very cool.
Ralph Fowler PoE hacked Dlink DWL-900AP+. Tons of photos and some brave soldering.
MacOS refugee, paper MCSE, Linux Wanna-be
"a lot of the routing logic is hardware based"
No it isnt. Not in a $2000 cisco.
You need a (starting at)$15k cisco for that.
The $2k ciscos are all bottom-end ciscos which do everything in CPU and software.
Can I use the WRT54G's firmware on this model? My current WRV54G locks up every 5 minutes, and since there are no newer firmware items available, I was hoping to try some other solution to turn my current paperweight back into the all-in-wonder it was supposed to be.
Anyone manage to get the captive portal running on one of these things? (Such as http://nocat.net/ 's splashd)
I've got a public location that would be great to dump yet another trashheap box on the network for a captive portal.
Public hotspots generally don't have much room for hardware.
Proxim makes an access point that has a captive portal bundled in (the ap2500), but it is cost prohibitive ($800'ish last time I checked) and if you want to customize it for your location and user policies, you've got to run a webserver that it redirects you to.
Bundling this in would make this (more) useful for many more people.
Thanks,
Gyp
DaveC
There are no stupid questions...just stupid people.