- bits & pieces about software development HostingAbc Logo
Pages:0
showing posts marked with wl500g.show all posts

http://www.wl500g.info/showthread.php?t=15575

Since the existing automounter supports only hard disks to be mounted - i needed a solution for automatically mounting cd filesystems. So the solution is to cross compile automount and to include autofs4 & /proc support into the kernel. If you want to try it follow these steps: 0. download these files: http://www.moszi.net/dev/automount/automount.tar.gz 1. insmod autofs4.o 2. ln -s /proc/mounts /etc/mtab (this will only work if you recompiled your kernel with /proc support) 3. copy the necessary files to their places 4. edit your /opt/etc/auto.misc file 5. start /opt/etc/init/S97autofs Enjoy

created on: 8/24/2008 10:57 AM
tags:
router(6)
wl500g(6)
hits: 1109
comments: (0)
When I bought this router I really did not realize that it will open a whole new world to me ...
For a long time I wanted a NAS (Network Attached Storage) device so I can keep my files in a centralized way, but the price of these devices always was so high that it kept me away from buying one ...

So when I've found out that this router has 2 USB ports and that a custom firmware can be installed on it to support additional services I decided immediately that I'll buy one of these small wonders :) ...
On the very first day I've installed Oleg's custom firmware and started digging into the firmware. It comes with a balanced set of features, it has telnet, ssh, ftp, samba, and other goodies that you might need. So it was perfect.

However over the years the loss of several hard disks - which obviously resulted in quite a few times loosing my precious data - convinced me that I simply need a RAID set to protect my data.
As the custom firmware does not support RAID sets I downloaded Oleg's sources for the firmware and rebuilt it adding a few other things that i found necessary ;)
This way i have:

* RAID1 support in the router (and have 2 hard disks linked in one array)
* CD/DVD support
* automount support
* wtmp support (to have historical track of logins)

Other stuff on the router:
* there is a cool script which periodically checks for brute force attacks and denies the source IP of accessing the router anymore.
* there is a torrent client with web based UI
* lighttp with php support can be installed on it, and can be used to stream all your music (using with Winamp + Bento skin's browser works like a charm!)
* there is mini-sendmail to send notifications to yourself anywhere you are ..

Hardware 'upgrades':
I've opened the box and installed a card reading into it and plugged a 4GByte microdrive so I will have a persistent 'hard disk' in the router - and in the next couple of days I will install 128MB of memory (instead of having only 32M ...). { I will keep you posted about this ;) }

Bottomline: if you need a stable and really good router, by this one.
created on: 8/20/2008 8:26 PM
tags:
router(6)
wl500g(6)
hits: 1300
comments: (0)
http://wl500g.info/showthread.php?t=15550

Hi Everybody, I'm using Oleg's 1.9.2.7-10 firmware for 3 months now (on a WL500gp) - thanks Oleg - and it is really great, it works just perfectly ! Since I do not have a desktop PC at my home - I only use a notebook - I really wanted to create a redundant way for storage and because I'm using Xbox for media playing I wanted an external DVD reader to be attached to my router so I can access all my DVD's through samba from my xbox. To achieve this I recompiled Oleg's firmware to include SCSI emulation for IDE/ATAPI CDROM & to include RAID support in the kernel. If you don't want to recompile the kernel yourself these are the steps to achieve both functionalities: CD-ROM: 1. insmod cdrom.o 2. insmod isofs.o 3. insmod sr_mod.o (it might be that the order is not this one, I'm writing this from my head) at this time your cd device will appear under /dev/scsi/... RAID1: 1. insmod md.o 2. insmod raid1.o after this you can create your RAID1 soft array using mdadm. LVM is not needed. Note1: Because the 2.4 kernel contains a bug in md.c you need to replace this file with the correct one (this is described here: http://wl500g.info/showthread.php?p=100925 and it works perfectly when you recompile the kernel) If you need help with this, just contact me. PS. (offtopic) I've a USB hub with 6 USB ports attached to one of the USB ports on the router. This has 2 hard disks linked in a RAID1 array + the DVD reader. This works as intended - no special drivers were needed to support this. The second USB port on the router has attached a 6 in 1 card reader with a 4GByte CF Microdrive. This works as a charm as well

created on: 8/8/2008 7:47 PM
tags:
router(6)
wl500g(6)
hits: 1196
comments: (1)
http://wl500g.info/showthread.php?t=15552

These days I've spent some time figuring out the structure of the firmware sources - here are my finding on how to recompile it: 1. Since I use Vista, I downloaded an Ubuntu image for vmware player - i did all the firmware compilation in this virtual machine 2. downloaded the asus firmware, oleg's firmware additions and the uclibc toolchain. these are the items you need to recompile the firmware. 3. I've made a nice script that uncompresses all these packages, applies Oleg's patches on the firmware, and applies some additional minor changes to the source tree. You can download this package from this location: http://www.moszi.net/dev/download/wl500g-source.tar.gz The script you should run is : createBaseFirmwareSources from the binaries folder. (cd to this folder, otherwise it will not run correctly) Also please note, that my own patches are located in the patches folder. Currently only 3 minor changes: 1. correcting the raid1 CRC bug (md.c) 2. wide character support in uClibc 3. Makefile for oleg's patches in order to allow wtmp usage in dropbear (i didn't succeed with this one yet) Have fun, if you need help, contact me.

created on: 8/8/2008 7:46 PM
tags:
wl500g(6)
router(6)
hits: 1238
comments: (0)
If you have an open 22 port (SSH) on your machine, and you are interested in blocking all the IP addresses that try to bruteforce your password then this script is for you ;) .
As I really don't like using custom ports for any service if there is an other solution, I had to come up with this solution instead. In addition to this script there is also private/public key authentication turned on for dropbear (the ssh server for wl500gp) - however it's annoying seeing lots of invalid connections in auth.log :) .

How to use it:
The script could be started from crontab, and as it runs for at most 5-10 seconds for small authentication log files, i start this script every 15 minutes ;) .
You should change the path for all the files used in this script to match your system - then everything should work as expected.

you have questions - shoot me ;)
Download files: bruteForce.zip

The files included in the zip contain the ip addresses that tried to brute force my system. Keep the list if you want ;)
created on: 6/10/2008 9:05 AM
tags:
linux(4)
router(6)
wl500g(6)
hits: 1192
comments: (0)
Recently I've bought an Asus WL500GP router. Just very quickly the list of it's features:

[*] there are custom linux based firmares available for it
[*] has 2 usb ports (supports USB hub, external hard drives, web cameras, card readers, usb sound cards)
[*] high quality design ;)


(i've opened my router and added a small 4GByte microdrive so it has a permanent harddisk attached. WARNING: this voids its warranty !!!)


It has a really wide package support, and can be used as a real NAS with multiple harddisks.

Anyways - stay tuned: I'm going to publish a few tutorials on how to do stuff with the router ;)
created on: 6/5/2008 12:05 PM
tags:
linux(4)
router(6)
wl500g(6)
hits: 2037
comments: (4)
Pages:0
add linkThe last comments:custom usb flash drives says:wow, the radio very nice, Afonso says:I'm trying to make a raid1 on the asus 500gp and I've saw your thread. But I cannot find the md.o and the raid1.o on modules.tar.gz file you attached. I also have a linux noobie question here should I put the files to make the insmod command see themmike says:Good videosmoszidev says:Venemo: it is at System.Web.Configuration.HttpConfigurationSystem.UseHttpConfigurationSystem moszidev says:dumb, ... no wonder your name is dumb :) ... i more or less expected these type of answers :) - trust me, i know the double locking design pattern :) ... but it seems that you don't really know for what the locking is needed ;) ...dumb says:this is called double locking: http://en.wikipedia.org/wiki/Double_checked_locking_patternVenemo says:Where did you find this in the framework?
Copyright (C) 2007, Molnar Szilveszter m@il me