Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
howtos:hardware:arm:raspberrypi3_wap [2018/08/26 20:49 (UTC)] – [Introduction] bifferos | howtos:hardware:arm:raspberrypi3_wap [2018/08/26 21:43 (UTC)] – [Hostapd Install] bifferos |
---|
* A powered USB hub with 2A Power supply (to ensure the Wifi Dongle gets enough juice) | * A powered USB hub with 2A Power supply (to ensure the Wifi Dongle gets enough juice) |
* Alfa Network AWUS036NHA - USB WiFi Adapter with chipset ar9271l | * Alfa Network AWUS036NHA - USB WiFi Adapter with chipset ar9271l |
* Ethernet cable connected to the internet | * Ethernet cable |
| |
The powered Hub was purchased from the_pi_hut (http://www.ebaystores.co.uk/thepihut), although pretty much any decent powered hub should be OK. The pi_hut one claimed to have the feature that it didn't push power up the USB connection to the Pi, which sounded like it may be useful. | The powered Hub was purchased from the_pi_hut (http://www.ebaystores.co.uk/thepihut), although pretty much any decent powered hub should be OK. The pi_hut one claimed to have the feature that it didn't push power up the USB connection to the Pi, which sounded like it may be useful. |
| |
{{ howtos:hardware:arm:hub.jpg?400 }} {{ howtos:hardware:arm:power.jpg?300 }} | {{ howtos:hardware:arm:hub.jpg?400 }} |
| |
| Whatever you get, Make sure it has a beefy power supply, e.g. 2A. USB WiFi dongles, particularly the ones with external antennas can be thirsty and a 2A power adapter is unlikely to cost much more than a 1A one. |
| |
| {{ howtos:hardware:arm:power.jpg?300 }} |
| |
The Wifi Adapter choice is important. I did some research and went for the model that I believed would give maximum flexibility and compatibility with Linux. The Alpha Network one seemed to do that. It works with Kali (assuring Linux compatibility), but that is by no means the only thing you should look for. You also want to see the output of: | The Wifi Adapter choice is important. I did some research and went for the model that I believed would give maximum flexibility and compatibility with Linux. The Alpha Network one seemed to do that. It works with Kali (assuring Linux compatibility), but that is by no means the only thing you should look for. You also want to see the output of: |
* outside context of a BSS</code> | * outside context of a BSS</code> |
| |
Obviously the 'AP' bit is the bit we need, however considering that the built-in RPi3 Wifi adapter also had that, and never really worked satisfactorily it's just one of many things to look for. | Obviously the 'AP' bit is the bit we need, but IMHO the more things appearing in this list, the more likely your adapter is to be well tested and widely used. |
| |
My adapter was purchased from Amazon: https://www.amazon.co.uk/dp/B004Y6MIXS, however I am not connected with this seller. The adapter looks like this: | My adapter was purchased from Amazon: https://www.amazon.co.uk/dp/B004Y6MIXS, however I am not connected with this seller. The adapter looks like this: |
<code># Example of how to configure a bridge:</code> | <code># Example of how to configure a bridge:</code> |
| |
Ensure the following appears so a bridge will be created: | Ensure the following appears so a bridge will be created (adjust DHCP_HOSTNAME to suit): |
| |
<code>IFNAME[0]="br0" | <code>IFNAME[0]="br0" |
auth_algs=1</code> | auth_algs=1</code> |
| |
What this does: The interface wlan1, we've seen before. The bridge br0 will get wlan1 interface added to it when hostapd has fired up. The syslog logging lines ensure you get something in /var/log/messages to tell you what's going on. The ssid, wpa and wpa_passphrase settings should be rather obvious, the hw_mode you can just leave as 'g' unless you know what you're doing, channel is set to something you didn't see when you ran 'iwlist wlan1 scanning' earlier on. | What this does: The interface wlan1, we've seen before. The bridge br0 will get wlan1 interface added to it when hostapd has fired up. The syslog logging lines ensure you get something in /var/log/messages to tell you what's going on. The ssid, wpa and wpa_passphrase settings should be rather obvious, the hw_mode you can just leave as 'g' unless you know what you're doing, channel is set to something you didn't see when you ran ''iwlist wlan1 scanning'' earlier on. |
| |
That minimal config should get hostapd working fine, at least it did for me. | That minimal config should get hostapd working fine, at least it did for me. |