I decided to try out kismet today. I had a D-Link USB wireless adapter handy (a DWL-G122 version B1), but no driver. Some quick Googling turned up the RaLink Linux support web site, but I had trouble compiling the drivers there (I tried both the RT2501USB(RT2571W/RT2671) and the RT2500USB(RT2571/RT2572) (source Code)). So instead I tried the latest beta rt2570 driver from the rt2x00.serialmonkey.com web site:
- Untar after downloading.
- Go to the Module directory.
- “make install” (gotta be root).
- “modprobe rt2570”
- “iwconfig” should then show it as rausb0.
From there, the README file included in the tarball has instructions for having the hardware activated on boot.
Of course, you need to have iwconfig (urpmi network-tools to get it on Mandriva)…
I then installed kismet via urpmi, and after a little trolling through man pages, and finding the config file (hint – “updatedb” followed by “locate kismet”), I edited the /etc/kismet.conf file and changed the following lines:
- # User to setid to (should be your normal user)
suiduser=<put in a non-root username here>
- # source=sourcetype,interface,name[,initialchannel]
- #source=prism54g,eth0,eth0 (for my Planex Intersil card)
#source=rt2570,rausb0,DWL-G122-B1 (my first guess – shoulda read the README below first)
source=rt2500,rausb0,rausb0 (correct setting)
I found the right sources in the README doc (/usr/share/doc/kismet-3.1.060413/README) – READ THIS FILE FIRST!
Running kismet without the suid user set failed (it needs to be started as root, but then will drop down to the specified user’s privileges for security reasons). Trying with the correct suid user and the source set to the prism54 worked, but of course, my wireless connection was now gone. I changed to use the DLink interface, and kismet came up, discovered my wireless network (which stilled worked), and even revealed that my neighbors do not appear to have wireless.
Of course, our walls are pretty thick, too….
Next, I’ll get a notebook and try a little war-strolling in my neighborhood. Everyone needs a hobby, right?
PS – Seriously, read the kismet README first – it has the correct sources and list the serialmonkey site as the place to get the driver.
PPS – lsusb output for the D-Link:
- Bus 005 Device 003: ID 2001:3c00 D-Link Corp. [hex] DWL-G122 802.11g rev. B1 [ralink]