我已经设置了一个 USB wifi 加密狗(Ralink 148f:7601),现在我想将它连接到我的路由器。
我正在使用以下命令:
$ wpa_passphrase "SSID" "password"
然后将psk
我得到的内容复制到我的配置文件中:
ap_scan=1
network={
ssid="SSID"
scan_ssid=1
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=xxxxxxxx84f5ca1f640b21323682d51b7e880318e2da8813a6d4e9c8xxxxxxxx
priority=5
}
进而wpa_supplicant
$ sudo wpa_supplicant -Dwext -ira0 -c ~/wpaconfig2 -d
我收到以下日志/错误http://paste.ubuntu.com/6955478/
有人能告诉我我做错了什么吗?
编辑2
我更改了路由器上的设置以接受两者WPA-PSK
,WPA2-PSK
现在我有以下内容;
现在我有以下日志http://paste.ubuntu.com/6956230/进入 ASSOCIATED 阶段
ra0: Event ASSOCINFO (4) received [25/1968]
ra0: Association info event
req_ies - hexdump(len=46): 00 0a 4e 4f 5f 54 4f 5f 41 43 54 41 01 08 82 84 8b 96 0c 12 18 24 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: set own WPA/RSN IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
FT: Stored MDIE and FTIE from (Re)Association Response - hexdump(len=0):
ra0: Event ASSOC (0) received
ra0: State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
ra0: Associated to a new BSS: BSSID=00:27:19:d0:xx:xx
ra0: No keys have been configured - skip key clearing
ra0: Associated with 00:27:19:d0:xx:xx
ra0: WPA: Association event - clear replay counter
ra0: WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
ra0: Setting authentication timeout: 10 sec 0 usec
ra0: Cancelling scan request
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'ra0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
ra0: Event DISASSOC (1) received
ra0: Disassociation notification
ra0: WPA: Auto connect enabled: try to reconnect (wps=0)
ra0: Setting scan request: 0 sec 100000 usec
Added BSSID 00:27:19:d0:xx:xx into blacklist
ra0: Not rescheduling scan to ensure that specific SSID scans occur
ra0: CTRL-EVENT-DISCONNECTED bssid=00:27:19:d0:xx:xx reason=0
ra0: Disconnect event - remove keys
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=5 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ra0: State: ASSOCIATED -> DISCONNECTED
编辑
wireshark 纯文本中的关联转储http://paste.ubuntu.com/6956275/
答案1
“EAPOL:请求方端口状态:未经授权”可能意味着您的 Wifi 路由器不允许您向 Wifi 路由器发送任何数据包。我在 EAP/TTLS Wifi 设置中看到了类似的东西。在那里,由于双方的密钥知识不同(成对主密钥),路由器丢弃了所有数据包。如果您可以使用 Wireshark 进行一些跟踪以检查 EAPOL 协议消息,那将很有帮助。可能是 Wifi 路由器和您的 wifi 加密狗之间的密钥交换失败了。