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

From ArmadeusWiki
Jump to: navigation, search
(Installation)
(Configuration)
Line 16: Line 16:
  
 
==Configuration==
 
==Configuration==
 +
* Bring up your Wi-Fi interface and give it an address (here 192.168.2.1):
 +
<pre class="apf">
 +
# ifconfig wlan0 up 192.168.2.1 netmask 255.255.255.0
 +
</pre>
 
* Create ''/etc/hostapd/'' directory and put it ''hostapd.conf'' configuration file:
 
* Create ''/etc/hostapd/'' directory and put it ''hostapd.conf'' configuration file:
 
<pre class="apf">
 
<pre class="apf">
$ mkdir -p /etc/hostapd/
+
# mkdir -p /etc/hostapd/
$ vi /etc/hostapd/hostapd.conf
+
# vi /etc/hostapd/hostapd.conf
  
 
interface=wlan0
 
interface=wlan0
Line 32: Line 36:
 
* 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)
 
* security is WPA2-PSK. To have "Open" Access Point uncomment ''#auth_algs=1'' and comment 3 wpa lines
 
* security is WPA2-PSK. To have "Open" Access Point uncomment ''#auth_algs=1'' and comment 3 wpa lines
 +
 +
* Launch hostapd:
 +
<pre class="apf">
 +
# hostapd -B /etc/hostapd/hostapd.conf
 +
</pre>
 +
* 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.

Revision as of 21:35, 16 September 2015

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 hostapd.conf configuration file:
# mkdir -p /etc/hostapd/
# vi /etc/hostapd/hostapd.conf

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
  • 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.