Wednesday, February 20, 2008

hostapd configuration setting examples

1. WPA/IEEE802.11i configuration
wpa=1=WPA, 2=802.11I, 3=Both
2. WPA preshared key configuation
wpa_passphrase=my_secrete_key #(ascii 8...63 characters)
or
wpa_psk=12324faa3322.....323(64 hex digits)
or wpa_psk_file=/etc/hostapd/wpa_psk #this is a more granular method with list of (mac, psk) pairs in
wpa_psk file.
e.g wpa_psk file
00:00:00:00:00:00 abcdefghji # all mac address use passphrase abcdefghji
3. WPA preshared key configuation
wpa_pairwise=TKIP CCMP #if only CCMP is specified, group cipher will be CCMP only. Otherwise, it will be TKIP

Sample WPA configuration files(CCMP,passphrase:

interface=ath0
bridge=br0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=0
logger_stdout_level=0
debug=0
dump_file=/tmp/hostapd.dump.0.0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=wende
# Open System auth should be used with 802.1X
auth_algs=1
eapol_key_index_workaround=0
wpa=1
#wpa_passphrase=mypassphrase
wpa_psk_file=/etc/hostapd/wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_group_rekey=600


No comments: