# # Original File # ------------- # http://www.Linux-Wireless.org/Install-HOWTO/WL/WEP-Key-HOWTO.txt # # # --------------- # WEP Key Options # --------------- # # # For WPA # ------- # http://www.Linux-Wireless.org/WPA # # # 23-May-04 amo Clean up files # 26-May-04 amo Added /proc info # 04-Jun-04 amo Moved to Linux-Wireless.org # 20-Nov-05 amo Added 256bit key info # # # # Question # ======== # can the wep key be used and open at the same time # or is it automatically restricted # # # # Creating WEP Keys ( though WEP is insecure, it's better than nothing ) # ================= # Shamelessly copied from Gentoo Weekly Newsletter Volume 2, Issue 31 # dd if=/dev/urandom count=1 2> /dev/null | md5sum | head -n 2 | tail -n 1 | cut -c-26; # # # # nwepgen # # # Another WEP key Generator # http://www.mattfoster.clara.co.uk/madwifi-7.htm - See 7.3 # # # Using less than 5 ascii characters ( 10 hex char ) results in smaller WEP40 ( 64-bit ) keys # Using less than 13 ascii characters ( 26 hex char ) results in smaller WEP104 ( 128-bit ) keys # Using less than 26 ascii characters ( 58 hex char ) results in smaller WEP1xx ( 256-bit ) keys # # # 40-bit Key Sizes ( aka 64bit WEP Keys aka WEP40 ) # ================ # hex values or ascii char with s: prefix # # iwconfig ath0 key 0123456789 10-hex-char # iwconfig ath0 key s:5Char 5-characters # # # 104-bit Key Sizes ( aka 128bit WEP Keys aka WEP104 ) # ================= # iwconfig ath0 key 0123-4567-89ab-cdef-0123-4567-89 26-hex-char # iwconfig ath0 key s:Any13Characte 13-characters # # "-" in the hex series above is for human readibility only # # # Turn WEP off # ------------ # iwconfig ath0 key off # # # # Which key is being used and status # ================================== # iwlist ath0 key # # # # To Enter the key as an ASCII string # ----------------------------------- # iwconfig ath0 key s:character-string # # # # # http://www.openzaurus.org/oz_website/faq/faq?id=91 # # # # =============================== # # last one will take precendence, it will be your current transmit key # # =============================== # # # iwconfig ath0 key 0123-4567-89 # iwconfig ath0 key s:password [2] # iwconfig ath0 key [2] open # iwconfig ath0 key off # # # http://www.ibiblio.org/john/linux-wep.html # iwconfig eth1 key xxxx-xxxx-xx # -- or -- # echo "0 x:x:x:x:x:x:x:x:x:x" > /proc/driver/aironet/eth1/WepKey # # # Proc Files # ========== # ls -la /proc/sys/net/ipv4/conf/ath0 # ls -la /proc/sys/net/ipv4/neigh/ath0 # # # # cat /proc/sys/net/ipv4/conf/ath0/forwarding # # # # # To Turn OFF WEP keys # =========================== # iwconfig ath0 key off # # # Tell it Which WEP key to USE # ============================ # # # # To change which key is the current active key # # # iwconfig ath0 key [0] # # # # # To change to key 1 # # # iwconfig ath0 key [1] # # # # # use key3 as default, "restricted" means ignore all unencrypted data # # # iwconfig ath0 key [3] restricted # # # Tell it What to do with unencrypted packets # =========================================== # iwconfig ath0 key restricted - restricted ==> ignore all unencrypted data # or # iwconfig ath0 key open - open ==> accept non-encrypted data # # # Tell it to use WEP encryption # ============================= # iwconfig $INTERFACE essid $ESSID mode $MODE rate $RATE key f4f272a9ab026a46d255e125d1 enc on # # # Tell it to NOT use encryption # ============================= # iwconfig $INTERFACE essid $ESSID mode $MODE rate $RATE enc off # # # See If Your Keys are Installed Properly # ======================================== # iwlist key # # ... # ath0 3 key sizes : 40, 104, 128bits # 4 keys available : # [1]: 0123-4567-89 (40 bits) # [2]: 0123-4567-89AB-CDEF-0123-4567-89 (104 bits) # [3]: off # [4]: off # # Current Transmit Key: [2] # # # # says you are using WEP key#2 # # == # # == both AP and clients must be using the same wep key # # == # # Security mode:open # # says you are using open mode instead of restricted mode # # # Key Management URLs # =================== # http://www.Linux-Wireless.org/Install-HOWTO/WL/WEP-Key-HOWTO.txt # http://www.Linux-Wireless.org/Install-HOWTO/WL/Commands.iwconfig.txt # # http://sentinel.dk/cookbook/?Linux_wireless_access_point # http://www.trekweb.com/~jasonb/articles/hostap_20030727.shtml # http://www.iss.net/wireless/WLAN_FAQ.php # http://www.personaltelco.net/index.cgi/AssociationWithNetworks # http://archives.mandrakelinux.com/discuss/2002-11/msg00107.php # http://www.ibiblio.org/john/linux-wep.html # http://www-106.ibm.com/developerworks/linux/library/l-wap.html # http://www-scf.usc.edu/~sergior/tutorials/linux-wireless.html # http://www.openzaurus.org/oz_website/faq/faq?id=91 # http://www.linuxquestions.org/questions/showthread.php?s=&threadid=163192 # http://www.trekweb.com/~jasonb/articles/hostap_20030727.shtml # http://www.holtmann.org/linux/wlan # http://www.trekweb.com/~jasonb/articles/hostap_20021012.shtml # # # End of file