Slashdot Mirror


Linux Distro For Linksys WRT54G

scubacuda writes "Here is a tiny Linux distro for the Linksys wrt54g (d/l the distro here). In just a few seconds, you can give your access point's ramdisk syslog, telnetd, httpd (with cgi-bin support), vi, snort, mount, insmod, rmmod, top, grep, etc." Interesting -- "The script installs strictly to the ram disk of the box. No permanent changes are made. If you mess something up, power-cycle it."

37 of 227 comments (clear)

  1. does it still function as an AP by Anonymous Coward · · Score: 5, Insightful

    does it still function as an AP properly?

    1. Re:does it still function as an AP by klasikahl · · Score: 5, Informative

      It does, here.

  2. Take that emacs zealots! by Anonymous Coward · · Score: 3, Funny

    This comes with vi and NOT emacs, as 95% of all distributions don't come with emacs!

    1. Re:Take that emacs zealots! by ville · · Score: 5, Funny

      And emacs takes up 95% of those distros that come with it.

      //ville

    2. Re:Take that emacs zealots! by wik · · Score: 4, Funny

      Emacs documentation.

      --
      / \
      \ / ASCII ribbon campaign for peace
      x
      / \
  3. article in case of slashdotting... by Anonymous Coward · · Score: 5, Informative

    yeah i was looking and i hit refresh and his counter jumped about 200 hits in a couple seconds so heres the article in case slashdot kills another site:

    Jim Buzbee
    September 05 2003

    Mini wrt54g distribution Version 0.1

    This is a mini Linux distribution for the Linksys wrt54g. In about 20 seconds, you can install a small set of Linux tools to your access point's ramdisk.

    Upon completion of the installation, you will have a system with basic tools such as syslog, telnetd, httpd (with cgi-bin support), vi, snort, mount, insmod, rmmod, top, grep, etc.

    To install, modify the script wrt54g.sh for your ip address and password. By default the script uses Java to move files to the wrt54g. If you would prefer wget, uncomment the wget lines in the script. I had a problem with older version of wget translating escaped characters before passing the URL on to the server. Your mileage may vary.

    The distribution has been tested on firmware version v1.30.7, Jul. 8, 2003. The installation has been tested on Linux and OSX

    The script installs strictly to the ram disk of the box. No permanent changes are made. If you mess something up, power-cycle it.

    Upon successful execution of the script, you will be able to telnet to your box and start exploring its capabilities. Note that there is no login prompt, you telnet directly in as root. Be careful.

    An alternate web server is installed on port 8000 of the box.

    The nfs drivers are not loaded by default If you would like to mount a nfs disk, insmod the drivers from /var/modules/ in the following order : sunrpc.o, lockd.o, nfs.o then mount your disk.

    To run snort, execute the following command on the box : /var/bin/snort -c /var/etc/snort.conf &

    The snort configuration file should be changed for your network configuration and needs. Snort logs will be written to /var/log/snort

    If you wish to change the files sent to the box, untar distro.tar and add or subtract files. Normally you should not run the install script more than once for a power-cycle of the box. i.e. if you want to run the install again, reset the wrt54g first.

    I have attempted to limit all changes to the ram disk, but there are no guarantees that you will not damage your unit by using these tools.

    Download the distribution
    Visit my wrt54g snort page
    Thanks to Ross Jordan, C. J. Collier, Ben Grech and others who did the heavy lifting in figuring out how to get new code on the box

    Jim Buzbee jbuzbee@nyx.net

    consolevision roxors!

  4. Well this means... by Nik+Picker · · Score: 5, Insightful

    For us that buying a linksys router is even more preferable. For a personal user to any business criteria the advantage over having full source to this hardware is incredible. Certainly its going to ensure that they stay high on our prefered supplier list provising we can access the boxes and code. incidentally we install WiFi in Public spots for the UK which is being kinda slow to take this up.

    --
    And thats why Firecrackers and kittens don't mix.
    1. Re:Well this means... by SuperFlaco · · Score: 4, Informative

      Looks like Linksys is doing the right thing and providing the source now.

  5. telnetd? by Herrieman · · Score: 5, Interesting

    Why not SSHD? Nobody in his right mind uses telnet nowadays.

    --
    http://blog.astyran.sg
    1. Re:telnetd? by suwain_2 · · Score: 4, Informative

      If you read carefully, it logs you in directly as root -- you're never even prompted for a username / password. It's not meant as a publically-accessible box by any means. (Granted, wireless + root access to anyone seems a little scary...)

      ssh/telnet isn't an issue, in this case. It's silly to encrypt something when anyone can get root on it.

      --
      ________________________________________________
      suwain_2 :: quality slashdot p
    2. Re:telnetd? by Dog+and+Pony · · Score: 4, Insightful

      telnet is horribly insecure

      Why yes it is, in the same way as your browser is "horribly insecure" when you login to slashdot.

      It sends the data unencrypted, that is all. Granted, your server is probably more important than your /. account, but that was a really strange way of putting it.

      If you never would use telnet for anything, then you'd never surf without https either. ;-)

    3. Re:telnetd? by DarkOx · · Score: 3, Insightful

      Ok, there is nothing but a ram drive this thing writes to. That means you would have to generate keys everytime the system boots. This things are VERY slow in terms of cpu power so you really don't want to be using strong encryption. Telnet is not EVIL it is what it is. It is a clear text protocol. There is nothing insecure about that. Telnet is as secure as its users. On a local *swiched* lan for instance its pretty safe, but it would be bad over shared media, or GOD for bid anytime you don't control all the hosts that will be relaying packet. I personaly would avoid it for wireless myself as well. To never use telnet is just ignorant though. In the right situation telnet does not jepordize security, and its much better then ssh where system and network resources are concerned.

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
  6. Would this work with other Linksys routers? by cryptochrome · · Score: 5, Interesting

    None of them support Rendezous (AKA zeroconf), at least not on the level of Apple's airport base stations. That's a hack I'd really like to see.

    --

    ---If you can't trust a nerd, who can you trust?

  7. Re:That's cool. by garcia · · Score: 3, Insightful

    not terribly practical? Running snort on a wireless router isn't practical?

    Slow? 125mhz MIPS is slow?

    Might want to better explain what you mean.

  8. Priorities are all wrong by JPelzer · · Score: 5, Funny

    OK, this Linksys has only been out for like a few weeks or something, and they've got a linux distro for it... Yet my Toastmaster 5000xdr Quad-port (with FG-200R bagel attachment) STILL isn't supported!

    I mean, the linksys probably works fine out-of-box... But my Toastmaster STILL can't check with my Mr.Refrigeration Model XII to see if I'm out of butter and order more online. Sheesh, technology SUCKS!

    1. Re:Priorities are all wrong by JPelzer · · Score: 5, Funny

      > OK, this Linksys has only been out for like a few
      > weeks or something, and they've got a linux distro
      > for it... Yet my Toastmaster 5000xdr Quad-port
      > (with FG-200R bagel attachment) STILL isn't
      > supported!

      OK, to reply to those that say I should roll my own distro for my Toastmaster, I have been working on a little something. Currently, there is no support for the bagel attachment, and it has some trouble with the more exotic breads (ie, non-white bread). And it occasionally pops them out at dangerous velocities. And you have to first separate the bread and crust using my 'decrust.sh' script, and reassemble them after toasting using 'recrust.sh'.

      But otherwise, it's coming along nicely. I did have ONE little bug where instead of ordering more bread, it ordered an industrial bread-machine and hired a staff of 12 to run it. They all seemed so disappointed when I told them they were only hired because of a bug. But I'm sure they get that a lot.

      So check it out, gnutoast.org... I think it's the future of toasting, possibly even the future of grilling too.

  9. Crap... by Kedisar · · Score: 5, Funny

    I was going to post "But Does it RUN LINUX!?" but then I RTFA. Grr....

    1. Re:Crap... by Tony.Tang · · Score: 5, Funny

      You RTFA? You must be new here... ;)

  10. Re:What is this for? by Wumpus · · Score: 4, Insightful

    It's quite useful. You can turn it into a VPN server, have it serve DHCP, put your network's access control mechanism on it, and have a one box solution to a whole range of wireless networking problems.

  11. More constrained by memory by GGardner · · Score: 4, Insightful

    125 Mhz MIPS CPU is fast enough to do some interesting things, but the box only has 16 Mb of RAM, and no local disk for paging. That's going to be the limiting factor for most of the fun things you'd like to do with this box.

    1. Re:More constrained by memory by Anonymous Coward · · Score: 4, Funny

      In my day, laddie, we had 64kB of ram and 1 MHz. And we liked it! Three miles in the snow we walked, every day, to the terminal... barefoot!

      More seriously, you can do a hell of a lot with 16MByte of RAM and 125MHz. My old Amiga was happily connected to the internet for years with less than that.

      Stick FORTH on any box and (assuming you know FORTH, of course), you can make most any computer jump through hoops, devoid of the efficiency problems that bloated tarbaby languages like C++ introduce.

    2. Re:More constrained by memory by jd142 · · Score: 4, Funny

      In my day, laddie, we had 64kB of ram and 1 MHz. And we liked it! Three miles in the snow we walked, every day, to the terminal... barefoot!

      Up hill both ways, too!

    3. Re:More constrained by memory by MbM · · Score: 4, Informative

      I tried an nfs mounted swapfile with only minimal success. It'd get further but it would go into some heavy swapping flooding the network, durring which time the access point was very unresponsive; just not practical for actual use.

      --
      - MbM
  12. ssh tunneling? by JanneM · · Score: 5, Interesting

    Could this be used to establish ssh tunneling from clients to the AP? That would, in my eyes, be far preferable to the somewhat lacking link security that 802.11 offers today.

    --
    Trust the Computer. The Computer is your friend.
  13. Re:That's cool. by FreeLinux · · Score: 4, Interesting

    Snort logs will be written to /var/log/snort

    Ramdisk based snort logs aren't too enticing to me.

    Another HTTP server on 8000 doesn't do anything for me either, especially when the one on port 80 is already like molases running up hill in winter.

    The fact is that this might be useful in troubleshootingsomething on the router but, for production use it isn't terribly practical. But, then again who's going to rely on this router for any real production use. This is after all, a home or small office device.

  14. Sigh by curmudgeon · · Score: 4, Informative

    But still no linux driver for the corresponding WPC54G PCMCIA card?

  15. Re:ssh tunneling? bad idea use VPN by Splork · · Score: 3, Informative

    ssh tunnels are very bad performance. what you want is a VPN.

    unfortunately you can't replace the kernel on the box with one that supports cool things because of the proprietary broadcom driver.

    (here's to whoever takes the time to write a thunking layer for the linksys 2.4.5 broadcom driver to let it work with modern 2.4.22+ kernels!)

  16. Yeah, but does it work with the BEFSR41? by caryw · · Score: 3, Interesting

    Has anyone tried this on a Linksys router other than the WRT54G? My BEFSR41 4 port cable/dsl router is still running strong, and I would love to have telnetd and the such on running on it!

    Thanks!

    - Cary

  17. wrt54g.tar.gz Mirrors (posted Anon) by Anonymous Coward · · Score: 3, Informative

    wrt54g.tar.gz (1.07MB) mirrors

    Posted anon, I'm no whore. :)

    www.sk3tch.com/wrt54g.tar.gz
    www2.sk3tch.com/wrt54g.tar.gz
    www3.sk3tch.com/wrt54g.tar.gz

  18. Link to file by BenFranske · · Score: 3, Informative

    The article has already been posted, if the file becomes unavailible due to the /. effect a temporary mirror of the file is availible at: http://lightntrax.com/ben/wrt54g.tar.tar

  19. Re:ssh tunneling? bad idea use VPN by interiot · · Score: 5, Informative

    The "ssh tunnels are very bad performance" statement may be elaborated a bit more on this page titled "Why TCP Over TCP Is A Bad Idea".

  20. worried by trans_err · · Score: 3, Interesting
    Wouldn't this be seen as a horrible exploit for this router? Think about it anyone, who knows the router's IP (shesh thats difficult), can install a distro, with telnet access onto the router, thus being able to run things like sniff all day long....

    We should be fighting this not supporting it.

  21. TCP over TCP is fine when payloads are unpacked by Effugas · · Score: 5, Insightful

    (Full Disclosure: I designed part of OpenSSH's tunnelling subsystem.)

    TCP over TCP has issues when both stacks attempt to respond to the same error conditions. This happens very commonly with PPP over SSH. However, TCP port forwards in OpenSSH actually terminate at the daemon, which extracts the payloads, repacks them into completely independent streams, and sends them on their way.

    In other words, an error condition on the routerexternal_site link doesn't show up on the clientrouter link.

    OpenSSH tunnels have surprisingly high performance (it certainly beats most proxy implementation hands down). Easy to set up, too: Simply SSH into your host of choice with the -D option(say, ssh -D1080 user@host), set the SOCKS4 proxy in your application to 127.0.0.1:1080, and you're done. It's really quite simple.

    --Dan

  22. Words of Caution about the WRT54G by pridkett · · Score: 4, Informative

    I own one of these little guys and I must say it's a neat little box. However, please be aware of the following issues that you might run into with it:

    1) it runs quite hot. make sure it gets plenty of air. we had ours sitting on the carpet with the DSL modem on top and it would frequently over heat. Moving the modem off and setting the wrt54g on a board seemed to fix this.

    2) it requires that you have good wiring. you may be shocked to know this, but if you live in an old house (like many college students) your wiring has a good chance of being miswired. The wrt54g will not work with wiring faults (even though many devices work just fine). the solution is to put a good surge protector or UPS between the device and the outlet. this seems to fix everything.

    3) the dhcp implementation is a little funky and sometimes seems to reply with a DHCP NAK on an address request when it otherwise shouldn't.

    All that aside, it's a great little box. It works well with my 802.11b card in the laptop and manages the wired stuff just fine. I can't comment on 802.11g because there aren't any cards with linux support out there (except maybe the minipci card in the wrt54g, but that's a binary driver).

    I've gotten some interesting stuff to run on it, mainly some simple home automation stuff for a pervasive computing environment that was part of my research, but it's nice having everything together. Although, truthfully you're probably still better off with an EPIA board and a 256 meg stick of ram.

    --
    My Slashdot account is old enough to drink...
  23. Re:Every piece of Linksys Hardware I've ever bough by Pharmboy · · Score: 3, Informative

    I have owned many, many pieces of Linksys gear, and while they may not be the "performance leaders", I have never seen one just die. I can't help but to wonder about the power situation in your home.

    I would suggest getting some better UPS protection for your routers and switches. You would be surprised at how bad typical electrical service is, and routers and switches tend to stay on 24/7, thus pretty vulnerable. I run everything on UPS. Monitor, routers, hubs, everything. I live in the country (terrible for spikes and brownouts) and have all kinds of gear that is old beyond usefullness, but still works. Even an old UPS that doesn't hold a charge is better than none, since most spikes/brownouts only need about 5 to 10 seconds of power before returning to normal.

    This doesn't change the fact that they may be more delicate that you care for, but my guess is you have a power problem.

    --
    Tequila: It's not just for breakfast anymore!
  24. I can't believe nobody has said it... by novarese · · Score: 3, Funny

    There's not a SINGLE "Imagine a beowulf cluster of these" comment yet? What the hell is going on here???

  25. Prices by nolife · · Score: 4, Informative

    Lowest price search results from pricegrabber.com. Lowest I could find on Pricewatch was $103 + shipping.

    Amazon has it for $100 after rebate with free shipping.

    There was a new firmware put out about 6 weeks ago. Here's the details.

    --
    Bad boys rape our young girls but Violet gives willingly.