80211无线加密认证
参考:加密配置:https://www.cnblogs.com/diligenceday/p/7930447.html
参考:加密和认证介绍: https://wenku.baidu.com/view/4fafa192f08583d049649b6648d7c1c709a10b4a.html
vim /etc/config/wireless
修改配置文件:
运行下面代码
config wifi-device radio0 option type mac80211 option channel 11 option hwmode 11ng option macaddr 14:cf:92:9d:81:6a option htmode HT20 list ht_capab SHORT-GI-20 list ht_capab SHORT-GI-40 list ht_capab RX-STBC1 list ht_capab DSSS_CCK-40 # REMOVE THIS LINE TO ENABLE WIFI: # option disabled 1 config wifi-iface option device radio0 option network lan option mode ap option ssid "FreeWifi" option encryption none config wifi-device radio1 option type mac80211 option channel 11 //无线网络的信道 option hwmode 11ng option macaddr 84:16:f9:1a:17:d4 option htmode HT20 list ht_capab SHORT-GI-20 list ht_capab SHORT-GI-40 list ht_capab RX-STBC1 list ht_capab DSSS_CCK-40 # REMOVE THIS LINE TO ENABLE WIFI: # option disabled 1 config wifi-iface option device radio1 option network wwan //网卡端口 option mode sta option ssid 502 //无线网络名字 option encryption mixed-psk+ccmp // 加密方式 option key 123456789 //加密密码
encrytion是指加密方式, 加密方式有可以参考下表 encryption:
Value | WPA Version | Ciphers |
---|---|---|
psk2+tkip+ccmp psk2+tkip+aes |
WPA2 Personal (PSK) | TKIP, CCMP |
psk2+tkip |
WPA2 Personal (PSK) | TKIP |
psk2+ccmp psk2+aes psk2 |
WPA2 Personal (PSK) | CCMP |
psk+tkip+ccmp psk+tkip+aes |
WPA Personal (PSK) | TKIP, CCMP |
psk+tkip |
WPA Personal (PSK) | TKIP |
psk+ccmp psk+aes psk |
WPA Personal (PSK) | CCMP |
psk-mixed+tkip+ccmp psk-mixed+tkip+aes |
WPA/WPA2 Personal (PSK) mixed mode | TKIP, CCMP |
psk-mixed+tkip |
WPA/WPA2 Personal (PSK) mixed mode | TKIP |
psk-mixed+ccmp psk-mixed+aes psk-mixed |
WPA/WPA2 Personal (PSK) mixed mode | CCMP |
wpa2+tkip+ccmp wpa2+tkip+aes |
WPA2 Enterprise | TKIP, CCMP |
wpa2+ccmp wpa2+aes wpa2 |
WPA2 Enterprise | CCMP |
wpa2+tkip |
WPA2 Enterprise | TKIP |
wpa+tkip+ccmp wpa+tkip+aes |
WPA Enterprise | TKIP, CCMP |
wpa+ccmp wpa+aes |
WPA Enterprise | CCMP |
wpa+tkip wpa |
WPA Enterprise | TKIP |
wpa-mixed+tkip+ccmp wpa-mixed+tkip+aes |
WPA/WPA2 Enterprise mixed mode | TKIP, CCMP |
wpa-mixed+tkip |
WPA/WPA2 Enterprise mixed mode | TKIP |
wpa-mixed+ccmp wpa-mixed+aes wpa-mixed |
WPA/WPA2 Enterprise mixed mode | CCMP |
5:执行命令: