stefaniobrunhara
(usa CentOS)
Enviado em 25/02/2013 - 17:56h
Ola!
Fiz a configuração do hostapd, mas estou com problema!
Ele fica obtendo endereço ip, e não sai disto! Estou
com o dhcp configurado nesta maquina, para a ranger
da eth0 192.168.1.X
Usei este link como ponto de partida.
http://www.vivaolinux.com.br/artigo/Transformando-o-Linux-em-um-Access-Point-com-hostapd
interface=wlan0
bridge=br0
driver=nl80211
ssid=soma
hw_mode=g
channel=10
#wpa=3
#wpa_psk=012db8586dd1e2386cbc9c5c7ed04d98c00801e3a5fc9398dc7048ec5381f40a
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
#rsn_pairwise=CCMP
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ctrl_interface_group=0
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
eapol_key_index_workaround=1
eap_server=0
auth_algs=3
ignore_broadcast_ssid=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny
wme_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
cometei as linhas wap* para tentar sem criptografica mesmo assim não conectou!
tail -f /var/log/messages|grep hostapd
Feb 25 14:04:08 ns1 hostapd: wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: authenticated
Feb 25 14:04:08 ns1 hostapd: wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: associated (aid 1)
Feb 25 14:04:08 ns1 hostapd: wlan0: STA 00:aa:70:b6:75:05 RADIUS: starting accounting session 512B98AC-00000005
Feb 25 14:04:38 ns1 hostapd: wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: disassociated
Feb 25 14:04:39 ns1 hostapd: wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: deauthenticated due to inactivity
hostapd /etc/hostapd/hostapd.conf -ddK
[root@ns1 stf]# hostapd /etc/hostapd/hostapd.conf -ddK
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Opening raw packet socket for ifindex 0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x4
RATE[3] rate=110 flags=0x4
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11b Channel: 10 Frequency: 2457 MHz
Using interface wlan0 with hwaddr 00:1d:0f:cb:c8:f4 and ssid 'soma'
wlan0: Setup of interface done.
...
....
STA 00:aa:70:b6:75:05 sent probe request for our SSID
Unknown Microsoft information element ignored (type=8 len=7)
STA 00:aa:70:b6:75:05 sent probe request for our SSID
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT
mgmt::auth
authentication: STA=00:aa:70:b6:75:05 auth_alg=0 auth_transaction=1 status_code=0 wep=0
New STA
wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: authentication OK (open system)
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-AUTHENTICATE.indication(00:aa:70:b6:75:05, OPEN_SYSTEM)
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-DELETEKEYS.request(00:aa:70:b6:75:05)
authentication reply: STA=00:aa:70:b6:75:05 auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: authenticated
MGMT
mgmt::assoc_req
association request: STA=00:aa:70:b6:75:05 capab_info=0x421 listen_interval=65535
WME IE - hexdump(len=7): 00 50 f2 02 00 01 00
Validating WME IE: OUI 00:50:f2 OUI type 2 OUI sub-type 0 version 1
new AID 1
wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: association OK (aid 1)
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: associated (aid 1)
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-ASSOCIATE.indication(00:aa:70:b6:75:05)
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-DELETEKEYS.request(00:aa:70:b6:75:05)
wlan0: STA 00:aa:70:b6:75:05 RADIUS: starting accounting session 512BB0B7-00000000
Unknown Microsoft information element ignored (type=8 len=7)
....
....
STA 00:aa:70:b6:75:05 sent probe request for broadcast SSID
MGMT (TX callback) ACK
mgmt::proberesp cb
MGMT (TX callback) ACK
mgmt::proberesp cb
Unknown Microsoft information element ignored (type=8 len=7)
STA 00:aa:70:b6:75:05 sent probe request for broadcast SSID
MGMT (TX callback) ACK
mgmt::proberesp cb
Unknown Microsoft information element ignored (type=8 len=7)
STA 00:aa:70:b6:75:05 sent probe request for broadcast SSID
MGMT (TX callback) ACK
mgmt::proberesp cb
Unknown Microsoft information element ignored (type=8 len=7)
STA 00:aa:70:b6:75:05 sent probe request for broadcast SSID
MGMT
mgmt::disassoc
disassocation: STA=00:aa:70:b6:75:05 reason_code=1
wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: disassociated
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-DISASSOCIATE.indication(00:aa:70:b6:75:05, 1)
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-DELETEKEYS.request(00:aa:70:b6:75:05)
Sending deauthentication info to STA 00:aa:70:b6:75:05
wlan0: STA 00:aa:70:b6:75:05 IEEE 802.11: deauthenticated due to inactivity
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-DEAUTHENTICATE.indication(00:aa:70:b6:75:05, 2)
wlan0: STA 00:aa:70:b6:75:05 MLME: MLME-DELETEKEYS.request(00:aa:70:b6:75:05)
MGMT (TX callback) fail