Advertisement
Guest User

Untitled

a guest
Mar 8th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.05 KB | None | 0 0
  1. root@blackrouter:/etc/hostapd# uname -a
  2. Linux blackrouter 3.0.0-16-server #28-Ubuntu SMP Fri Jan 27 18:03:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
  3. root@blackrouter:/etc/hostapd# aptitude show hostapd libnl1
  4. Package: hostapd
  5. New: yes
  6. State: installed
  7. Automatically installed: no
  8. Version: 1:0.7.3-2build1
  9. Priority: optional
  10. Section: universe/net
  11. Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
  12. Uncompressed Size: 975 k
  13. Depends: libc6 (>= 2.4), libnl1 (>= 1.1), libssl1.0.0 (>= 1.0.0), lsb-base (>= 3.2-13)
  14. Conflicts: hostapd
  15. Description: user space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
  16. Originally, hostapd was an optional user space component for Host AP driver. It adds more features to the basic IEEE 802.11
  17. management included in the kernel driver: using external RADIUS authentication server for MAC address based access control, IEEE
  18. 802.1X Authenticator and dynamic WEP keying, RADIUS accounting, WPA/WPA2 (IEEE 802.11i/RSN) Authenticator and dynamic TKIP/CCMP
  19. keying.
  20.  
  21. The current version includes support for other drivers, an integrated EAP authenticator (i.e., allow full authentication without
  22. requiring an external RADIUS authentication server), and RADIUS authentication server for EAP authentication.
  23.  
  24. hostapd works with the following drivers:
  25.  
  26. * mac80211 based drivers with support for master mode
  27. * Host AP driver for Prism2/2.5/3,
  28. * madwifi driver for cards based on Atheros chip set (ar521x),
  29. * Any wired Ethernet driver for wired IEEE 802.1X authentication.
  30. Homepage: http://w1.fi/
  31.  
  32. Package: libnl1
  33. New: yes
  34. State: installed
  35. Automatically installed: yes
  36. Version: 1.1-6ubuntu1
  37. Priority: optional
  38. Section: universe/libs
  39. Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
  40. Uncompressed Size: 426 k
  41. Depends: libc6 (>= 2.8)
  42. Conflicts: libnl1
  43. Description: library for dealing with netlink sockets
  44. This is a library for applications dealing with netlink sockets. The library provides an interface for raw netlink messaging and
  45. various netlink family specific interfaces.
  46. Homepage: http://www.infradead.org/~tgr/libnl/
  47.  
  48. root@blackrouter:/etc/hostapd# lspci | grep AR9285
  49. 04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
  50.  
  51. root@blackrouter:/etc/hostapd# modprobe ath9k
  52. root@blackrouter:/etc/hostapd# dmesg |grep ath9k
  53. [223431.160924] ath9k: Driver unloaded
  54. [223569.662559] ath9k 0000:04:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
  55. [223569.662585] ath9k 0000:04:00.0: setting latency timer to 64
  56. [223569.714423] ieee80211 phy4: Selected rate control algorithm 'ath9k_rate_control'
  57. [223569.716754] Registered led device: ath9k-phy4
  58. root@blackrouter:/etc/hostapd# iw phy phy4 interface add wlan1 type ap
  59. See http://wireless.kernel.org/RTFM-AP.
  60. root@blackrouter:/etc/hostapd# iwconfig wlan1
  61. wlan1 IEEE 802.11bgn ESSID:off/any
  62. Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
  63. Retry long limit:7 RTS thr:off Fragment thr:off
  64. Encryption key:off
  65. Power Management:on
  66.  
  67. root@blackrouter:/etc/hostapd# cat atheros_ar9285_wlan1.conf
  68. # ar9285
  69. interface=wlan1
  70. driver=nl80211
  71. country_code=EU
  72. logger_syslog=-1
  73. logger_syslog_level=0
  74. logger_stdout=-1
  75. logger_stdout_level=0
  76. dump_file=/tmp/ar9285.dump
  77. ctrl_interface=/var/run/hostapd
  78. ctrl_interface_group=0
  79. ssid=civ
  80. eap_message=loud and clear
  81. hw_mode=g
  82. ieee80211n=1
  83. ht_capab=[RX-STBC1][SHORT-GI-40][DSSS_CCK-40][HT40-][HT40+][HT20]
  84. channel=9
  85. beacon_int=100
  86. dtim_period=2
  87. max_num_sta=255
  88. rts_threshold=2347
  89. fragm_threshold=2346
  90. preamble=1
  91. auth_algs=3
  92. ignore_broadcast_ssid=0
  93. wmm_enabled=1
  94. wmm_ac_bk_cwmin=4
  95. wmm_ac_bk_cwmax=10
  96. wmm_ac_bk_aifs=7
  97. wmm_ac_bk_txop_limit=0
  98. wmm_ac_bk_acm=0
  99. wmm_ac_be_aifs=3
  100. wmm_ac_be_cwmin=4
  101. wmm_ac_be_cwmax=10
  102. wmm_ac_be_txop_limit=0
  103. wmm_ac_be_acm=0
  104. wmm_ac_vi_aifs=2
  105. wmm_ac_vi_cwmin=3
  106. wmm_ac_vi_cwmax=4
  107. wmm_ac_vi_txop_limit=94
  108. wmm_ac_vi_acm=0
  109. wmm_ac_vo_aifs=2
  110. wmm_ac_vo_cwmin=2
  111. wmm_ac_vo_cwmax=3
  112. wmm_ac_vo_txop_limit=47
  113. wmm_ac_vo_acm=0
  114. own_ip_addr=192.168.1.1
  115. wpa=3
  116. wpa_key_mgmt=WPA-PSK
  117. wpa_pairwise=CCMP
  118. auth_algs=2
  119. eapol_version=2
  120. eapol_key_index_workaround=0
  121. use_pae_group_addr=1
  122. eap_server=0
  123. wpa_group_rekey=600
  124. wpa_gmk_rekey=86400
  125. wpa_passphrase=testtest
  126.  
  127. root@blackrouter:/etc/hostapd# hostapd -d atheros_ar9285_wlan1.conf
  128. Configuration file: atheros_ar9285_wlan1.conf
  129. ctrl_interface_group=0
  130. eapol_version=2
  131. nl80211: Add own interface ifindex 288
  132. nl80211: New interface mon.wlan1 created: ifindex=290
  133. nl80211: Add own interface ifindex 290
  134. BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
  135. nl80211: Added 802.11b mode based on 802.11g information
  136. RATE[0] rate=10 flags=0x1
  137. RATE[1] rate=20 flags=0x1
  138. RATE[2] rate=55 flags=0x1
  139. RATE[3] rate=110 flags=0x1
  140. RATE[4] rate=60 flags=0x0
  141. RATE[5] rate=90 flags=0x0
  142. RATE[6] rate=120 flags=0x0
  143. RATE[7] rate=180 flags=0x0
  144. RATE[8] rate=240 flags=0x0
  145. RATE[9] rate=360 flags=0x0
  146. RATE[10] rate=480 flags=0x0
  147. RATE[11] rate=540 flags=0x0
  148. Scan for neighboring BSSes prior to enabling 40 MHz channel
  149. Scan requested (ret=0) - scan timeout 10 seconds
  150. Interface initialization will be completed in a callback
  151. nl80211: Event message available
  152. nl80211: Scan trigger
  153. RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
  154. RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan1' added
  155. Unknown event 5
  156. RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
  157. RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan1' added
  158. Unknown event 5
  159. RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
  160. RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
  161. Unknown event 5
  162. nl80211: Event message available
  163. nl80211: New scan results available
  164. Received scan results (0 BSSes)
  165. 40 MHz affected channel range: [2437,2487] MHz
  166. Completing interface initialization
  167. Mode: IEEE 802.11g Channel: 9 Frequency: 2452 MHz
  168. nl80211: Failed to set channel (freq=2452): -22 (Invalid argument)
  169. Could not set channel for kernel driver
  170. RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
  171. RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan1' added
  172. Unknown event 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement