LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-03-2004, 11:38 AM   #1
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Rep: Reputation: 15
WiFi Security


Does anyone know how the WiFi keys are set? I am using SBC and their little install/configure utility places all kinds of information in all four WEP keys, however I cannot figure out where to set these values or even more importantly, how to set any of the keys to some values that I would like. Thanks!

-Anthony
 
Old 10-03-2004, 12:57 PM   #2
ridertech
Member
 
Registered: Dec 2003
Location: Seattle, Washington
Distribution: Debian 'Sarge'
Posts: 85

Rep: Reputation: 15
Have you tried iwconfig? Here are some commands that I've had success with...

ifconfig eth0 up
iwconfig eth0 essid wifoo
iwconfig eth0 enc 1234567890
iwconfig eth0 mode managed
dhclient eth0

ifconfig eth0 192.168.0.77 up
route add default gw 192.168.0.1
ping 192.168.0.1
 
Old 10-04-2004, 05:18 AM   #3
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks for the input, but that doesn't answer my question about how to go about setting the keys. I already have the card working in un-encrypted mode.

-Anthony
 
Old 10-11-2004, 08:21 AM   #4
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
I have had several people e-mail me directly looking to me to see if I have found an answer yet, and sadly I have to report that I have not.

Does anyone know how to go about setting these keys? Thanks!

-Anthony
 
Old 10-11-2004, 12:48 PM   #5
magicsmoke
LQ Newbie
 
Registered: Oct 2004
Location: Reno, NV
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Which driver are you using? Often `iwconfig key <your key>` works marvellously. See The Man for more details.
 
Old 10-11-2004, 04:11 PM   #6
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
I of course checked the man pages before posting a query here. I have already figured out HOW to set the keys. What I am seeking as I am sure others are as well, WHAT do I set those keys to in order to memic the SBC settings. The "BASE" configuration is to input the serial number located at the bottom of the wireless router into the SBC software and then it generates 4 key codes. However these codes are never revealed to the user.

I know I can set my own key codes and get it to work, however if I forget them, its like pulling teeth to get it reset by going through the phone company to do so. And since they would be different than the windows configuration you can pretty much kiss support goodbye if you mention linux. The upshot here is that if we can get it configured easily enough, then we would be able to get SBC to start supporting Linux.
 
Old 10-12-2004, 12:30 AM   #7
magicsmoke
LQ Newbie
 
Registered: Oct 2004
Location: Reno, NV
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Let me just clarify something, because despite your attempts to do so...well, I'm not following. Through normal configuration of this 'SBC' Wireless Router, you input some code written on the bottom of it (probably determined by the mfr.) and it spits out the WEP keys that you need and configures it correctly. (I hope I'm right so far) So...you are wanting to be able to figure _how_ the keys are being generated and/or figure out _what_ the keys are, so that you can input them into your linux rig and get some modicum of security out of this setup. (continuing to hope)

Now, assuming that I at least know _what_ you're trying to accomplish (and perhaps others may benefit from some clarity), I can try to decide on a solution. I would think in completely infeasible to try to determine how the mfr. derives the keys you need. This would take more effort than this really is worth. However, ascertaining the nature of the keys themselves should be rather straightforward. As for myself, I think I would use AirSnort, Kismet or some other tool, and generate enough traffic for them to determine the key for me. Thus avoiding support personnel involvement and too many hours of head-banging.

If I have nailed your problem (at least the definition), do say so. Otherwise...well...
 
Old 10-14-2004, 07:54 PM   #8
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
Yes, you pretty much hit the nail on the head. I understand that the security is mediocre at best, not knowing how - for the moment, with how SBC generates their WEP codes based upon the manufactured serial number. However it is to serve two purposes. The first is to understand a little bit more about entering the WEP codes (HEX and all). The second is to understand more about how SBC can generate unlocking codes for your particular unit in case you forget your password.

Thanks!
 
Old 10-15-2004, 01:49 AM   #9
magicsmoke
LQ Newbie
 
Registered: Oct 2004
Location: Reno, NV
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
If this piece of equipment is from SBC, the Ma Bell Subsidiary, I would think that it would have some commercial derivation of it on the market. Is there anything else that you can tell me about the hardware?

Also, I assume that configuration is possible through a web interface (e.g. http://192.168.0.1 or similar). Have you looked at what is available there? Let me let you in on my train of thought...

If this router/gateway/AP/whatever has some non-proprietary counterpart (same hardware, but not branded as SBC), there may be more information about the sucker on the Wibble. If the rig has a web-based interface, it _may_ allow you to choose a WEP key, or possibly *crosses fingers* even allow you to select a different encryption mechanism (WPA, RSN, 802.11X, etc.). If _so_, then we've solved the problem, because then you can just play with iwconfig until the two units are talking. Else, I'm serious about use a sniffer to try to reverse-engineer the problem...
 
Old 10-15-2004, 09:57 AM   #10
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
Well actually SBC doesn't even try to hide their equipment in this case. Its a 2Wire! And yes you can access it through a browser on the 192.168. network. Yes, you can set the keys.

Ok...ok..so I guess we are going to have to play with iwconfig and get the keys to match. Even so, the WEP keys appear to be in different formats on the router config utility as they appear to be needed in iwconfig.

Last edited by anthony1101; 10-15-2004 at 02:17 PM.
 
Old 10-16-2004, 03:47 AM   #11
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
I have a netgear access point and you just connect to the the right 192.168.0.* address and it gives you a wep security option, which you access with a web browser.

You enter a 'pass phrase' or something like that and it creates a 26 character long code like 2JIFGTO87FTYDEH54JDUUY3BCA.

or it creates 4

You can just use 1.

Then just set your wireless device with iwconfig as described in the second posting:

iwconfig wlan0 enc 2JIFGTO87FTYDEH54JDUUY3BCA

Make sure both devices are using are using the same secure mode, ie restricted/shared key or open/ open key.

maybe with:

iwconfig wlan0 enc restricted 2JIFGTO87FTYDEH54JDUUY3BCA
 
Old 10-16-2004, 08:40 AM   #12
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
I've been running wifi for a while now and have NEVER had to use the iwconfig program to make settings. Make and entry in /etc/pcmcia/wireless.opts and it will work automatically when the card is plugged in. You people are working way too hard at this.
 
Old 10-19-2004, 03:01 AM   #13
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
That all sounds good, but what options do you put in the file /etc/pcmcia/wireless.opts
 
Old 10-19-2004, 06:17 AM   #14
datadriven
Member
 
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
Your file should have comments that explain how it works, I stripped them out of mine once it was working properly.

Code:
case "$ADDRESS" in

essidany,*,*,*)
    ESSID="any"
    ;;

# home setup
*,*,*,*)
    ESSID="fubar"
    MODE="Managed"
    RATE="auto"
    KEY="EA5F-54A7-83"
    ;;

# home setup
*,*,*,*)
    ESSID="fubar"
    MODE="Managed"
    RATE="auto"
    KEY="239B-5C0F-C3"
    ;;

# home setup
*,*,*,*)
    ESSID="fubar"
    MODE="Managed"
    RATE="auto"
    KEY="2D89-1B29-A0"
    ;;

# home setup
*,*,*,*)
    ESSID="fubar"
    MODE="Managed"
    RATE="auto"
    KEY="827A-6908-18"
    ;;
esac

Last edited by datadriven; 10-19-2004 at 06:21 AM.
 
Old 10-20-2004, 02:45 PM   #15
anthony1101
Member
 
Registered: Aug 2004
Location: Texas
Distribution: FC3
Posts: 59

Original Poster
Rep: Reputation: 15
Cool...Thanks! I'll give it a try and let everyone know my results.

-Anthony
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed in security ,vonarabilities ,loopholes in linux security haseebnazar Linux - Security 2 11-23-2005 07:16 PM
[Security Questions] Last Login, how good is this feature for security breach info? t3gah Linux - Security 2 06-14-2005 01:02 AM
Somw security on wifi network spid Linux - Wireless Networking 1 10-21-2004 03:39 AM
Ralink WIFI with Asus@Home WIFI wavemachine Linux - Hardware 0 10-20-2004 03:10 PM
todays requirements regarding security (not limited to linux security) markus1982 Linux - Security 8 04-25-2004 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration