2
I am trying to understand the configuration options for wpa_supplicant. WEP is almost irrelevant, but it does occasionally exist in the wild, so I looked up an example configuration (from here):
network={
ssid="MYWEAKLYENCRYPTEDWLAN"
key_mgmt=NONE
wep_key0="12345"
wep_tx_keyidx=0
}
This is simple enough. But I've found other examples with multiple keys, such as:
network={
ssid="static-wep-test"
key_mgmt=NONE
wep_key0="abcde"
wep_key1=0102030405
wep_key2="1234567890123"
wep_tx_keyidx=0
priority=5
}
In fact, that is from the example in the wpa_supplicant repository. It seems you are allowed to have up to four keys (wep_key0
-wep_key3
) and wep_tx_keyidx
specifies which is the default.
The question is, what is the purpose of providing more than one key? Are there situations where that is necessary?
Could multiple keys be useful for a non-WDS configuration? E.g. there are four clients and each uses a different key, then if the router is spoofed as in your example, the other three clients won't connect to the rogue router? – Dominick Pastore – 2019-05-07T14:10:39.113
maybe if a router can provide virtual AP's because you can just select one key for each AP – alecxs – 2019-05-07T14:32:51.257