Difference between revisions of "APF/OPOS as Wi-Fi Access Point"

From ArmadeusWiki
Jump to: navigation, search
m (Configuration)
(Configuration)
Line 23: Line 23:
 
<pre class="apf">
 
<pre class="apf">
 
# mkdir -p /etc/hostapd/
 
# mkdir -p /etc/hostapd/
# vi /etc/hostapd/hostapd.conf
+
# cat > /etc/hostapd/hostapd.conf <<EOF
 
+
 
interface=wlan0
 
interface=wlan0
 
ssid=APF6
 
ssid=APF6
Line 33: Line 32:
 
wpa_passphrase=YOUHOULESBILOUS
 
wpa_passphrase=YOUHOULESBILOUS
 
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
 
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
 +
EOF
 +
 
</pre>
 
</pre>
 
* here we used fixed channel (6) (as some drivers can't allow hostapd to find less occupied channel through scanning)
 
* here we used fixed channel (6) (as some drivers can't allow hostapd to find less occupied channel through scanning)

Revision as of 17:42, 11 February 2016

Page under construction... Construction.png Informations on this page are not guaranteed !!

Installation

  • You will need hostapd (installed by default on APF6):
$ make menuconfig
Target packages  --->
    Networking applications  --->
        [*] hostapd
        [ ]   Enable EAP
        [ ]   Enable WPS

Configuration

  • Bring up your Wi-Fi interface and give it an address (here 192.168.2.1):
# ifconfig wlan0 up 192.168.2.1 netmask 255.255.255.0
  • Create /etc/hostapd/ directory and put it this hostapd.conf configuration file:
# mkdir -p /etc/hostapd/
# cat > /etc/hostapd/hostapd.conf <<EOF
interface=wlan0
ssid=APF6
hw_mode=g
channel=6
#auth_algs=1
wpa=2
wpa_passphrase=YOUHOULESBILOUS
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
EOF

  • here we used fixed channel (6) (as some drivers can't allow hostapd to find less occupied channel through scanning)
  • security is WPA2-PSK. To have "Open" Access Point uncomment #auth_algs=1 and comment 3 wpa lines
  • Launch hostapd:
# hostapd -B /etc/hostapd/hostapd.conf
  • If the devices connecting to your Access Point require dynamic IP adress allocation, you will need to install and launch a DHCP server on your APF too.