./hostapd /etc/hostapd.conf
With debug message
./hostapd -dd /etc/hostapd.conf
/etc/hostapd.conf的範例如下
interface=ath0
bridge=br0
driver=madwifi
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
debug=0
ssid=imhotep
macaddr_acl=0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
wpa=1
#wpa_psk_file=/etc/hostapd.wpa_psk
wpa_passphrase=abcdefgh
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
wpa_group_rekey=600
wpa_gmk_rekey=86400
1.WPA
# This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0)
# and/or WPA2 (full IEEE 802.11i/RSN):
# bit0 = WPA
# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
wpa = 1 /*WPA*/
wpa = 2 /*WPA2*/
wpa = 3 /*WPA, WPA2*/
2.Key management
# Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both).
wpa_key_mgmt=WPA-PSK
wpa_key_mgmt=WPA-EAP
wpa_key_mgmt=WPA-PSK WPA-EAP
3.Encryption algorithms
# Set of accepted cipher suites (encryption algorithms) for pairwise keys
# (unicast packets). This is a space separated list of algorithms:
# CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
# TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
wpa_pairwise=TKIP
wpa_pairwise=CCMP
wpa_pairwise=TKIP CCMP
Attention !!!
Remember to insmod wlan_ccmp driver while using CCMP
4.WPA Key
# WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit
# secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase
# (8..63 characters) that will be converted to PSK. This conversion uses SSID
# so the PSK changes when ASCII passphrase is used and the SSID is changed.
# wpa_psk (dot11RSNAConfigPSKValue)
# wpa_passphrase (dot11RSNAConfigPSKPassPhrase)
wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
wpa_passphrase=abcdefgh
沒有留言:
張貼留言