Slashdot Mirror


WEP Keys in Mac OS X?

antmo asks: "Mac OS X doesn't allow you to specify which WEP key index (1-4) one wishes to use, via the Network preferences. This causes me much pain, since my employer's wireless network uses a key index other than 1. I know the AirPort card allows for this, as I am able to set all four keys in Open BSD and Debian Linux. I don't know whether this is a limitation of Mac OS X's AirPort driver or simply the preferences. I've looked all over the net, posted to many discussion forums (since March of this year), done quite a bit of tinkering with the config files and still don't have a clue how to, if possible, set which key index to send. I have not heard a thing from Apple about this, which leads me to believe they're not going to add this ability. Does anyone know whether a fix from Apple is forthcoming? Anyone know a hack to get this working?"

5 of 37 comments (clear)

  1. in my experience... by linuxpng · · Score: 4, Informative

    I've set which WEP key to use in my linksys WAP. I forced it on key 1. I then took the hex key it gave me and put that in for the password in the wireless network. For some reason I can't use the passphrase and let it adjust. Hope this helps, it works for me at least.

  2. Clearly a disconnect, let me rephrase... by antmo · · Score: 5, Informative

    An 802.11b network, using WEP, allows for 4 separate WEP keys to be defined. You can then choose, within the WAP, which one you want your network clients to use/send. Think of it as part if the key. MacOSX's network configuration for the airport card, will only allow you send whatever WEP key you entered, as key index 1. If your WAP is setup to expect key index 2, 3 or 4, regardless of what the password is (could be the same for all 4 keys), it will not accept your WEP key. You must send the index which the WAP is configured to expect, along with the key.

  3. What to do by GoRK · · Score: 5, Informative

    There are 4 keys because they can be *rotated* ... only one is active at any time. If the index is set at #3 on your AP and key number three is 1234ABCDEF, then a computer set to use the key 1234ABCDEF will work. Forget the key index. It has little to do with anything unless you actually rotate your keys.

    1. Re:What to do by Piquan · · Score: 5, Informative

      Sure it does. You say that "only one is active at any time", but that's not the whole story, at least not network-wide.

      For example, client A may be sending key 1, client B sends key 2, and the AP sends using key 3. (This is exactly what happens at my home: the AP uses key 1, one computer uses a different static key, and the rest randomly rotate each time they attach.)

      The clients need all the keys, so that they can read all the data they're getting. The question of which one is "active" refers to one transmitter, not the whole network.

      So, now comes the question: if you have to decrypt using any key, how do you know which one to use? It seems that 802.11 sends an index of "which key am I sending with", so that the recipient can read it. That's why the key index matters.

  4. open source driver by hayne · · Score: 5, Informative
    I haven't tried this myself, but the open source driver available at http://wirelessdriver.sourceforge.net/index.html does seem to allow you to configure which "keyslot" your WEP key goes in. And the FAQ says that this driver "is compatible with and can co-exist with Apples Airport driver". So that might be a solution to your problem.

    By the way, this is a real issue, contrary to what a lot of the posters on this thread seem to think - the best explanation of the "key index" I have found is in the PDF file at http://www.practicallynetworked.com/downloads/Othe r/tb-027.pdf